Uses of Interface
org.assertj.core.api.ThrowableAssert.ThrowingCallable
Packages that use ThrowableAssert.ThrowingCallable
-
Uses of ThrowableAssert.ThrowingCallable in org.assertj.core.api
Methods in org.assertj.core.api with parameters of type ThrowableAssert.ThrowingCallableModifier and TypeMethodDescriptionstatic 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 capturing 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.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).static ExceptionAssertions.catchException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofException.static ExceptionBDDAssertions.catchException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofException.default ExceptionWithAssertions.catchException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofException.static IllegalArgumentExceptionAssertions.catchIllegalArgumentException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIllegalArgumentException.static IllegalArgumentExceptionBDDAssertions.catchIllegalArgumentException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIllegalArgumentException.default IllegalArgumentExceptionWithAssertions.catchIllegalArgumentException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIllegalArgumentException.static IllegalStateExceptionAssertions.catchIllegalStateException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIllegalStateException.static IllegalStateExceptionBDDAssertions.catchIllegalStateException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIllegalStateException.default IllegalStateExceptionWithAssertions.catchIllegalStateException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIllegalStateException.static IndexOutOfBoundsExceptionAssertions.catchIndexOutOfBoundsException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIndexOutOfBoundsException.static IndexOutOfBoundsExceptionBDDAssertions.catchIndexOutOfBoundsException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIndexOutOfBoundsException.default IndexOutOfBoundsExceptionWithAssertions.catchIndexOutOfBoundsException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIndexOutOfBoundsException.static IOExceptionAssertions.catchIOException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIOException.static IOExceptionBDDAssertions.catchIOException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIOException.default IOExceptionWithAssertions.catchIOException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofIOException.static NullPointerExceptionAssertions.catchNullPointerException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofNullPointerException.static NullPointerExceptionBDDAssertions.catchNullPointerException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofNullPointerException.default NullPointerExceptionWithAssertions.catchNullPointerException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofNullPointerException.static ReflectiveOperationExceptionAssertions.catchReflectiveOperationException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofReflectiveOperationException.static ReflectiveOperationExceptionBDDAssertions.catchReflectiveOperationException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofReflectiveOperationException.default ReflectiveOperationExceptionWithAssertions.catchReflectiveOperationException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofReflectiveOperationException.static RuntimeExceptionAssertions.catchRuntimeException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofRuntimeException.static RuntimeExceptionBDDAssertions.catchRuntimeException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofRuntimeException.default RuntimeExceptionWithAssertions.catchRuntimeException(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching an instance ofRuntimeException.static ThrowableAssertions.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows catching aThrowablemore easily when used with Java 8 lambdas.static ThrowableAssertionsForClassTypes.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows catching aThrowablemore easily when used with Java 8 lambdas.static ThrowableBDDAssertions.catchThrowable(ThrowableAssert.ThrowingCallable throwingCallable) Allows catching aThrowablemore easily when used with Java 8 lambdas.static ThrowableJava6Assertions.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Deprecated.Allows to catch anThrowablemore easily when used with Java 8 lambdas.static ThrowableThrowableAssert.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) default ThrowableWithAssertions.catchThrowable(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows to catch anThrowablemore easily when used with Java 8 lambdas.static <THROWABLE extends Throwable>
THROWABLEAssertions.catchThrowableOfType(Class<THROWABLE> type, ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows catching aThrowableof a specific type.static <THROWABLE extends Throwable>
THROWABLEAssertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, Class<THROWABLE> type) Deprecated.static <THROWABLE extends Throwable>
THROWABLEAssertionsForClassTypes.catchThrowableOfType(Class<THROWABLE> type, ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows catching aThrowableof a specific type.static <THROWABLE extends Throwable>
THROWABLEAssertionsForClassTypes.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, Class<THROWABLE> type) Deprecated.static <THROWABLE extends Throwable>
THROWABLEBDDAssertions.catchThrowableOfType(Class<THROWABLE> type, ThrowableAssert.ThrowingCallable throwingCallable) Allows catching aThrowableof a specific type.static <THROWABLE extends Throwable>
THROWABLEBDDAssertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable throwingCallable, Class<THROWABLE> type) Deprecated.static <THROWABLE extends Throwable>
THROWABLEJava6Assertions.catchThrowableOfType(Class<THROWABLE> type, ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Deprecated.Allows catching aThrowableof a specific type.static <THROWABLE extends Throwable>
THROWABLEJava6Assertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, Class<THROWABLE> type) Deprecated.static <THROWABLE extends Throwable>
THROWABLEThrowableAssert.catchThrowableOfType(Class<THROWABLE> type, ThrowableAssert.ThrowingCallable shouldRaiseThrowable) static <THROWABLE extends Throwable>
THROWABLEThrowableAssert.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, Class<THROWABLE> type) Deprecated.default <THROWABLE extends Throwable>
THROWABLEWithAssertions.catchThrowableOfType(Class<THROWABLE> type, ThrowableAssert.ThrowingCallable shouldRaiseThrowable) Allows catching aThrowableof a specific type.default <THROWABLE extends Throwable>
THROWABLEWithAssertions.catchThrowableOfType(ThrowableAssert.ThrowingCallable shouldRaiseThrowable, Class<THROWABLE> type) Deprecated.static AbstractThrowableAssert<?, ? extends Throwable> BDDAssumptions.givenCode(ThrowableAssert.ThrowingCallable lambda) Creates a new assumption's instance from a no parameters lambda expression,() -> { /* some code */ }.voidNotThrownAssert.isThrownBy(ThrowableAssert.ThrowingCallable code) Assert that no exception of any type is thrown by thethrowingCallable.ThrowableTypeAssert.isThrownBy(ThrowableAssert.ThrowingCallable throwingCallable) Assert that an exception of type T is thrown by thethrowingCallableand allow to chain assertions on the thrown exception.static 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...).
Assertions.catchThrowableOfType(Class, ThrowingCallable)instead.