| Modifier and Type | Method and Description |
|---|---|
| public default < the type of object the given condition accept. T> Condition | |
| public default < the type of object the given condition accept. T> Condition | |
| public default < the type of object the given consumers accept T> ThrowingConsumer | Returns: theThrowingConsumer instancethe consumers to evaluate consumers)Create a new |
| public default < the type of object the given condition accept. T> Condition | |
| public default < the type of object the given condition accept. T> Condition | Returns: the createdAnyOf.the conditions to evaluate. conditions)Only delegate to |
| public default < the type of object the given consumers accept T> ThrowingConsumer | Returns: theThrowingConsumer instancethe consumers to evaluate consumers)Create a new |
| public default < the type to use for the cast. T, the type of the resulting ASSERT extends AbstractAssertAssert | Returns: same instance ofassertFactorythe factory which verifies the type and creates the new assertFactory)AssertA syntax sugar to write fluent assertion with methods having an |
| public default < the actual's elements type. T> ObjectArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the actual's elements type. T> Object2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the generic type of the user-defined assert. T extends AssertDelegateTarget> T | Returns: the given assertion.the assertion to return. assertion)Returns the given assertion. |
| public default < the type of keys in the map. K, the type of values in the map. V> MapAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractShortAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractLongAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractLongAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractLongArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Long2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of the actual value. T> ObjectAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractStringAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractDateAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of the actual throwable. T extends Throwable> AbstractThrowableAssert | Returns: the createdThrowableAssert.the actual value. actual)Creates a new instance of |
| public default AbstractBigDecimalAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractBigIntegerAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AtomicBooleanAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default AtomicIntegerAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default AtomicIntegerArrayAssert | Returns: the created assertion object.the actual value. actual)Create int[] assertion for |
| public default < the type of the object holding the updatable field. OBJECT> AtomicIntegerFieldUpdaterAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default LongAdderAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default AtomicLongAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default AtomicLongArrayAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default < the type of the object holding the updatable field. OBJECT> AtomicLongFieldUpdaterAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default < the type of the value contained in the VALUE> AtomicReferenceAssertAtomicReference. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default < the type of the value contained in the ELEMENT> AtomicReferenceArrayAssertAtomicReferenceArray. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default < the type of the field which gets updated by the FIELD, AtomicReferenceFieldUpdater.the type of the object holding the updatable field. OBJECT> AtomicReferenceFieldUpdaterAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default < the type of the value contained in the VALUE> AtomicMarkableReferenceAssertAtomicMarkableReference. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default < the type of the value contained in the VALUE> AtomicStampedReferenceAssertAtomicStampedReference. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default AbstractCharSequenceAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractCharSequenceAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractCharSequenceAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractShortArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Short2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractShortAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default ClassAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractCharacterAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractCharArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Char2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractCharacterAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of actual. T extends Comparable | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of elements. T> IterableAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < The actual type ACTUAL extends IterableThe actual elements type ELEMENT, The actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, AssertFactory<ELEMENT, ELEMENT_ASSERT> the factory used to create the elements assert instance. assertFactory)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of Iterable instance.
allowing to navigate to any Iterable element
in order to perform assertions on it.
|
| public default < the type of elements. T> IteratorAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < The actual type ACTUAL extends IterableThe actual elements type ELEMENT, The actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, Class<ELEMENT_ASSERT> the class used to create the elements assert instance. assertClass)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of Iterable instance.
allowing to navigate to any Iterable element
in order to perform assertions on it.
|
| public default AbstractBooleanAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractBooleanArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Boolean2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractByteAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractByteAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractByteArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Byte2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractBooleanAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractFloatAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractInputStreamAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractFileAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of the value contained in the RESULT> FutureAssertjava.. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default AbstractPathAssert | Returns: the created assertion objectthe path to test actual)Creates a new instance of |
| public default AbstractIntArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Int2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractFloatAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Float2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractIntegerAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractFloatArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractIntegerAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractDoubleAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractDoubleAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of elements. E> AbstractCollectionAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of elements. T> ListAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < The actual elements type ELEMENT, The actual type ACTUAL extends ListThe actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, Class<ELEMENT_ASSERT> the class used to create the elements assert instance. assertClass)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of List instance.
allowing to navigate to any List element
in order to perform assertions on it.
|
| public default < The actual type ACTUAL extends ListThe actual elements type ELEMENT, The actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, AssertFactory<ELEMENT, ELEMENT_ASSERT> the factory used to create the elements assert instance. assertFactory)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of List instance.
allowing to navigate to any List element
in order to perform assertions on it.
|
| public default < the type of elements. ELEMENT> ListAssert | Returns: the created assertion object.the actual actual)Stream value.Creates a new instance of |
| public default ListAssert | Returns: the created assertion object.the actual actual)DoubleStream value.Creates a new instance of |
| public default ListAssert | Returns: the created assertion object.the actual actual)LongStream value.Creates a new instance of |
| public default ListAssert | Returns: the created assertion object.the actual actual)IntStream value.Creates a new instance of |
| public default AbstractDoubleArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default Double2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractZonedDateTimeAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of the value contained in the RESULT> CompletableFutureAssertjava.. | Returns: the created assertion object.the actual value. future)Create assertion for |
| public default < the type of the value contained in the RESULT> CompletableFutureAssertjava.. | Returns: the created assertion object.the actual completionStage)CompletionStage.Create assertion for |
| public default < the type of the value contained in the VALUE> OptionalAssertjava.. | Returns: the created assertion object.the actual value. optional)Create assertion for |
| public default OptionalDoubleAssert | Returns: the created assertion object.the actual value. optional)Create assertion for |
| public default MatcherAssert | Returns: the created assertion object.the actual matcher. matcher)Create assertion for |
| public default OptionalIntAssert | Returns: the created assertion object.the actual value. optional)Create assertion for |
| public default OptionalLongAssert | Returns: the created assertion object.the actual value. optional)Create assertion for |
| public default TemporalAssert | Returns: the created assertion object.the actual value. temporal)Creates a new instance of |
| public default AbstractLocalDateTimeAssert | Returns: the created assertion object.the actual value. localDateTime)Creates a new instance of |
| public default AbstractLocalDateAssert | Returns: the created assertion object.the actual value. localDate)Creates a new instance of |
| public default AbstractYearMonthAssert | Returns: the created assertion object.the actual value. yearMonth)Creates a new instance of |
| public default AbstractLocalTimeAssert | Returns: the created assertion object.the actual value. localTime)Creates a new instance of |
| public default AbstractInstantAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractDurationAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractPeriodAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractOffsetTimeAssert | Returns: the created assertion object.the actual value. offsetTime)Creates a new instance of |
| public default AbstractOffsetDateTimeAssert | Returns: the created assertion object.the actual value. offsetDateTime)Creates a new instance of |
| public default < the type of the value contained in the T> PredicateAssertPredicate. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default IntPredicateAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default LongPredicateAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default DoublePredicateAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default AbstractUrlAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractUriAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of the elements. ELEMENT> SpliteratorAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the AssertProvider wrapped type. T> T | Returns: the associatedAssert of the given componentthe component that creates its own assert component)Delegates the creation of the |
| public default AbstractThrowableAssert | Returns: The captured exception ornull if none was raised by the callable.The shouldRaiseOrNotThrowableThrowingCallable or lambda with the code that should raise the throwable.Allows to capture and then assert on a |
| public default < the type of elements. E> AbstractCollectionAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of actual. T> AbstractUniversalComparableAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default < the exception type. T extends Throwable> ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.the exception type class. exceptionType)Entry point to check that an exception of type T is thrown by a given |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default < the type of elements. ELEMENT> IterableAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of elements. ELEMENT> IteratorAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default < the type of elements. ELEMENT> ListAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default NotThrownAssert | Returns: the createdNotThrownAssert.Entry point to check that no exception of any type is thrown by a given |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default < the type of the actual value. T> ObjectAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractPathAssert | Returns: the created assertion objectthe path to test actual)Creates a new instance of
Use this over |
| public default < the type of the value contained in the T> PredicateAssertPredicate. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default ThrowableTypeAssert | Returns: the createdThrowableTypeAssert.Alias for |
| public default < the type of elements. ELEMENT> ListAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public default AbstractThrowableAssert | Returns: the createdThrowableAssert.The shouldRaiseThrowableThrowingCallable or lambda with the code that should raise the throwable.Allows to capture and then assert on a |
| public default AbstractThrowableAssert | Returns: the createdThrowableAssert.The shouldRaiseThrowable,ThrowingCallable or lambda with the code that should raise the throwable.the new description to set. description, Object... optional parameter if description is a format String. args)Allows to capture and then assert on a |
| public default < the type of the actual value. T> ObjectAssert | Returns: the created assertion object.the actual value. actual, Consumer<T>... to assert on the actual object - must not be null. requirements)Uses the given instance as the instance under test for all the assertions expressed as the passed |
| public default Index | Returns: the createdIndex.the value of the index. index)Only delegate to |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Alias for |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Alias for |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for BigDecimal |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for BigInteger |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for Byte |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for Integer |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for Short |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for Long |
| public default TemporalUnitOffset | Returns: the createdOffset.the value of the offset. value, TemporalUnit the unit)TemporalUnit of the offset.Assertions entry point for |
| public default Exception | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default IllegalArgumentException | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default IllegalStateException | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default IndexOutOfBoundsException | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default IOException | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default NullPointerException | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default ReflectiveOperationException | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default RuntimeException | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. throwingCallableAllows catching an instance of |
| public default Throwable | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. shouldRaiseThrowableAllows to catch an |
| public default < the THROWABLE extends Throwable> THROWABLEThrowable type. | Returns: The captured exception ornull if none was raised by the callable.The lambda with the code that should raise the exception. shouldRaiseThrowable,The type of exception that the code is expected to raise. type)
Deprecated
use
Allows catching a catchThrowableOfType(Class, ThrowingCallable) instead.
Throwable of a specific type.
|
| public default < the THROWABLE extends Throwable> THROWABLEThrowable type. | Returns: The captured exception ornull if none was raised by the callable.The type of exception that the code is expected to raise. type, ThrowableAssert.The lambda with the code that should raise the exception. shouldRaiseThrowableAllows catching a |
| public default String | Returns: the content of the file.the file. file, final String the name of the character set to use. charsetName)Loads the text content of a file, so that it can be passed to |
| public default String | Returns: the content of the file.the file. file)Loads the text content of a file with the default character set, so that it can be passed to
|
| public default String | Returns: the content of the file.the file. file, final Charset the character set to use. charset)Loads the text content of a file, so that it can be passed to |
| public default String | Returns: the content of the URL.the URL. url, Charset the character set to use. charset)Loads the text content of a URL, so that it can be passed to |
| public default String | Returns: the content of the URL.the URL. url, String the name of the character set to use. charsetName)Loads the text content of a URL, so that it can be passed to |
| public default String | Returns: the content of the file.the URL. url)Loads the text content of a URL with the default character set, so that it can be passed to
|
| public default < the type of object the given condition accept. T> DoesNotHave | Returns: The DoesNotHave condition created.the condition to inverse. condition)Creates a new |
| public default < the type of keys in the map. K, the type of values in the map. V> MapEntry | Returns: the createdMapEntry.the key of the entry to create. key, final V the value of the entry to create. value)Only delegate to |
| public default Properties | Returns: the createdProperties.the name of the property to be read from the elements of a propertyName)Iterable. It may be a nested
property (e.g. "address.street.number").Only delegate to |
| public default < the type of value to extract. T> Properties | Returns: the createdProperties.the name of the property to be read from the elements of a propertyName, final Class<T> Iterable. It may be a nested
property (e.g. "address.street.number").the type of property to extract propertyType)Only delegate to |
| public default < dummy return value type T> T | Returns: nothing, it's just to be used indoSomething(optional.orElseGet(() -> fail("boom")));.error message. failureMessage)Throws an |
| public default < dummy return value type T> T | Returns: nothing, it's just to be used indoSomething(optional.orElseGet(() -> fail()));.Throws an
|
| public default < dummy return value type T> T | Returns: nothing, it's just to be used indoSomething(optional.orElseGet(() -> fail("b%s", "oom")));.error message. failureMessage, Object... Arguments referenced by the format specifiers in the format string. args)Throws an |
| public default < dummy return value type T> T | Returns: nothing, it's just to be used indoSomething(optional.orElseGet(() -> fail("boom", cause)));.the description of the failed assertion. It can be failureMessage, final Throwable null.cause of the error. realCause)Throws an |
| public default < dummy return value type T> T | Returns: nothing, it's just to be used indoSomething(optional.orElseGet(() -> fail(cause)));.cause of the error. realCause)Throws an |
| public default < dummy return value type T> T | Returns: nothing, it's just to be used indoSomething(optional.orElseGet(() -> failBecauseExceptionWasNotThrown(IOException.class)));.the Throwable class that was expected to be thrown. throwableClass)Throws an |
| public default < the array elements type. E> Filters | Returns: the created.the array to filter. array)Only delegate to |
| public default < the E> FiltersIterable elements type. | Returns: the created.the iterableToFilter)Iterable to filter.Only delegate to |
| public default < Type of test subject F, Type of the property under the assertion T> Function | Returns: same instance ofextractorA function to extract test subject's property extractor)A syntax sugar to write fluent assertion using |
| public default InFilter | Returns: the created "in" filtervalues to match (one match is sufficient) values)Create a |
| public default List | |
| public default List | |
| public default List | |
| public default List | |
| public default List | |
| public default List | |
| public default List | |
| public default List | |
| public default List | |
| public default < the type of object the given condition accept. T> Not | |
| public default NotFilter | Returns: the created "not" filterthe value not to match valueNotToMatch)Create a |
| public default NotInFilter | Returns: the created "not in" filtervalues not to match (none of the values must match) valuesNotToMatch)Create a |
| public default Offset | |
| public default Offset | |
| public default void | registerCustomDateFormat(final DateFormat
the new Date format used for String based Date assertions. userCustomDateFormat)Add the given date format to the ones used to parse date String in String based Date assertions like
|
| public default void | registerCustomDateFormat(final String
the new Date format pattern used for String based Date assertions. userCustomDateFormatPattern)Add the given date format to the ones used to parse date String in String based Date assertions like
|
| public default < the type of format. T> void | registerFormatterForType(Class<T>
the class of the type to format type, Function<T, String> the formatter formatter)FunctionAssertions error messages uses a |
| public default void | setAllowComparingPrivateFields(boolean
allow private fields comparison. Default allowComparingPrivateFields)true.Globally sets whether the use of private fields is allowed for comparison. |
| public default void | setAllowExtractingPrivateFields(final boolean
allow private fields extraction. Default allowExtractingPrivateFields)true.Globally sets whether
|
| public static void | setDescriptionConsumer(Consumer<Description>
the descriptionConsumer)Description consumerAll assertions description will be consumed by the given |
| public default void | setExtractBareNamePropertyMethods(boolean
whether bare-named property methods are found barenamePropertyMethods)Globally sets whether the extractor considers bare-named property methods like |
| public default void | setLenientDateParsing(boolean
whether lenient parsing mode should be enabled or not value)Instead of using default strict date/time parsing, it is possible to use lenient parsing mode for default date formats parser to interpret inputs that do not precisely match supported date formats (lenient parsing). |
| public default void | setMaxElementsForPrinting(int
the maximum elements that would be printed for iterables, arrays and maps. maxElementsForPrinting)Sets the maximum number of elements to display in error messages for iterables, arrays and map . |
| public default void | setMaxLengthForSingleLineDescription(int
the maximum length for an iterable/array to be displayed on one line maxLengthForSingleLineDescription)In error messages, sets the threshold when iterable/array formatting will on one line (if their String description is less than this parameter) or it will be formatted with one element per line. |
| public default void | setMaxStackTraceElementsDisplayed(int
the maximum number of lines for a stacktrace to be displayed on one throw. maxStackTraceElementsDisplayed)Sets how many stacktrace elements are included in |
| public static void | setPrintAssertionsDescription(boolean
whether to print assertions description. printAssertionsDescription)Enable/disable printing assertions description to the console (disabled by default). |
| public default void | setRemoveAssertJRelatedElementsFromStackTrace(final boolean
flag. removeAssertJRelatedElementsFromStackTrace)Sets whether we remove elements related to AssertJ from assertion error stack trace. |
| public default < dummy return value type T> T | Returns: nothing, it's just to be used indoSomething(optional.orElseGet(() -> shouldHaveThrown(IOException.class)));.the Throwable class that was expected to be thrown. throwableClass)Throws an |
| public default Tuple | Returns: the builtTuplethe values stored in the values)TupleUtility method to build nicely a |
| public default void | useDefaultDateFormatsOnly()
Remove all registered custom date formats => use only the defaults date formats to parse string as date. |
| public default void | useDefaultRepresentation()
Fallback to use |
| public default void | useRepresentation(Representation
the customRepresentation)Representation to useRegister a |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Alias for |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for BigDecimal |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Alias for |
| public default Offset | Returns: the createdOffset.the value of the offset. value)Assertions entry point for BigInteger |
| public default Offset | |
| public default Offset | |
| public default Offset | |
| public default Offset | |
| public default TemporalUnitOffset | Returns: the createdOffset.the allowed offset value, TemporalUnit the unit)TemporalUnit of the offsetAssertions entry point for |
| public default Percentage | Returns: the createdPercentage.the required precision percentage value)Assertions entry point for Double |
| public default Percentage | Returns: the createdPercentage.the required precision percentage value)Assertions entry point for Integer |
| public default Percentage | Returns: the createdPercentage.the required precision percentage value)Assertions entry point for Long |
| public default Duration | Returns: the given value.the allowed difference allowedDifference)Duration.Syntactic sugar method to use with |
| public default Offset | Returns: the createdOffset.the allowed offset value)Assertions entry point for double |
| public default Offset | Returns: the createdOffset.the allowed offset value)Assertions entry point for float |