Class TestRuntime


  • public class TestRuntime
    extends Object
    Utility class providing features relative to the runtime of a test.
    Author:
    mmoquillon
    • 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.