Class FlinkCompletableFutureAssert.WithThrowable

java.lang.Object
org.apache.flink.core.testutils.FlinkCompletableFutureAssert.WithThrowable
Enclosing class:
FlinkCompletableFutureAssert<T>

public static class FlinkCompletableFutureAssert.WithThrowable extends Object
A strongly typed alternative to WithThrowable.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends Throwable>
    org.assertj.core.api.ThrowableAssertAlternative<T>
    Checks that the underlying throwable has cause of the given type and returns a ThrowableAssertAlternative to chain further assertions on the underlying throwable.
    <T extends Throwable>
    org.assertj.core.api.ThrowableAssertAlternative<T>
    Checks that the underlying throwable is of the given type and returns a ThrowableAssertAlternative to chain further assertions on the underlying throwable.

    Methods inherited from class java.lang.Object

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

    • withThrowableOfType

      public <T extends Throwable> org.assertj.core.api.ThrowableAssertAlternative<T> withThrowableOfType(Class<T> type)
      Checks that the underlying throwable is of the given type and returns a ThrowableAssertAlternative to chain further assertions on the underlying throwable.
      Type Parameters:
      T - the expected Throwable type
      Parameters:
      type - the expected Throwable type
      Returns:
      a ThrowableAssertAlternative built with underlying throwable.
    • withCauseOfType

      public <T extends Throwable> org.assertj.core.api.ThrowableAssertAlternative<T> withCauseOfType(Class<T> cause)
      Checks that the underlying throwable has cause of the given type and returns a ThrowableAssertAlternative to chain further assertions on the underlying throwable.
      Type Parameters:
      T - the expected Throwable cause
      Parameters:
      cause - the expected Throwable cause
      Returns:
      a ThrowableAssertAlternative built with underlying throwable.