public Resource move()

in src/main/java/org/apache/sling/testing/resourceresolver/MockResourceResolver.java [552:564]


    public Resource move(String srcAbsPath, String destAbsPath) throws PersistenceException {
        Resource source = getResource(srcAbsPath);
        if (source == null) {
            throw new PersistenceException("Move source does not exist");
        }
        Resource destinationParent = getResource(destAbsPath);
        if (destinationParent == null) {
            throw new PersistenceException("Move destination does not exist");
        }
        Resource destination = copy(srcAbsPath, destAbsPath);
        delete(source);
        return destination;
    }