operator/src/test/java/oracle/kubernetes/operator/work/FiberTestSupport.java
void verifyThrowable(Class<?> throwableClass) {
      Throwable actual = throwable;
      throwable = null;

      if (actual == null) {
        throw new AssertionError("Expected exception: " + throwableClass.getName());
      }
      if (!throwableClass.isInstance(actual)) {
        throw new AssertionError(
            "Expected exception: " + throwableClass.getName() + " but was " + actual);
      }
    }
/**
     * Verifies that 'onThrowable' was invoked with a throwable of the specified class. Clears the
     * throwable so that #throwOnFailure will not throw the expected exception.
     *
     * @param throwableClass the class of the excepted throwable
     */
Verifies that 'onThrowable' was invoked with a throwable of the specified class. Clears the
throwable so that #throwOnFailure will not throw the expected exception.

@param throwableClass the class of the excepted throwable
Verifies that ' onThrowable ' was invoked with a throwable of the specified class . Clears the throwable so that #throwOnFailure will not throw the expected exception . @param throwableClass the class of the excepted throwable
void verifyThrowable(Class<?> throwableClass) {
      Throwable actual = throwable;
      throwable = null;
      if (actual == null) {
        throw new AssertionError("Expected exception: " + throwableClass.getName());
      }
      if (!throwableClass.isInstance(actual)) {
        throw new AssertionError(
            "Expected exception: " + throwableClass.getName() + " but was " + actual);
      }
    }
void verifyThrowable ( Class < ? > throwableClass ) { Throwable actual = throwable ; throwable = null ; if ( actual == null ) { throw new AssertionError ( "Expected exception: " + throwableClass . getName ( ) ) ; } if ( ! throwableClass . isInstance ( actual ) ) { throw new AssertionError ( "Expected exception: " + throwableClass . getName ( ) + " but was " + actual ) ; } }
Verifies that 'onThrowable' was invoked with a throwable of the specified class.
Verifies that ' onThrowable ' was invoked with a throwable of the specified class .