Package org.assertj.core.error
package org.assertj.core.error
-
ClassDescriptionBase class for text content error.Deprecated.Deprecated.use
AssertionErrorMessagesAggregatorinsteadAssertJ version ofMultipleFailuresErrorto 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 andConditionA group of elements can be a collection, an array.Access to constructors using Java reflection.Formats thes to be included in assertion errors.DescriptionCreates an error message indicating that an assertion that verifies that each element of a group satisfies aConditionA 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 aConditionA 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 aConditionA 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 aConditionA 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 aConditionA 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 aConditionA 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 aConditionA 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 aConditionA 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 aConditionA 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 aConditionA 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 anMatchershould match.Formats the messages to be included in assertion errors.Build error message when anOptionalDoubleshould have a specific value close to an offset.Build error message when anOptionalDoubleshould be close to an expected value within a positive percentage.Build error message when anOptionalshould be empty.Build error message when a value should be present in anOptional.Build error message when anOptional,OptionalDouble,OptionalIntorOptionalLongshould 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 thataccepts a value failed.PredicateCreates an error message indicating that an assertion that verifies that a value satisfies afailed.ConditionCreates an error message indicating that an assertion that verifies that aDateis after another one failed.Creates an error message indicating that an assertion that verifies that anObjectis after or equal to another one failed.Creates an error message indicating that an assertion that verifies that aDateis 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 afailed.ConditionCreates an error message indicating that an assertion that verifies that twoOffsetDateTimeshave 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 aObjectis before another one failed.Creates an error message indicating that an assertion that verifies that anObjectis before or equal to another one failed.Creates an error message indicating that an assertion that verifies that aDateis 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 aCharSequenceis blank.Creates an error message indicating that an assertion that verifies that aPathis canonical has failed.Creates an error message indicating that an assertion that verifies that aDateis close to another one from some delta failed.Creates an error message indicating that an assertion that verifies that aYearMonthis the current one (matching year and month).Creates an error message indicating that an assertion that verifies a group of elements is empty failed.Creates anindicating that an assertion that verifies that two objects are equal failed.AssertionErrorCreates anindicating that an assertion that verifies that two objects are lenient equal by accepting fields failed.AssertionErrorCreates an error message indicating that an assertion that verifies that twoCharSequences are equal, ignoring case considerations, failed.Creates an error message indicating that an assertion that verifies that twoZonedDateTimehave same year, month, and day fields failed.Creates an error message indicating that an assertion that verifies that twoZonedDateTimehave same year, month, day and hour fields failed.Creates an error message indicating that an assertion that verifies that : twoZonedDateTime,LocalDateTimehave same year, month, day, hour, minute and second failed. twoLocalTimehave same hour, minute and second failed. twoOffsetTimehave same hour, minute and second failed.Creates an error message indicating that an assertion that verifies that twoZonedDateTimehave same year, month, day, hour and minute failed.Creates an error message indicating that an assertion that verifies that twoOffsetTimehave same time fields except the timezone.Creates an error message indicating that an assertion that verifies that twoCharSequences are equal, ignoring whitespace differences, failed.Creates an error message indicating that an assertion that verifies that twoCharSequences are equal, after the punctuation of both strings have been normalized, failed.Creates an error message indicating that an assertion that verifies that twoCharSequences are equal, on their canonical form relying onNormalizer, failed.Creates an error message indicating that an assertion that verifies that twoCharSequences are equal, after the whitespace of both strings has been normalized, failed.Creates anindicating that an assertion that verifies that two objects are lenient equal by ignoring fields failed.AssertionErrorCreates 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 anindicating that an assertion that verifies that two dates are equals up to a given precision failed.AssertionErrorCreates 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 ais executable failed.FileCreates an error message indicating that an assertion that verifies that anIteratorhas no more elements failed.Creates an error message indicating that an assertion that verifies that ais an existing file failed.FileCreates 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 aDateis in same year, month and day of month as another one failed.Creates an error message indicating that an assertion that verifies that aDateis in same year, month, day of month and hour as another one failed.Creates an error message indicating that an assertion that verifies that aDateis in same hour window as another one failed.Creates an error message indicating that an assertion that verifies that aDateis 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 aDateis in minute window as another one failed.Creates an error message indicating that an assertion that verifies that aDateis in same year and month as another one failed.Creates an error message indicating that an assertion that verifies that aDateis 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 aDateis in second window as another one failed.Creates an error message indicating that an assertion that verifies that aDateis 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 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 aCharSequenceis mixed case failed.Assertion error message delivered when aPathis not normalizedCreates an error message indicating that an assertion that verifies a group of elements isnullor empty failed.Creates an error message that indicates an assertion that cast string to a number (byte, short, integer, long, float or double) 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 a class is (or not) a primitive data type, i.e, byte, short, int, long, float, double, char and boolean.Creates an error message indicating that an assertion that verifies that a class is (or not) a record.Creates an error message indicating that an assertion that verifies that aPathis 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 that a class is (or not) sealed.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 anIterableis a subset of an other setIterablefailed.Creates an error message indicating that an assertion that verifies that aPathis a regular file has failed.Creates an error message indicating that an assertion that verifies that aDateis 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 ais writable failed.FileCreates 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 aCharSequencecontains anotherCharSequencefailed.Creates an error message indicating that an assertion that verifies that aCharSequencecontains anotherCharSequenceonly 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 aCharSequencecontains 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 aCharSequencecontains only whitespaces.Creates an error message indicating that an assertion that verifies that aCharSequencecontains 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 aCharSequencecontains a Sequence of severalCharSequences 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 aCharSequencecontains a Subsequence of severalCharSequences 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 thatCharSequenceends with a given value (ignoring case considerations) failed.Creates an error message indicating that an assertion that verifies that a value satisfies afailed.ConditionCreates anindicating that an assertion that verifies that an object has null fields failed.AssertionErrorCreates 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 afailed.ConditionCreates 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 aThrowablehave a cause exactly instance of a certain type.Creates an error message indicating that an assertion that verifies that aThrowablehave 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 aDatehas 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 aFileor aPathshould 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 theFileSystemfor 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 aThrowablehave certain message failed.Creates an error message indicating that an assertion that verifies that aCharSequencematches given regular expression.Creates an error message indicating that an assertion that verifies that aCharSequencematches given regular expression.Creates an error message indicating that an assertion that verifies that a class have methods.Creates an error message indicating that aFileshould have name.Creates an error message indicating that an assertion that verifies that anIteratorhas a next element failed.Creates an error message indicating that an assertion that verifies that anThrowablehas no cause failed.Creates an error message indicating that aPathshould have no extension.Creates anindicating that an assertion that verifies that an object has no null fields failed.AssertionErrorCreates an error message indicating that an assertion that verifies that a class has no package failed.Creates an error message when aFileshould 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 aThrowablehas 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 aClassshould have a given package.Creates an error message indicating that aFileshould 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 a class has record components failed.Creates an error message indicating that an assertion that verifies that aThrowablehave a root cause exactly instance of a certain type.Creates an error message indicating that an assertion that verifies that aThrowablehave 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 theFileSystemfor a given path does not match a given path's file system.Creates an error message indicating that an assertion that verifies that twoZonedDateTimehave 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 aThrowablehas 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 afailed.PredicateCreates an error message indicating that an assertion that verifies that aCharSequencematches a pattern failed.Creates an error message indicating that an assertion that verifies thatnot accepting a value failed.PredicateCreates an error message indicating that an assertion that verifies that a value does not satisfy afailed.ConditionCreates an error message indicating that an assertion that verifies that aDateis not between start - end dates (inclusive or not) failed.Creates an error message indicating that an assertion that verifiesCharSequenceis 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 twoCharSequences are not equal, ignoring case considerations, failed.Creates an error message indicating that an assertion that verifies that twoCharSequences are not equal, ignoring whitespace differences, failed.Creates an error message indicating that an assertion that verifies that twoCharSequences 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 notnullfailed.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 that an assertion that verifies that a class is (or not) a primitive data type, i.e, byte, short, int, long, float, double, char and boolean.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 aCharSequencedoes 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 aCharSequencedoes not contain anotherCharSequencefailed.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 verifiesCharSequenceis not blank.Creates an error message indicating that an assertion that verifies that aCharSequencedoes 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 thatCharSequencedoes not end with a given value (ignoring case considerations) failed.Creates an error message indicating that an assertion that verifies that aCharSequencedoes not end with whitespace characters.Creates an error message indicating that an assertion that verifies that a value does not satisfy afailed.ConditionCreates 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 afailed.PredicateCreates an error message indicating that an assertion that verifies that aCharSequencedoes 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 verifiesCharSequencedoes not start with a given value (ignoring case considerations) failed.Creates an error message indicating that an assertion that verifies that aCharSequencedoes not start with whitespace characters.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 verifiesCharSequencestarts 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.
AssertionErrorCreatorinstead.