|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
BigDecimals.Booleans.Bytes.Characters.CharSequences.Classes.ComparableAssert.ComparisonStrategy contract.Dates.Doubles.Files.Floats.InputStreams.Integers.ObjectEnumerableAssert whose actual value type is
Collection.Lists.Longs.Maps.Objects.Shorts.Throwables.UnevenComparableAssert.AllOf
AllOf
true if all of the joined conditions is satisfied.AllOf
AllOf
Filters.with(String) for synthetic sugar to write things like :.
AnyOf.anyOf(Condition...) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use AnyOf if you prefer).
AnyOf
true if any of the joined conditions is satisfied.AnyOf
AnyOf
String to the given target, only if the target does not end with the given String
to append.
Throwable.
ComparatorBasedComparisonStrategy.comparator, false otherwise.ComparatorBasedComparisonStrategy.comparator does not have too.
Objects.areEqual(Object, Object), false otherwise.
true if the given objects are equal or if both objects are null.
Comparable or according to a given
Comparator.String.format(String, Object...) syntax.
String.format(String, Object...) syntax.
String.format(String, Object...) syntax.
Iterable satisfies the given condition.
Iterable satisfying the given
condition.
Iterable satisfying the given
condition.
Iterable satisfying the given
condition.
Iterable not satisfies the given condition.
Iterable contains the given values, in any order.
List contains the given object at the given index.
Map contains the given entries, in any order.
CharSequence contains the given strings.
Iterable contains all the elements of the other Iterable, in any order.
Iterable, in any order.
Class contains the given Annotations.
Iterable contains exactly the given values and nothing else, in order.
CharSequence contains the given sequence, ignoring case considerations.
Iterable contains at least a null element.
Iterable contains only the given values and nothing else, in any order.
Iterable contains the given values and only once.
CharSequences contains only once the given sequence.
Iterable contains the given sequence of objects, without any other
objects between them.
Iterable contains the given subsequence of objects (possibly with
other values between them).
Iterable does not contain the given values.
List does not contain the given object at the given index.
Map does not contain the given entries.
CharSequence does not contain the given sequence.
Iterable does not contain the given values.
Iterable does not contain null elements.
Condition.
Iterable does not have duplicate values.
CharSequence does not match the given regular expression.
CharSequence does not match the given regular expression.
Iterable not satisfies the given condition.
Iterable is empty.
Map is empty.
CharSequence is empty.
Iterable ends with the given sequence of objects, without any other objects between
them.
CharSequence ends with the given suffix.
Comparables are equal by invoking
Comparable.compareTo(Object).Comparables.comparisonStrategy if one has been set.
CharSequences are equal, ignoring case considerations.
Condition.
List satisfies the given Condition at the given index.
Throwable is exactly an instance of the given type.
Throwable is an instance of the given type.
Class has the declared fields.
File has the given extension.
Class has the fields.
CharSequence is equal to the expected one.
Throwable message is equal to the given one.
Throwable contains with the given description.
Throwable ends with the given description.
Throwable starts with the given description.
File has the given name.
Throwable does not have a cause.
File does not have a parent.
File has the given parent.
Throwable is exactly an instance of the given type.
Throwable is an instance of the given type.
Iterable.
Iterable.
Iterable.
Iterable.
Iterable.
Iterable.
Iterable has the same size as the other array.
Iterable has the same size as the other Iterable.
Iterable.
Map has the same size as the other Iterable.
Map has the same size as the other array.
Map is equal to the size of the other Map.
Iterable.
Iterable.
CharSequence has the same size as the other
Iterable.
CharSequence has the same size as the other array.
Iterable is equal to the expected one.
Map is equal to the expected one.
CharSequence is equal to the expected one.
Date time is equal to the given timestamp.
Iterable satisfies the given condition.
Iterables.assertAreAtLeast(AssertionInfo, Iterable, int, Condition) to provide a richer fluent
api (same logic, only error message differs).
ObjectArrays.assertAreAtLeast(AssertionInfo, Object[], int, Condition) to provide a richer fluent
api (same logic, only error message differs).
Iterables.assertAreAtMost(AssertionInfo, Iterable, int, Condition) to provide a richer fluent api
(same logic, only error message differs).
ObjectArrays.assertAreAtMost(AssertionInfo, Object[], int, Condition) to provide a richer fluent api
(same logic, only error message differs).
Iterables.assertAreExactly(AssertionInfo, Iterable, int, Condition) to provide a richer fluent
api (same logic, only error message differs).
ObjectArrays.assertAreExactly(AssertionInfo, Object[], int, Condition) to provide a richer fluent
api (same logic, only error message differs).
AssertionErrors.Assertions.
Condition.
List satisfies the given Condition at the given index.
Date is strictly after the given one.
Date is after or equal to the given one.
Date is strictly after the given year.
Class is an annotation.
Class is assignable from all the others classes.
Date is strictly before the given one.
Date is before or equal to the given one.
Date is strictly before the given year.
Date is in start:end period.Date is close to the other date by less than delta, if difference is equals to delta it is
ok.TimeUnit.SECONDS.toMillis(5).
Date is equal to the given one with precision.
Date are chronologically in the same day of month (and thus in the same month and
year).
Date are in the same hour (and thus in the same day of month, month
and year).
Date are chronologically in the same hour, day of month, month and year.
Date are in the same minute, hour, day of month, month and year.
Date are chronologically in the same minute.
Date are chronologically in the same month (and thus in the same year).
Date are in the same second, minute, hour, day of month, month and year.
Date are chronologically in the same second.
Date are in the same year.
Class is an interface.
Date is strictly in the future.
Date is strictly in the past.
NaN.Condition.
Class is not an annotation.
Date is not in start:end period..Class is not an interface.
NaN.
Condition is not null.
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSorted().
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
ArraySortedAssert.isSortedAccordingTo(Comparator).
Iterable is a subset of values Iterable.
Date is today, by comparing only year, month and day of actual to today (ie.
Date day of month is equal to the given day of month.
Date day of week is equal to the given day of week.
Date hour od day is equal to the given hour of day (24-hour clock).
Date millisecond is equal to the given millisecond.
Date minute is equal to the given minute.
Date month is equal to the given month, month value starting at 1 (January=1,
February=2, ...).
Date second is equal to the given second.
Date year is equal to the given year.
CharSequence matches the given regular expression.
CharSequence matches the given regular expression.
Iterable is not empty.
Map is not empty.
CharSequence is not empty.
Comparables are not equal by invoking
Comparable.compareTo(Object) .Comparables.comparisonStrategy if one has been set.
null.
null.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
Iterable is null or empty.
null or empty.
Map is null or empty.
null or empty.
null or empty.
CharSequence is null or empty.
Iterable starts with the given sequence of objects, without any other objects
between them.
CharSequence starts with the given prefix.
BigDecimalAssert.
BooleanAssert.
BooleanAssert.
BooleanArrayAssert.
ByteAssert.
ByteAssert.
ByteArrayAssert.
CharacterAssert.
CharArrayAssert.
CharacterAssert.
ClassAssert
IterableAssert.
IterableAssert.
DoubleAssert.
DoubleAssert.
DoubleArrayAssert.
FileAssert.
InputStreamAssert.
FloatAssert.
FloatAssert.
FloatArrayAssert.
IntegerAssert.
IntArrayAssert.
IntegerAssert.
ListAssert.
LongAssert.
LongAssert.
LongArrayAssert.
ObjectAssert.
ObjectArrayAssert.
MapAssert.
ShortAssert.
ShortAssert.
ShortArrayAssert.
CharSequenceAssert.
StringAssert.
DateAssert.
ThrowableAssert.
BigDecimalAssert.
BooleanAssert.
BooleanAssert.
BooleanArrayAssert.
ByteAssert.
ByteAssert.
ByteArrayAssert.
CharacterAssert.
CharArrayAssert.
CharacterAssert.
ClassAssert
GenericComparableAssert with
standard comparison semantics.
IterableAssert.
IterableAssert.
DoubleAssert.
DoubleAssert.
DoubleArrayAssert.
FileAssert.
InputStreamAssert.
FloatAssert.
FloatAssert.
FloatArrayAssert.
IntegerAssert.
IntArrayAssert.
IntegerAssert.
ListAssert.
LongAssert.
LongAssert.
LongArrayAssert.
ObjectAssert.
ObjectArrayAssert.
MapAssert.
ShortAssert.
ShortAssert.
ShortArrayAssert.
CharSequenceAssert.
StringAssert.
DateAssert.
ThrowableAssert.
Index.atIndex(int) so that Assertions offers a full feature entry point to all AssertJ
features (but you can use Index if you prefer).
Index.
BasicErrorMessageFactory.
BDDAssertions.
Condition.Filters.having(Condition) - pick the method you prefer to have the most readable code.
BigDecimalComparator.
BigDecimals.BigDecimal Comparator based on BigDecimal.compareTo(BigDecimal).BigDecimal.compareTo(BigDecimal) instead of
BigDecimal.equals(Object) method.BigDecimals.booleans.booleans.Booleans.Booleans.bytes.bytes.Bytes.Bytes.TypeFilter.
File can be read by the application.
File can be modified by the application.
Characters.Characters.chars.chars.CharSequences.null.
null.
String is not null or empty.
String is not null or empty.
null or empty.
Classes.Classs.Closeable.Closeables, ignoring any thrown exceptions.
Collections.Comparables.Comparables.ComparisonStrategy contract with a comparison strategy based on a Comparator.ComparatorBasedComparisonStrategy specifying the comparison strategy with given
comparator.
String.
Condition.
Condition.
Condition.
Condition A group of
elements can be a collection, an array.Condition.CharSequence contains all the given strings.
Iterable, in any order.
Iterable, in any order.
Iterable, in any order.
AbstractIterableAssert.containsExactly(Object[]) but handle the Iterable to array conversion.
CharSequence contains the given sequence, ignoring case considerations.
AbstractIterableAssert.containsOnly(Object[]) : verifies that actual contains all the elements of the given
iterable and nothing else, in any order.
CharSequence contains the given sequence only once.
CharSequence contains all the given strings in the given order.
Assertions.assertThat(String).
Assertions.assertThat(String).
Assertions.assertThat(String).
Dates.DateAssert.
Dates.Calendar.DAY_OF_WEEK .
Descriptable.as(String, Object...) since "as" is a keyword in Groovy.
Descriptable.as(String, Object...) since "as" is a keyword in Groovy.
Descriptable.as(String, Object...) since "as" is a keyword in Groovy.
Descriptable.as(String, Object...) since "as" is a keyword in Groovy.
Descriptable.as(String, Object...) since "as" is a keyword in Groovy.
Descriptable.as(String, Object...) since "as" is a keyword in Groovy.
Descriptions to be included in assertion errors.AbstractAssert.describedAs(String, Object...) or AbstractAssert.describedAs(Description).
null if such description is null.
CharSequence does not contain the given sequence.
Iterable (i.e.
File does not exist.
DoesNotHave.
true if the condition is not satisfied.DoesNotHave.
CharSequence does not match the given regular expression.
CharSequence does not match the given regular expression pattern.
doubles.doubles.Doubles.Doubles.Iterable according to ComparatorBasedComparisonStrategy.comparator.
Iterable according to the implemented comparison strategy.
Objects.areEqual(Object, Object) comparison
strategy.
Collection.
Condition
A group of elements can be a collection, an array.ElementsShouldBe.
Condition A group of elements can be a collection, an array.ElementsShouldBeAtLeast.
Condition A group of elements can be a collection, an array.ElementsShouldBeAtMost.
Condition A group of elements can be a collection, an array.ElementsShouldBeExactly.
Condition
A group of elements can be a collection, an array.ElementsShouldHave.
Condition A group of elements can be a collection, an array.ElementsShouldHaveAtLeast.
Condition A group of elements can be a collection, an array.ElementsShouldHaveAtMost.
Condition A group of elements can be a collection, an array.ElementsShouldHaveExactly.
Condition A group of elements can be a collection, an array.ElementsShouldNotBe.
Condition
A group of elements can be a collection, an array.ElementsShouldNotHave.
CharSequence ends with the given suffix.
MapEntry.entry(Object, Object) so that Assertions offers a full feature entry point to
all
AssertJ features (but you can use MapEntry if you prefer).
MapEntry.
Filters.with(String)) equals to given
value.
File exists, regardless it's a file or directory.
FieldsOrPropertiesExtractor.extract(Iterable, Extractor) after converting objects to an iterable.
AbstractIterableAssert.extracting(Extractor)
Properties.extractProperty(String) so that Assertions offers a full feature entry point
to
all AssertJ features (but you can use Properties if you prefer).
Properties.extractProperty(String) so that Assertions offers a full feature entry point
to
all AssertJ features (but you can use Properties if you prefer).
Properties.
Properties with given propertyName and Object as property type..
Fail.fail(String) so that Assertions offers a full feature entry point to all Assertj
Assert features (but you can use Fail if you prefer).
Fail.fail(String, Throwable) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use Fail if you prefer).
AssertionError with the given message and with the Throwable that caused the failure.
Fail.failBecauseExceptionWasNotThrown(Class) so that Assertions offers a full feature
entry point to all AssertJ features (but you can use Fail if you prefer).
AssertionError with a message explaining that a Throwable of given class was expected to be thrown
but had not been.
AssertionError following this pattern:
creates a AssertionError using AssertionInfo.overridingErrorMessage() as the
error message if such value is not null, or
uses the given AssertionErrorFactory to create an AssertionError, prepending
the value of AssertionInfo.description() to the error message
AssertionError following this pattern:
creates a AssertionError using AssertionInfo.overridingErrorMessage() as the
error message if such value is not null, or
uses the given ErrorMessageFactory to create the detail message of the
AssertionError, prepending the value of AssertionInfo.description() to the error
message
AssertionError using the given String as message.
FieldSupport
List containing the values of the given field name, from the elements of the given
Iterable.
List containing the values of the given field name, from the elements of the given
Iterable.
Files.Files.Files.FilesException.
FilesException.
Filters.filter(Object[]) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use Filters if you prefer).
Filters.filter(Object[]) so that Assertions offers a full feature entry point to all
AssertJ features (but you can use Filters if you prefer).
Filters with the Iterable to filter.
Filters with the array to filter.
Iterable or array according to the specified filter criteria.floats.floats.Numbers.Floats.Flushables, ignoring any thrown exceptions.
Flushable.Writer.
OutputStream.
Description by surrounding its text value with square brackets and adding a space at
the end.
String for failed assertion messages.
String representation of the given array, or null if the given object is either
null or not an array.
String standard representation of
the given array, or null if the given object is either null or not an array.
String standard representation of
the given Collection, or null if the given Collection is null.
String representation of the given Collection, or null if the given
Collection is null.
String standard representation of
the given Collection, or null if the given Collection is null.
String representation of the given Collection, or null if the given
Collection is null.
String standard representation of
the given map, or null if the given map is null.
String representation of the given map, or null if the given map is null.
String.format(String, Object...) the given message iif some args have been given otherwise juts
return the message.
Properties.extractProperty(String)) from the elements
of the given Iterable.
Properties.extractProperty(String)) from the elements
of the given array.
ComparableAssert to be used through Assertions.assertThat(java.lang.Comparable).PropertyDescriptor for a property matching the given name in the given object.
Throwable.
WritableAssertionInfo used in the current assertion for better extensibility. When writing
your own assertion class, you can use the returned WritableAssertionInfo to change the error message and
still keep the description set by the assertion user.
Class has the given Annotation.
Class has the given Annotations.
Iterable belong to the specified type (matching includes
subclasses of the given type).
Object group belong to the specified type (matching
includes subclasses of the given type).
Object group belong to the specified type (matching
includes subclasses of the given type).
File is exactly equal to the given one.
Throwable is exactly an instance of the given type.
Throwable is an instance of the given type.
File is exactly equal to the given one.AbstractFileAssert.usingCharset(Charset) or
AbstractFileAssert.usingCharset(String) prior to calling this method; if not, the platform's default charset (as returned by
Charset.defaultCharset()) will be used.
File is equal to the content of the given one.
InputStream is equal to the content of the given one.
Class has the declared fields.
File has given extension.
Class has the fields.
CharSequence has the expected line count.
Throwable is equal to the given one.
Throwable contains with the given description.
Throwable ends with the given description.
Throwable starts with the given description.
File has given name.
Throwable does not have a cause.
File does not have a parent.
Iterable belong to the specified type (matching includes
subclasses of the given type).
Object group belong to the specified type (matching includes
subclasses of the given type).
Object group belong to the specified type (matching includes
subclasses of the given type).
true if the given array has only null elements, false otherwise.
File has given parent.
AbstractFileAssert.hasParent(java.io.File) but takes care of converting given String as File for you
Throwable is exactly an instance of the given type.
Throwable is an instance of the given type.
AbstractIterableAssert.containsOnlyElementsOf(Iterable) : verifies that actual contains all the elements of the
given iterable and nothing else, in any order.
Iterable.
Iterable.
Iterable.
CharSequence has a length that's the same as the length of the given
CharSequence.
CharSequence has a length that's the same as the number of elements in the given
array.
CharSequence has a length that's the same as the number of elements in the given
Iterable.
Iterable.
Iterable.
Iterable.
Iterable.
Iterable.
Iterable.
Map.
Iterable.
Iterable.
Iterable.
CharSequence has the expected length using the length() method.
Date has the same time as the given timestamp.
ObjectEnumerableAssert.areAtMost(int, Condition).
ObjectEnumerableAssert.areAtMost(int, Condition).
ObjectEnumerableAssert.areAtMost(int, Condition).
ObjectEnumerableAssert.areExactly(int, Condition).
ObjectEnumerableAssert.areExactly(int, Condition).
ObjectEnumerableAssert.areExactly(int, Condition).
Condition.Filters.being(Condition) - pick the method you prefer to have the most readable code.
Filters.with(String)) equals to one of the
given values.
InputStreams.InputStreams.InputStreams.InputStreamsException.
InputStreamsException.
StandardComparisonStrategy.
StandardComparisonStrategy.
StandardComparisonStrategy.
StandardComparisonStrategy.
StandardComparisonStrategy.
StandardComparisonStrategy.
StandardComparisonStrategy.
StandardComparisonStrategy.
ints.ints.Integers.Integers.IntrospectionError.
IntrospectionError.
File is an absolute path.
Date is strictly after the given one.
AbstractDateAssert.isAfter(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date is after or equals to the given one.
AbstractDateAssert.isAfterOrEqualsTo(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date is strictly after the given year.
Class is an annotation.
null and is an array.
Class is assignable from others Class
Date is strictly before the given one.
AbstractDateAssert.isBefore(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date is before or equals to the given one.
AbstractDateAssert.isBeforeOrEqualsTo(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date is strictly before the given year.
Date is in [start, end[ period (start included, end excluded).
AbstractDateAssert.isBetween(Date, Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date is in the given period defined by start and end dates.true.true.AbstractDateAssert.isBetween(Date, Date, boolean, boolean)but given date is represented as String either
with one of the supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date is close to the other date by less than delta (expressed in milliseconds),
if
difference is equals to delta it's ok.
AbstractDateAssert.isCloseTo(Date, long) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
File is an existing directory.
CharSequence is empty, i.e., it has a length of 0 and is not null.
isEqualByComparingTo(BigDecimal)
but takes care of converting given String to BigDecimal for you.
Comparable.compareTo(Object).
Comparable.compareTo(Object).
AbstractObjectAssert.isEqualToComparingFieldByField(Object) instead.
isEqualTo(BigDecimal) but takes care of converting given String to
BigDecimal for you.
isEqualTo(Date date) but given date is represented as
String either with one of the supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
CharSequence is equal to the given one, ignoring case considerations.
AbstractDateAssert.isEqualToIgnoringHours(Date) but given Date is represented as String
either with one of the default supported date format or user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
AbstractAssert.isEqualTo(Object)}} but given Date is represented as String either with
one of the default supported date format or user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
AbstractDateAssert.isEqualToIgnoringMillis(Date) but given Date is represented as String
either with one of the default supported date format or user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
AbstractAssert.isEqualTo(Object)}} but given Date should not take care of milliseconds
precision.
AbstractDateAssert.isEqualToIgnoringMinutes(Date) but given Date is represented as
String either with one of the default supported date format or user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
AbstractAssert.isEqualTo(Object)}} but given Date should not take care of minutes,
seconds and milliseconds precision.
AbstractDateAssert.isEqualToIgnoringSeconds(Date) but given Date is represented as
String
either with one of the default supported date format or user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
AbstractAssert.isEqualTo(Object)}} but given Date should not take care of seconds and
milliseconds precision.
false.
File is an existing file.
Assert.isIn(Object...)but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date have the same day of month, month and year fields values.
AbstractDateAssert.isInSameDayAs(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date have same hour, day, month and year fields values.
AbstractDateAssert.isInSameHourAs(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date are chronologically in the same hour (i.e.
AbstractDateAssert.isInSameHourWindowAs(java.util.Date) but given date is represented as String either
with one of the supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date have same minute, same hour, day, month and year fields values.
AbstractDateAssert.isInSameMinuteAs(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date are chronologically in the same hour (i.e.
AbstractDateAssert.isInSameMinuteWindowAs(Date) but given date is represented as String either with one of
the supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date have same month and year fields.
AbstractDateAssert.isInSameMonthAs(Date)but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date have same second, minute, hour, day, month and year fields values.
AbstractDateAssert.isInSameSecondAs(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date are chronologically strictly in the same second (i.e.
AbstractDateAssert.isInSameSecondWindowAs(Date) but given date is represented as String either with one of
the supported defaults date format or a user custom date format (set with method
AbstractDateAssert.withDateFormat(DateFormat)).
Date are in the same year.
AbstractDateAssert.isInSameYearAs(Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Class is an interface.
Date is strictly in the future.
Date is strictly in the past.
Assert.isIn(Iterable) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
AbstractObjectAssert.isEqualToComparingOnlyGivenFields(Object, String...) instead.
AbstractObjectAssert.isEqualToIgnoringGivenFields(Object, String...) instead.
AbstractObjectAssert.isEqualToIgnoringNullFields(Object) instead.
NaN.
NaN.
NaN.
Class is not an annotation.
Date is not in the given period defined by start and end dates.true.true.AbstractDateAssert.isNotBetween(Date, Date, boolean, boolean) but given date is represented as String
either with one of the supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Date is not in [start, end[ period
AbstractDateAssert.isNotBetween(Date, Date) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
CharSequence is not empty, i.e., is not null and has a length of 1 or
more.
Comparable.compareTo(Object).
Comparable.compareTo(Object).
isNotEqualTo(Date date) but given date is
represented as String either with one of the supported defaults date format or a user custom date format (set with
method AbstractDateAssert.withDateFormat(DateFormat)).
Assert.isNotIn(Object...) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
Class is not an interface.
Assert.isNotIn(Iterable) but given date is represented as String either with one of the
supported defaults date format or a user custom date format (set with method AbstractDateAssert.withDateFormat(DateFormat)).
NaN.
NaN.
NaN.
null.
null.
null.
null.
null or empty.
null or empty.
null or empty.
CharSequence is empty, i.e., it has a length of 0, or is null.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
null or empty.
Collection is null or empty.
Iterable is null or empty.
Map is null or empty.
String is null or empty.
File is a relative path.
Iterable are present in the given Iterable.
Date is today, that is matching current year, month and day (no check on hour,
minute, second, milliseconds).
true.
Date day of month is equal to the given day of month.
Date day of week is equal to the given day of week (see Calendar.DAY_OF_WEEK for valid values).
Date hour of day is equal to the given hour of day (24-hour clock).
Date millisecond is equal to the given millisecond.
Date minute is equal to the given minute.
Date month is equal to the given month, month value starting at 1
(January=1, February=2, ...).
Date second is equal to the given second.
Date year is equal to the given year.
CharSequence is equal to the given XML CharSequence after both have been
formatted the same way.
CharSequence is equal to the content of the given file.
Iterable.Iterable contains given value according to ComparatorBasedComparisonStrategy.comparator, false otherwise.Iterable is null or empty, return false.
Iterable contains given value according to the implemented comparison strategy, false
otherwise.Iterable is null, return false.
Iterable contains given value based on Objects.areEqual(Object, Object),
false otherwise.Iterable is null, return false.
Iterable according to the Comparator, if value is found it is removed
from it.Iterable is null (meaning no exception thrown).
Iterable according to the implemented comparison strategy, if value is found it is
removed from it.Iterable is null, does nothing.
Iterable according to the implemented comparison strategy, if value is found it is
removed from it.Iterable is null, does nothing.
Iterables.Iterables.Conditions.Join.
Join.
Strings using a given delimiter.
Objects using a given delimiter.
SoftAssertions, but with the following differences:
First, it's a junit rule, which can be used as follows (without the assertAll())Lists.Lists.java.util.Lists.longs.longs.Longs.Longs.Maps.Map.Maps.CharSequence matches the given regular expression.
CharSequence matches the given regular expression pattern.
ArrayList containing the given elements.
ArrayList containing the given elements.
ArrayList containing the given elements.
ArrayList.
AssertionError.
AssertionError indicating that an assertion that verifies that two objects are
equal failed.AssertionError message is built so that it differentiates ShouldBeEqual.actual and
ShouldBeEqual.expected description in case their string representation are the same (like 42 float and 42 double).
ConcurrentMap that is empty.
HashMap that is empty.
HashSet.
HashSet containing the given elements.
2003-04-23
2003-04-26T13:01:02
2003-04-26T03:01:02.999
LinkedHashSet.
LinkedHashSet containing the given elements.
Set honoring the comparison strategy used.
WeakHashMap that is empty.
null elements in the given array.
null elements in the given Collection.
null elements in the given Iterable.
Not.
true if the condition is not satisfied.Not.
Filters.with(String)) not equals to given
value.
Filters.with(String)) not in the given
values.
Numbers.Objects.Objects.Offset.
Offset.
Offset.
Offset.
Offset.
Offset.
Properties.extractProperty(String).
Dates.ISO_DATE_FORMAT, returns null if the given String is null.
Dates.ISO_DATE_TIME_FORMAT, returns null if the given String is null.
Dates.ISO_DATE_TIME_FORMAT_WITH_MS, returns null if the given String is
null.
Iterable or array.PropertySupport.propertyValueOf(String, Class, Object) for syntactic sugar.
List containing the values of the given property name, from the elements of the
given Iterable.
PropertySupport.propertyValues(String, Class, Iterable) with Class being Object.class
String surrounded by single quotes, or null if the given String is
null.
String.
AbstractDateAssert.isEqualTo(String).
AbstractDateAssert.isEqualTo(String).
AbstractDateAssert.isEqualTo(String).
AbstractDateAssert.isEqualTo(String).
Throwable stack trace that have little value for
end user.
Failures.removeAssertJRelatedElementsFromStackTrace is true, it filters the stack trace of the given AssertionError
by removing stack trace elements related to AssertJ in order to get a more readable stack trace.
IterableAssert#extracting(String) and
ObjectArrayAssert#extracting(String)
should be allowed to extract private fields, if not and they try it fails with exception.
IterableAssert#extracting(String)
and
ObjectArrayAssert#extracting(String)
should be allowed to extract private fields, if not and they try it fails with exception.
Fail.setRemoveAssertJRelatedElementsFromStackTrace(boolean) so that Assertions offers a
full feature entry point to all AssertJ Assert features (but you can use Fail if you prefer).
Sets.shorts.shorts.Shorts.Shorts.Condition
failed.ShouldBe.
File is an absolute path
failed.ShouldBeAbsolutePath.
Date is after another one failed.ShouldBeAfter.
ShouldBeAfter.
ShouldBeAfter.
Date is after or equals to another one
failed.ShouldBeAfterOrEqualsTo.
ShouldBeAfterOrEqualsTo.
Date is after given year failed.ShouldBeAfterYear.
ShouldBeAfterYear.
ShouldBeAnArray.
ShouldBeAnnotation.
ShouldBeAssignableFrom.
Condition failed.ShouldBeAtIndex.
Date is before another one failed.ShouldBeBefore.
ShouldBeBefore.
Date is before or equals to another one
failed.ShouldBeBeforeOrEqualsTo.
ShouldBeBeforeOrEqualsTo.
Date is before given year failed.ShouldBeBeforeYear.
ShouldBeBeforeYear.
Date is between start - end dates (inclusive
or not) failed.ShouldBeBetween.
ShouldBeBetween.
ShouldBeBetween.
ShouldBeBetween.
Date is close to another one from some delta
failed.ShouldBeCloseTo.
File is an existing directory
failed.ShouldBeDirectory.
ShouldBeEmpty.
AssertionError indicating that an assertion that verifies that two objects are equal
failed.ShouldBeEqual.
ShouldBeEqual.
ShouldBeEqualIgnoringCase.
ShouldBeEqualWithinOffset.
ShouldBeEqualWithTimePrecision.
AssertionError indicating that an assertion that verifies that two objects are
lenient equal by accepting fields failed.ShouldBeEqualByComparingOnlyGivenFields.
CharSequences are equal, ignoring case
considerations, failed.AssertionError indicating that an assertion that verifies that two objects are lenient equal by
ignoring fields failed.ShouldBeEqualToIgnoringFields.
AssertionError indicating that an assertion that verifies that two dates are equals
up to a given precision failed.ShouldBeExactlyInstanceOf.
File is executable
failed.ShouldBeExecutable.
File is an existing file
failed.ShouldBeFile.
ShouldBeGreater.
ShouldBeGreater.
ShouldBeGreaterOrEqual.
ShouldBeGreaterOrEqual.
ShouldBeIn.
ShouldBeIn.
Date is in same year, month and day of month
as another one failed.ShouldBeInSameDay.
Date is in same year, month, day of month
and hour as another one failed.ShouldBeInSameHour.
Date is in same hour window as
another one failed.ShouldBeInSameHourWindow.
Date is in same year, month, day of month,
hour and minute as another one failed.ShouldBeInSameMinute.
Date is in minute window as
another one failed.ShouldBeInSameMinuteWindow.
Date is in same year and month as another
one failed.ShouldBeInSameMonth.
Date is in same year, month, day
of month, hour, minute and second as another one failed.ShouldBeInSameSecond.
Date is in second window as
another one failed.Date is in same year as another one failed.ShouldBeInSameYear.
ShouldBeInstance.
ShouldBeInstance when object we want to check type is null.
ShouldBeInstanceOfAny.
ShouldBeInterface.
Date is in the future failed.ShouldBeInTheFuture.
ShouldBeInTheFuture.
Date is in the past failed.ShouldBeInThePast.
ShouldBeInThePast.
ShouldBeLess.
ShouldBeLess.
ShouldBeLessOrEqual.
ShouldBeLessOrEqual.
ShouldBeLowerCase.
null or empty failed.ShouldBeNullOrEmpty.
ShouldBeOfClassIn.
File is readable
failed.ShouldBeReadable.
File is a relative path failed.ShouldBeRelativePath.
ShouldBeSame.
ConditionAndGroupGenericParameterTypeShouldBeTheSame
ShouldBeSorted.
Iterable is a subset of an other set
Iterable failed.ShouldBeSubsetOf
ShouldBeSubsetOf.
Date is today (matching only year, month and
day but not hours).ShouldBeToday.
ShouldBeToday.
ShouldBeUpperCase.
Date is within a year, month, day, ...ShouldBeWithin.
File is writable
failed.ShouldBeWritable.
ShouldContain.
ShouldContain.
ShouldContainCharSequence.
ShouldContainCharSequence.
ShouldContainCharSequence.
ShouldContainCharSequence.
ShouldContainAtIndex.
ShouldContainAtIndex.
CharSequence contains another
CharSequence failed.CharSequence contains another CharSequence only
once failed.CharSequence contains a sequence of
several CharSequences in order failed.ShouldContainExactly.
ShouldContainExactly.
ShouldContainExactly for the case where actual and expected have the same
elements in different order according to the given ComparisonStrategy.
ShouldContainExactly for the case where actual and expected have the same
elements in different order.
ShouldContainCharSequence.
ShouldContainKeys.
ShouldContainNull.
ShouldContainOnly.
ShouldContainOnly.
ShouldContainOnlyKeys.
ShouldContainCharSequenceOnlyOnce.
ShouldContainCharSequenceOnlyOnce.
ShouldContainCharSequenceSequence.
ShouldContainCharSequenceSequence.
ShouldContainSequence.
ShouldContainSequence.
ShouldContainsOnlyOnce.
ShouldContainsOnlyOnce.
ShouldContainSubsequence.
ShouldContainSubsequence.
ShouldContainValue.
ShouldEndWith.
ShouldEndWith.
File exists failed.ShouldExist.
Condition
failed.ShouldHave.
ShouldHaveAnnotations.
Condition failed.ShouldHaveAtIndex.
ShouldHaveAtLeastOneElementOfType.
ShouldHaveBinaryContent.
Throwable have a cause
exactly instance of a certain type.BasicErrorMessageFactory.
Throwable have a cause instance of
a certain type.BasicErrorMessageFactory.
ShouldHaveContent.
ShouldHaveFields.
ShouldHaveEqualContent.
ShouldHaveEqualContent.
File should have extension.ShouldHaveFields.
ShouldHaveLineCount.
Throwable have certain message failed.ShouldHaveMessage.
File should have name.Throwable has no cause failed.ShouldHaveNoCause.
File should not have a parent.ShouldHaveNoParent.
ShouldHaveOnlyElementsOfType.
File should have a parent.Throwable have a root cause
exactly instance of a certain type.BasicErrorMessageFactory.
Throwable have a root cause
instance of a certain type.BasicErrorMessageFactory.
ShouldHaveSameClass.
ShouldHaveSameSizeAs.
ShouldHaveSize.
ShouldHaveTime.
ShouldMatchPattern.
CharSequence matches a pattern failed.Condition failed.ShouldNotBe.
ShouldBeAnnotation.
Date is not between start - end dates
(inclusive or not) failed.ShouldNotBeBetween.
ShouldNotBeBetween.
ShouldNotBeEqual.
ShouldNotBeEqual.
ShouldNotBeExactlyInstanceOf.
ShouldNotBeIn.
ShouldNotBeIn.
ShouldNotBeInstance.
ShouldNotBeInstanceOfAny.
ShouldBeInterface.
null failed.ShouldNotBeOfClassIn.
ShouldNotBeSame.
ShouldNotContain.
ShouldNotContain.
ShouldNotContainCharSequence.
ShouldNotContainCharSequence.
ShouldNotContainAtIndex.
ShouldNotContainAtIndex.
CharSequence does not contain another
CharSequence failed.ShouldNotContainKey.
ShouldNotContainNull.
ShouldNotContainValue.
File does not exist failed.ShouldNotExist.
Condition failed.ShouldNotHave.
ShouldNotHaveDuplicates.
ShouldNotHaveDuplicates.
ShouldNotHaveSameClass.
ShouldStartWith.
CharSequence does not match a pattern failed.ShouldStartWith.
ShouldStartWith.
Iterable.
SoftAssertions.
ComparisonStrategy contract with a comparison strategy based on
Objects.areEqual(Object, Object) method, it is also based on Comparable.compareTo(Object) when Object
are Comparable method.StandardComparisonStrategy, comparison strategy being based on
Objects.areEqual(Object, Object).
CharSequence starts with the given prefix.
Strings.CharSequences.Strings.Strings using a given delimiter.String to the given target, only if the target does not end with the given
String to append.TextDescription.
BigDecimalAssert.
BooleanAssert.
BooleanAssert.
BooleanArrayAssert.
ByteAssert.
ByteAssert.
ByteArrayAssert.
CharacterAssert.
CharArrayAssert.
CharacterAssert.
ClassAssert
IterableAssert.
IterableAssert.
DoubleAssert.
DoubleAssert.
DoubleArrayAssert.
FileAssert.
InputStreamAssert.
FloatAssert.
FloatAssert.
FloatArrayAssert.
IntegerAssert.
IntArrayAssert.
IntegerAssert.
ListAssert.
LongAssert.
LongAssert.
LongArrayAssert.
ObjectAssert.
ObjectArrayAssert.
MapAssert.
ShortAssert.
ShortAssert.
ShortArrayAssert.
CharSequenceAssert.
StringAssert.
DateAssert.
ThrowableAssert.
Throwables.Throwables.Throwables.String specified in the constructor to the String passed as argument.
Iterable.
Object.toString() from any objectObject.toString() from any object
toString representation of the given object.
toString representation of the given object.
toString representation of the given object.
toString representation of the given object.
toString representation of the given String or Character.
truncateTime(2008-12-29T23:45:12) will give 2008-12-29T00:00:00.
Tuple when working with AbstractIterableAssert.extracting(String...) or
AbstractObjectArrayAssert.extracting(String...)
Comparables whose implementation of compareTo is not consistent
with their implementation of equals (e.g.AbstractDateAssert.registerCustomDateFormat(java.text.DateFormat) instead.
AbstractDateAssert.registerCustomDateFormat(String) instead.
Assertions.registerCustomDateFormat(java.text.DateFormat) instead.
Assertions.registerCustomDateFormat(String) instead.
AbstractDateAssert.useDefaultDateFormatsOnly() instead.
Assertions.useDefaultDateFormatsOnly() instead.
AbstractDateAssert.useDefaultDateFormatsOnly() instead.
Assertions.useDefaultDateFormatsOnly() instead, it includes this format.
Assertions.useDefaultDateFormatsOnly() instead, it includes this format.
Assertions.useDefaultDateFormatsOnly() instead, it includes this format.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for
incoming assertion checks.
equals method to compare group elements for incoming assertion checks.
equals method to compare group elements for incoming assertion checks.
equals
method to compare group elements for incoming assertion checks.
"adress.street.name".
Strings.
Strings.
AbstractDateAssert.isEqualTo(String),
AssertJ is gonna use any date formats registered with one of these methods :
AbstractDateAssert.withDateFormat(String)
this method
AbstractDateAssert.registerCustomDateFormat(java.text.DateFormat)
AbstractDateAssert.registerCustomDateFormat(String)
Beware that :
this will be the case for all future Date assertions in the test suite
once a custom date format is registered, the default date formats are not used anymore
To revert to default format, call AbstractDateAssert.useDefaultDateFormatsOnly() or AbstractDateAssert.withDefaultDateFormatsOnly().
AbstractDateAssert.isEqualTo(String),
AssertJ is gonna use any date formats registered with one of these methods :
this method
AbstractDateAssert.withDateFormat(java.text.DateFormat)
AbstractDateAssert.registerCustomDateFormat(java.text.DateFormat)
AbstractDateAssert.registerCustomDateFormat(String)
Beware that :
this will be the case for all future Date assertions in the test suite
once a custom date format is registered, the default date formats are not used anymore
To revert to default format, call AbstractDateAssert.useDefaultDateFormatsOnly() or AbstractDateAssert.withDefaultDateFormatsOnly().
AbstractDateAssert.withDefaultDateFormatsOnly() instead.
Assertions.offset(Double) to use with isCloseTo assertions.
Assertions.offset(Float) to use with isCloseTo assertions.
Offset to use with isCloseTo assertions.
AbstractDateAssert.withDefaultDateFormatsOnly() instead.
ArrayWrapperList
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||