com.github.dreamhead.moco.util.Idles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-core Show documentation
Show all versions of moco-core Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
package com.github.dreamhead.moco.util;
import com.github.dreamhead.moco.MocoException;
import java.util.concurrent.TimeUnit;
public final class Idles {
public static void idle(final long duration, final TimeUnit unit) {
try {
unit.sleep(duration);
} catch (InterruptedException e) {
throw new MocoException(e);
}
}
private Idles() {
}
}