Package org.assertj.core.error
package org.assertj.core.error
-
ClassDescriptionBase class for text content error.Factory of
s.AssertionError
Deprecated.AssertJ version ofMultipleFailuresError
to get more control on the error formatting.A factory of error messages typically shown when an assertion fails.Error message factory for an assertion which checks that a class has (or has not) a specific modifier.Creates an error message indicating that an assertion that verifies type of elements of group andCondition
A group of elements can be a collection, an array.Access to constructors using Java reflection.Formats the
s to be included in assertion errors.Description
Creates an error message indicating that an assertion that verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at least n times aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at most n times aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies exactly n times aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at least n times aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies at most n times aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies elements of a group satisfies exactly n times aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that not verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.Creates an error message indicating that an assertion that verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.Factory of error messages.Generates a description for the type of a group of elements.Build error message when anMatcher
should match.Formats the messages to be included in assertion errors.Build error message when anOptionalDouble
should have a specific value close to an offset.Build error message when anOptionalDouble
should be close to an expected value within a positive percentage.Build error message when anOptional
should be empty.Build error message when a value should be present in anOptional
.Build error message when anOptional
,OptionalDouble
,OptionalInt
orOptionalLong
should contain a specific value.Build an error message when a value should be instance of a specific class.Creates an error message indicating that an assertion that verifies that
accepts a value failed.Predicate
Creates an error message indicating that an assertion that verifies that a value satisfies a
failed.Condition
Creates an error message indicating that an assertion that verifies that aDate
is after another one failed.Creates an error message indicating that an assertion that verifies that anObject
is after or equal to another one failed.Creates an error message indicating that an assertion that verifies that aDate
is after given year failed.Creates an error message indicating that a group of elements should have been an array.Creates an error message indicating that an assertion that verifies that a class is (or not) an annotation.Creates an error message indicating that an assertion that verifies that a class is assignable from.Creates an error message indicating that an assertion that verifies that a class is assignable to.Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that satisfies a
failed.Condition
Creates an error message indicating that an assertion that verifies that twoOffsetDateTimes
have the sameInstant
, failed.Creates an error message that indicates an assertion that verifies that a string is a valid Base64 encoded string failed.Creates an error message indicating that an assertion that verifies that aObject
is before another one failed.Creates an error message indicating that an assertion that verifies that anObject
is before or equal to another one failed.Creates an error message indicating that an assertion that verifies that aDate
is before given year failed.Creates an error message indicating that an assertion that verifies that a value is between a start and an end (inclusive or not) failed.Creates an error message indicating that an assertion that verifies aCharSequence
is blank.Creates an error message indicating that an assertion that verifies that aPath
is canonical has failed.Creates an error message indicating that an assertion that verifies that aDate
is close to another one from some delta failed.Creates an error message indicating that an assertion that verifies a group of elements is empty failed.Creates an
indicating that an assertion that verifies that two objects are equal failed.AssertionError
Creates an
indicating that an assertion that verifies that two objects are lenient equal by accepting fields failed.AssertionError
Creates an error message indicating that an assertion that verifies that twoCharSequence
s are equal, ignoring case considerations, failed.Creates an error message indicating that an assertion that verifies that twoZonedDateTime
have same year, month, and day fields failed.Creates an error message indicating that an assertion that verifies that twoZonedDateTime
have same year, month, day and hour fields failed.Creates an error message indicating that an assertion that verifies that : twoZonedDateTime
,LocalDateTime
have same year, month, day, hour, minute and second failed. twoLocalTime
have same hour, minute and second failed. twoOffsetTime
have same hour, minute and second failed.Creates an error message indicating that an assertion that verifies that twoZonedDateTime
have same year, month, day, hour and minute failed.Creates an error message indicating that an assertion that verifies that twoOffsetTime
have same time fields except the timezone.Creates an error message indicating that an assertion that verifies that twoCharSequence
s are equal, ignoring whitespace differences, failed.Creates an error message indicating that an assertion that verifies that twoCharSequence
s are equal, after the punctuation of both strings have been normalized, failed.Creates an error message indicating that an assertion that verifies that twoCharSequence
s are equal, on their canonical form relying onNormalizer
, failed.Creates an error message indicating that an assertion that verifies that twoCharSequence
s are equal, after the whitespace of both strings has been normalized, failed.Creates an
indicating that an assertion that verifies that two objects are lenient equal by ignoring fields failed.AssertionError
Creates an error message indicating that an assertion that verifies that two numbers are equal within a positive offset failed.Creates an error message indicating that an assertion that verifies that two numbers are equal within a positive percentage failed.Creates an
indicating that an assertion that verifies that two dates are equals up to a given precision failed.AssertionError
Creates an error message that indicates an assertion that verifies that a whole number is even failed.Creates an error message indicating that an assertion that verifies that an object is exactly an instance of some type failed.Creates an error message indicating that an assertion that verifies that a
is executable failed.File
Creates an error message indicating that an assertion that verifies that anIterator
has no more elements failed.Creates an error message indicating that an assertion that verifies that a
is an existing file failed.File
Creates an error message indicating that an assertion that verifies that a value is greater than another one failed.Creates an error message indicating that an assertion that verifies that a value is greater than or equal to another one failed.Creates an error message indicating that an assertion that verifies that a value is in a group of values (e.g.Creates an error message indicating that an assertion that verifies that aDate
is in same year, month and day of month as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in same year, month, day of month and hour as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in same hour window as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in same year, month, day of month, hour and minute as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in minute window as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in same year and month as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in same year, month, day of month, hour, minute and second as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in second window as another one failed.Creates an error message indicating that an assertion that verifies that aDate
is in same year as another one failed.Creates an error message indicating that an assertion that verifies that an object is an instance of some type failed.Creates an error message indicating that an assertion that verifies that an object is an instance of one or more types failed.Creates an error message indicating that an assertion that verifies that a class is (or not) an interface.Creates an error message indicating that an assertion that verifies that aDate
is in the future failed.Creates an error message indicating that an assertion that verifies that aDate
is in the past failed.Creates an error message indicating that an assertion that verifies that a value is less than another one failed.Creates an error message indicating that an assertion that verifies that a value is less than or equal to another one failed.Creates an error message that indicates an assertion that verifies that a character is lowercase failed.Creates an error message that indicates an assertion that verifies that aCharSequence
is mixed case failed.Assertion error message delivered when aPath
is not normalizedCreates an error message indicating that an assertion that verifies a group of elements isnull
or empty failed.Creates an error message that indicates an assertion that verifies that a whole number is odd failed.Creates an error message indicating that an assertion that verifies that an object is of type in group of types failed.Creates an error message indicating that an assertion that verifies that aPath
is a regular file has failed.Creates an error message indicating that an assertion that verifies that two object refer to same object failed.Creates an error message indicating that an assertion that verifies a group of elements is sorted failed.
A group of elements can be a collection or an array.Creates an error message indicating that an assertion that verifies that anIterable
is a subset of an other setIterable
failed.Creates an error message indicating that an assertion that verifies that aPath
is a regular file has failed.Creates an error message indicating that an assertion that verifies that aDate
is today (matching only year, month and day but not hours).Creates an error message that indicates an assertion that verifies that a character is uppercase failed.Creates an error message indicating that an assertion that verifies that a
is writable failed.File
Creates an error message indicating that an assertion that verifies a group of elements contains a given set of values failed.Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index failed.Creates an error message indicating that an assertion that verifies that aCharSequence
contains anotherCharSequence
failed.Creates an error message indicating that an assertion that verifies that aCharSequence
contains anotherCharSequence
only once failed.Creates an error message indicating that an assertion that verifies a map contains an entry..Creates an error message indicating that an assertion that verifies a group of elements contains exactly a given set of values and nothing else failed, exactly meaning same elements in same order.Creates an error message indicating that an assertion that verifies a group of elements contains exactly a given set of values and nothing else failed.Creates an error message indicating that an assertion that verifies a map contains a key..Creates an error message indicating that an assertion that verifies a map contains a key..Creates an error message indicating that an assertion that verifies a group of elements contains a null element failed.Creates an error message indicating that an assertion that verifies that aCharSequence
contains one or more whitespaces.Creates an error message indicating that an assertion that verifies a group of elements contains only a given set of values and nothing else failed.Creates an error message indicating that an assertion that verifies a CharSequence contains only digits failed.Creates an error message indicating that an assertion that verifies map contains only a given set of keys and nothing else failed.Creates an error message indicating that an assertion that verifies a group of elements contains only null elements failed.Creates an error message indicating that an assertion that verifies aCharSequence
contains only whitespaces.Creates an error message indicating that an assertion that verifies that aCharSequence
contains a pattern failed.Creates an error message indicating that an assertion that verifies a group of elements contains recursively a given set of values failed.Creates an error message indicating that an assertion that verifies that a group of elements contains a sequence of values failed.Creates an error message indicating that an assertion that verifies that aCharSequence
contains a Sequence of severalCharSequence
s in order failed.Creates an error message indicating that an assertion that verifies a group of elements contains only a given set of values and nothing else failed.Creates an error message indicating that an assertion that verifies that a group of elements contains a subsequence of values failed.Creates an error message indicating that an assertion that verifies that aCharSequence
contains a Subsequence of severalCharSequence
s in order failed.Creates an error message indicating that an assertion that verifies a map contains a value.Creates an error message indicating that an assertion that verifies a map contains a values.Creates an error message indicating that an assertion that verifies that a group of elements ends with a given value or sequence of values failed.Creates an error message indicating that an assertion that verifies thatCharSequence
ends with a given value (ignoring case considerations) failed.Creates an error message indicating that an assertion that verifies that a value satisfies a
failed.Condition
Creates an
indicating that an assertion that verifies that an object has null fields failed.AssertionError
Creates an error message indicating that an assertion that verifies that a class has annotations failed.Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that satisfies a
failed.Condition
Creates an error message indicating that a group does not have an element of the given type.Creates an error message indicating that an assertion that verifies that a file/path has a given binary content failed.Creates an error message indicating that an assertion that verifies that aThrowable
have a cause exactly instance of a certain type.Creates an error message indicating that an assertion that verifies that aThrowable
have a cause instance of a certain type.Creates an error message indicating that an assertion that verifies that a file/path has a given text content failed.Creates an error message indicating that an assertion that verifies that aDate
has a year, month, day, ...Creates an error message indicating that an assertion that verifies that file/inputStream/path have digest failed.Creates an error message indicating that aFile
or aPath
should have extension.Creates an error message indicating that an assertion that verifies that a class have field.Creates an error message indicating that an assertion that verifies theFileSystem
for a given path does not match a given file system.Creates an error message indicating that an assertion that verifies that a value have certain number of lines failed.Creates an error message indicating that an assertion that verifies that aThrowable
have certain message failed.Creates an error message indicating that an assertion that verifies that aCharSequence
matches given regular expression.Creates an error message indicating that an assertion that verifies that aCharSequence
matches given regular expression.Creates an error message indicating that an assertion that verifies that a class have methods.Creates an error message indicating that aFile
should have name.Creates an error message indicating that an assertion that verifies that anIterator
has a next element failed.Creates an error message indicating that an assertion that verifies that anThrowable
has no cause failed.Creates an error message indicating that aPath
should have no extension.Creates an
indicating that an assertion that verifies that an object has no null fields failed.AssertionError
Creates an error message when aFile
should not have a parent.Creates an error message indicating that an assertion that verifies that a class has no superclass failed.Creates an error message indicating that an assertion that verifies that aThrowable
has no suppressed exceptions failed.Creates an error message indicating that a group does not have an element of the given type.Creates an error message indicating that aClass
should have a given package.Creates an error message indicating that aFile
should have a parent.Creates an error message indicating that an assertion that verifies that a class has a given field/property.Creates an error message indicating that an assertion that verifies that a class has a field/property with a value.Creates an error message indicating that an assertion that verifies that aThrowable
have a root cause exactly instance of a certain type.Creates an error message indicating that an assertion that verifies that aThrowable
have a root cause instance of a certain type.Creates an error message indicating that an assertion that verifies that an object have same class as another instance failed.Creates an error message indicating that an assertion that verifies that two files/inputStreams/paths have same content failed.Creates an error message indicating that an assertion that verifies theFileSystem
for a given path does not match a given path's file system.Creates an error message indicating that an assertion that verifies that twoZonedDateTime
have same year, month, day and hour fields failed.Creates an error message indicating that an assertion that verifies that a value have certain size failed.Creates an error message indicating that an assertion that verifies that a date has same time as other date.Creates an error message indicating that an assertion that verifies that a value have certain size failed.Creates an error message indicating that an assertion - that verifies that size of a value is between two given values - failed.Creates an error message indicating that an assertion that verifies a minimum size failed.Creates an error message indicating that an assertion that verifies a minimum size failed.Creates an error message indicating that an assertion that verifies a maximum size failed.Creates an error message indicating that an assertion that verifies a maximum size failed.Creates an error message indicating that an assertion that verifies that a class has a given superclass failed.Creates an error message indicating that an assertion that verifies that aThrowable
has a given suppressed exception failed.Creates an error message indicating that an assertion that verifies that a date have a certain timestamp.Creates an error message indicating that an assertion that verifies that a value satisfies a
failed.Predicate
Creates an error message indicating that an assertion that verifies that aCharSequence
matches a pattern failed.Creates an error message indicating that an assertion that verifies that
not accepting a value failed.Predicate
Creates an error message indicating that an assertion that verifies that a value does not satisfy a
failed.Condition
Creates an error message indicating that an assertion that verifies that aDate
is not between start - end dates (inclusive or not) failed.Creates an error message indicating that an assertion that verifiesCharSequence
is not blank.Creates an error message indicating that an assertion that verifies a group of elements is not empty failed.Creates an error message indicating that an assertion that verifies that two objects are not equal failed.Creates an error message indicating that an assertion that verifies that twoCharSequence
s are not equal, ignoring case considerations, failed.Creates an error message indicating that an assertion that verifies that twoCharSequence
s are not equal, ignoring whitespace differences, failed.Creates an error message indicating that an assertion that verifies that twoCharSequence
s are not equal, after the whitespace of both strings has been normalized, failed.Creates an error message indicating that an assertion that verifies that two numbers are not equal within a positive offset failed.Creates an error message indicating that an assertion that verifies that two numbers are not equal within a positive percentage failed.Creates an error message indicating that an assertion that verifies that an object is not exactly an instance of some type failed.Creates an error message indicating that an assertion that verifies that a value is not in a group of values (e.g.Creates an error message indicating that an assertion that verifies that an object is not an instance of some type failed.Creates an error message indicating that an assertion that verifies that an object is not an instance of one or more types failed.Creates an error message that indicates an assertion that verifies that an object is notnull
failed.Creates an error message indicating that an assertion that verifies that an object is not of type in group of types failed.Creates an error message indicating an assertion that verifies that two objects do not refer to the same object failed.Creates an error message indicating that an assertion that verifies a group of elements does not contain a given set of values failed.Creates an error message indicating that an assertion that verifies that aCharSequence
does not contain whitespace characters.Creates an error message indicating that an assertion that verifies a group of elements does not contain a value at a given index failed.Creates an error message indicating that an assertion that verifies that aCharSequence
does not contain anotherCharSequence
failed.Creates an error message indicating that an assertion that verifies a map does not contains a key failed.Creates an error message indicating that an assertion that verifies a map does not contain keys.Creates an error message indicating that an assertion that verifies a group of elements does not contain null elements failed.Creates an error message indicating that an assertion that verifiesCharSequence
is not blank.Creates an error message indicating that an assertion that verifies that aCharSequence
does not contain a regular expression failed.Creates an error message indicating that an assertion that verifies that a group of elements does not contain a sequence of values failed.Creates an error message indicating that an assertion that verifies that a group of elements does not contains a subsequence of values failed.Creates an error message indicating that an assertion that verifies a map does not contains a value.Creates an error message indicating that an assertion that verifies that a group of elements does not end with a given value or sequence of values failed.Creates an error message indicating that an assertion that verifies thatCharSequence
does not end with a given value (ignoring case considerations) failed.Creates an error message indicating that an assertion that verifies that a value does not satisfy a
failed.Condition
Creates an error message indicating that an assertion that verifies a group of elements is does not have duplicates failed.Creates an error message indicating that an assertion that verifies that an object has same class as another instance failed.Creates an error message indicating that an assertion that verifies that a value not satisfying a
failed.Predicate
Creates an error message indicating that an assertion that verifies that aCharSequence
does not match a pattern failed.Creates an error message indicating that an assertion that verifies that a group of elements does not start with a given value or sequence of values failed.Creates an error message indicating that an assertion that verifiesCharSequence
does not start with a given value (ignoring case considerations) failed.Creates an error message indicating that an assertion that verifies a group of elements contains elements that are not an instance of one of the given types.Creates an error message indicating that an assertion that verifies that a class has only the fields.Creates an error message indicating that an assertion that verifies that requirements are not satisfied only once.Creates an error message indicating that an assertion that verifies that a group of elements starts with a given value or sequence of values failed.Creates an error message indicating that an assertion that verifiesCharSequence
starts with a given value (ignoring case considerations) failed.Creates an error message indicating that an assertion that verifies that some subarray (in multidimensional arrays) has certain size failed.
AssertionErrorMessagesAggregator
instead