Uses of Class
org.assertj.core.api.AbstractThrowableAssert
Packages that use AbstractThrowableAssert
-
Uses of AbstractThrowableAssert in org.assertj.core.api
Classes in org.assertj.core.api with type parameters of type AbstractThrowableAssertModifier and TypeClassDescriptionclassAbstractThrowableAssert<SELF extends AbstractThrowableAssert<SELF,ACTUAL>, ACTUAL extends Throwable> Base class for all implementations of assertions forThrowables.Subclasses of AbstractThrowableAssert in org.assertj.core.apiFields in org.assertj.core.api with type parameters of type AbstractThrowableAssertModifier and TypeFieldDescriptionstatic final InstanceOfAssertFactory<Throwable,AbstractThrowableAssert<?, ? extends Throwable>> InstanceOfAssertFactories.THROWABLEInstanceOfAssertFactoryfor aThrowable.Methods in org.assertj.core.api that return AbstractThrowableAssertModifier and TypeMethodDescriptionstatic AbstractThrowableAssert<?,? extends Throwable> Assertions.assertThat(Throwable actual) Creates a new instance of.ThrowableAssertstatic AbstractThrowableAssert<?,? extends Throwable> AssertionsForClassTypes.assertThat(Throwable actual) Creates a new instance of.ThrowableAssertstatic AbstractThrowableAssert<?,? extends Throwable> Java6Assertions.assertThat(Throwable actual) Deprecated.Creates a new instance of.ThrowableAssertdefault AbstractThrowableAssert<?,? extends Throwable> WithAssertions.assertThat(Throwable actual) Creates a new instance of.ThrowableAssertstatic AbstractThrowableAssert<?,? extends Throwable> Assertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assert on aThrowable(easier done with lambdas).static AbstractThrowableAssert<?,? extends Throwable> AssertionsForClassTypes.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.static AbstractThrowableAssert<?,? extends Throwable> Java6Assertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Deprecated.Allows to capture and then assert on aThrowable.default AbstractThrowableAssert<?,? extends Throwable> Java6StandardSoftAssertionsProvider.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.default AbstractThrowableAssert<?,? extends Throwable> WithAssertions.assertThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.static AbstractThrowableAssert<?,? extends Throwable> Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assert on aThrowable(easier done with lambdas).static AbstractThrowableAssert<?,? extends Throwable> Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Allows to capture and then assert on aThrowablelikeassertThatThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).static AbstractThrowableAssert<?,? extends Throwable> AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assert on aThrowable(easier done with lambdas).static AbstractThrowableAssert<?,? extends Throwable> AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Allows to capture and then assert on aThrowablelikeassertThatThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).static AbstractThrowableAssert<?,? extends Throwable> Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Deprecated.Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.static AbstractThrowableAssert<?,? extends Throwable> Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Deprecated.Allows to capture and then assert on aThrowablelikeassertThatThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).default AbstractThrowableAssert<?,? extends Throwable> Java6StandardSoftAssertionsProvider.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.default AbstractThrowableAssert<?,? extends Throwable> Java6StandardSoftAssertionsProvider.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Allows to capture and then assert on aThrowablelikeassertThatThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).default AbstractThrowableAssert<?,? extends Throwable> WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assert on aThrowable(easier done with lambdas).default AbstractThrowableAssert<?,? extends Throwable> WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Allows to capture and then assert on aThrowablelikeassertThatThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).static AbstractThrowableAssert<?,? extends Throwable> Assumptions.assumeThat(Throwable actual) Creates a new instance ofassumption.ThrowableAssertdefault AbstractThrowableAssert<?,? extends Throwable> WithAssumptions.assumeThat(Throwable actual) Creates a new instance ofassumption.ThrowableAssertstatic AbstractThrowableAssert<?,? extends Throwable> Assumptions.assumeThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assume on aThrowable(easier done with lambdas).default AbstractThrowableAssert<?,? extends Throwable> WithAssumptions.assumeThatCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assume on aThrowable(easier done with lambdas).static AbstractThrowableAssert<?,? extends Throwable> Assumptions.assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assume on aThrowable(easier done with lambdas).default AbstractThrowableAssert<?,? extends Throwable> WithAssumptions.assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assume on aThrowable(easier done with lambdas).AbstractThrowableAssert.getCause()Returns a new assertion object that uses the cause of the current Throwable as the actual Throwable under test.AbstractThrowableAssert.getRootCause()Returns a new assertion object that uses the root cause of the current Throwable as the actual Throwable under test.static AbstractThrowableAssert<?,? extends Throwable> Creates a new assumption's instance for aThrowablevalue.static AbstractThrowableAssert<?,? extends Throwable> BDDAssumptions.givenCode(ThrowableAssert.ThrowingCallable lambda) Creates a new assumption's instance from a no parameters lambda expression,() -> { /* some code */ }.AbstractThrowableAssert<?,? extends Throwable> AbstractCompletableFutureAssert.hasFailedWithThrowableThat()Deprecated.static AbstractThrowableAssert<?,? extends Throwable> Creates a new instance of.ThrowableAssertstatic AbstractThrowableAssert<?,? extends Throwable> Deprecated.Creates a new instance of.ThrowableAssertstatic AbstractThrowableAssert<?,? extends Throwable> BDDAssertions.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.AbstractThrowableAssert<?,? extends Throwable> Java6BDDAssertions.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Deprecated.Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.default AbstractThrowableAssert<?,? extends Throwable> Java6BDDSoftAssertionsProvider.thenCode(ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.static AbstractThrowableAssert<?,? extends Throwable> BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assert on aThrowable(easier done with lambdas).static AbstractThrowableAssert<?,? extends Throwable> BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Allows to capture and then assert on aThrowablelikethenThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).static AbstractThrowableAssert<?,? extends Throwable> Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Deprecated.Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.static AbstractThrowableAssert<?,? extends Throwable> Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Deprecated.Allows to capture and then assert on aThrowablelikethenThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).default AbstractThrowableAssert<?,? extends Throwable> Java6BDDSoftAssertionsProvider.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to capture and then assert on aThrowablemore easily when used with Java 8 lambdas.default AbstractThrowableAssert<?,? extends Throwable> Java6BDDSoftAssertionsProvider.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, String description, Object... args) Allows to capture and then assert on aThrowablelikethenThrownBy(ThrowingCallable)but this method let you set the assertion description the same way you do withas(String, Object...).
AbstractCompletableFutureAssert.failsWithin(Duration)orAbstractCompletableFutureAssert.failsWithin(long, TimeUnit)instead: