Class TestUtils


  • public final class TestUtils
    extends java.lang.Object
    Test utility methods / helpers.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void assertNoAsyncErrors​(java.lang.String message, java.util.Queue<? extends java.lang.Throwable> errors)
      Helper method to check if a given Queue contains any errors, usually produced through async sources.
      static void assertNoAsyncErrors​(java.util.Queue<? extends java.lang.Throwable> errors)
      Helper method to check if a given Queue contains any errors, usually produced through async sources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • assertNoAsyncErrors

        public static void assertNoAsyncErrors​(java.util.Queue<? extends java.lang.Throwable> errors)
        Helper method to check if a given Queue contains any errors, usually produced through async sources. For ALL Throwables found in the queue, a suppressed error will be captured and surface through a single AssertionError.
        Parameters:
        errors - The queue of captured errors.
      • assertNoAsyncErrors

        public static void assertNoAsyncErrors​(java.lang.String message,
                                               java.util.Queue<? extends java.lang.Throwable> errors)
        Helper method to check if a given Queue contains any errors, usually produced through async sources. For ALL Throwables found in the queue, a suppressed error will be captured and surface through a single AssertionError.
        Parameters:
        message - message for the AssertionError.
        errors - The queue of captured errors.