in src/main/java/org/apache/sling/testing/clients/SlingClient.java [285:301]
public void waitExists(final String path, final long timeout, final long delay)
throws TimeoutException, InterruptedException {
Polling p = new Polling() {
@Override
public Boolean call() throws Exception {
return exists(path);
}
@Override
protected String message() {
return "Path " + path + " does not exist after %1$d ms";
}
};
p.poll(timeout, delay);
}