
org.gemini4j.utils.Clock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Screenshot-based UI testing.
The newest version!
package org.gemini4j.utils;
public interface Clock {
static Clock create() {
return new Clock() {
@Override
public long now() {
return System.currentTimeMillis();
}
@Override
public void waitFor(final long msecs) {
try {
Thread.sleep(msecs);
} catch (final InterruptedException e) {
throw new RuntimeException("Interrupted while waiting", e);
}
}
};
}
long now();
void waitFor(long msecs);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy