Package org.silverpeas.core.test.util
Class TestRuntime
- java.lang.Object
-
- org.silverpeas.core.test.util.TestRuntime
-
public class TestRuntime extends Object
Utility class providing features relative to the runtime of a test.- Author:
- mmoquillon
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidawaitUntil(long duration, TimeUnit unit)Suspends the execution of the test until a given amount of time.static voidawaitUntil(Duration duration)Suspends the execution of the test until a given amount of time.
-
-
-
Method Detail
-
awaitUntil
public static void awaitUntil(long duration, TimeUnit unit)Suspends the execution of the test until a given amount of time.- Parameters:
duration- the duration of the execution suspension.unit- the unit of time of the duration
-
awaitUntil
public static void awaitUntil(Duration duration)
Suspends the execution of the test until a given amount of time.- Parameters:
duration- the duration of the execution suspension.
-
-