Uses of Interface
org.assertj.core.error.ErrorMessageFactory
-
Packages that use ErrorMessageFactory Package Description org.assertj.core.api org.assertj.core.error org.assertj.core.error.future org.assertj.core.error.uri org.assertj.core.internal -
-
Uses of ErrorMessageFactory in org.assertj.core.api
Methods in org.assertj.core.api with parameters of type ErrorMessageFactory Modifier and Type Method Description protected voidAbstractAssert. throwAssertionError(ErrorMessageFactory errorMessageFactory)Utility method to throw anAssertionErrorgiven aBasicErrorMessageFactory. -
Uses of ErrorMessageFactory in org.assertj.core.error
Classes in org.assertj.core.error that implement ErrorMessageFactory Modifier and Type Class Description classAbstractShouldHaveTextContentBase class for text content error.classBasicErrorMessageFactoryA factory of error messages typically shown when an assertion fails.classClassModifierShouldBeCreates an error message indicating that an assertion that verifies that a class is (or is not) final.classConditionAndGroupGenericParameterTypeShouldBeTheSameCreates an error message indicating that an assertion that verifies type of elements of group andConditionA group of elements can be a collection, an array.classElementsShouldBeCreates 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.classElementsShouldBeAtLeastCreates 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.classElementsShouldBeAtMostCreates 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.classElementsShouldBeExactlyCreates 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.classElementsShouldHaveCreates 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.classElementsShouldHaveAtLeastCreates 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.classElementsShouldHaveAtMostCreates 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.classElementsShouldHaveExactlyCreates 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.classElementsShouldMatchclassElementsShouldNotBeCreates 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.classElementsShouldNotHaveCreates 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.classElementsShouldSatisfyclassNoElementsShouldMatchclassOptionalDoubleShouldHaveValueCloseToBuild error message when anOptionalDoubleshould have a specific value close to an offset.classOptionalShouldBeEmptyBuild error message when anOptionalshould be empty.classOptionalShouldBePresentBuild error message when a value should be present in anOptional.classOptionalShouldContainBuild error message when anOptional,OptionalDouble,OptionalIntorOptionalLongshould contain a specific value.classOptionalShouldContainInstanceOfBuild an error message when a value should be instance of a specific class.classShouldAcceptCreates an error message indicating that an assertion that verifies thataccepts a value failed.PredicateclassShouldBeCreates an error message indicating that an assertion that verifies that a value satisfies afailed.ConditionclassShouldBeAbsolutePathclassShouldBeAfterCreates an error message indicating that an assertion that verifies that aDateis after another one failed.classShouldBeAfterOrEqualsToCreates an error message indicating that an assertion that verifies that aDateis after or equals to another one failed.classShouldBeAfterYearCreates an error message indicating that an assertion that verifies that aDateis after given year failed.classShouldBeAnArrayCreates an error message indicating that a group of elements should have been an array.classShouldBeAnnotationCreates an error message indicating that an assertion that verifies that a class is (or not) an annotation.classShouldBeAssignableFromCreates an error message indicating that an assertion that verifies that a class is assignable from.classShouldBeAtIndexCreates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that satisfies afailed.ConditionclassShouldBeBeforeCreates an error message indicating that an assertion that verifies that aObjectis before another one failed.classShouldBeBeforeOrEqualsToCreates an error message indicating that an assertion that verifies that aObjectis before or equals to another one failed.classShouldBeBeforeYearCreates an error message indicating that an assertion that verifies that aDateis before given year failed.classShouldBeBetweenCreates an error message indicating that an assertion that verifies that aDateis between start - end dates (inclusive or not) failed.classShouldBeBlankCreates an error message indicating that an assertion that verifiesCharSequenceisNull, empty or contains only whitespace.classShouldBeCanonicalPathCreates an error message indicating that an assertion that verifies that aPathis canonical has failed.classShouldBeCloseToCreates an error message indicating that an assertion that verifies that aDateis close to another one from some delta failed.classShouldBeDirectoryclassShouldBeEmptyCreates an error message indicating that an assertion that verifies a group of elements is empty failed.classShouldBeEqualByComparingFieldByFieldRecursivelyclassShouldBeEqualByComparingOnlyGivenFieldsCreates anindicating that an assertion that verifies that two objects are lenient equal by accepting fields failed.AssertionErrorclassShouldBeEqualIgnoringCaseCreates an error message indicating that an assertion that verifies that twoCharSequences are equal, ignoring case considerations, failed.classShouldBeEqualIgnoringHoursCreates an error message indicating that an assertion that verifies that twoZonedDateTimehave same year, month, and day fields failed.classShouldBeEqualIgnoringMinutesCreates an error message indicating that an assertion that verifies that twoZonedDateTimehave same year, month, day and hour fields failed.classShouldBeEqualIgnoringNanosCreates 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.classShouldBeEqualIgnoringNewLineDifferencesclassShouldBeEqualIgnoringSecondsCreates an error message indicating that an assertion that verifies that twoZonedDateTimehave same year, month, day, hour and minute failed.classShouldBeEqualIgnoringTimezoneCreates an error message indicating that an assertion that verifies that twoOffsetTimehave same time fields except the timezone.classShouldBeEqualIgnoringWhitespaceCreates an error message indicating that an assertion that verifies that twoCharSequences are equal, ignoring whitespace differences, failed.classShouldBeEqualNormalizingWhitespaceCreates an error message indicating that an assertion that verifies that twoCharSequences are equal, after the whitespace of both strings has been normalized, failed.classShouldBeEqualToIgnoringFieldsCreates anindicating that an assertion that verifies that two objects are lenient equal by ignoring fields failed.AssertionErrorclassShouldBeEqualWithinOffsetCreates an error message indicating that an assertion that verifies that two numbers are equal within a positive offset failed.classShouldBeEqualWithinPercentageCreates an error message indicating that an assertion that verifies that two numbers are equal within a positive percentage failed.classShouldBeEqualWithTimePrecisionCreates anindicating that an assertion that verifies that two dates are equals up to a given precision failed.AssertionErrorclassShouldBeExactlyInstanceOfCreates an error message indicating that an assertion that verifies that an object is exactly an instance of some type failed.classShouldBeExecutableCreates an error message indicating that an assertion that verifies that ais executable failed.FileclassShouldBeFileCreates an error message indicating that an assertion that verifies that ais an existing file failed.FileclassShouldBeGreaterCreates an error message indicating that an assertion that verifies that a value is greater than another one failed.classShouldBeGreaterOrEqualCreates an error message indicating that an assertion that verifies that a value is greater than or equal to another one failed.classShouldBeInCreates an error message indicating that an assertion that verifies that a value is in a group of values (e.g.classShouldBeInSameDayCreates an error message indicating that an assertion that verifies that aDateis in same year, month and day of month as another one failed.classShouldBeInSameHourCreates an error message indicating that an assertion that verifies that aDateis in same year, month, day of month and hour as another one failed.classShouldBeInSameHourWindowCreates an error message indicating that an assertion that verifies that aDateis in same hour window as another one failed.classShouldBeInSameMinuteCreates 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.classShouldBeInSameMinuteWindowCreates an error message indicating that an assertion that verifies that aDateis in minute window as another one failed.classShouldBeInSameMonthCreates an error message indicating that an assertion that verifies that aDateis in same year and month as another one failed.classShouldBeInSameSecondCreates 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.classShouldBeInSameSecondWindowCreates an error message indicating that an assertion that verifies that aDateis in second window as another one failed.classShouldBeInSameYearCreates an error message indicating that an assertion that verifies that aDateis in same year as another one failed.classShouldBeInstanceCreates an error message indicating that an assertion that verifies that an object is an instance of some type failed.classShouldBeInstanceOfAnyCreates an error message indicating that an assertion that verifies that an object is an instance of one or more types failed.classShouldBeInterfaceCreates an error message indicating that an assertion that verifies that a class is (or not) an interface.classShouldBeInTheFutureCreates an error message indicating that an assertion that verifies that aDateis in the future failed.classShouldBeInThePastCreates an error message indicating that an assertion that verifies that aDateis in the past failed.classShouldBeLessCreates an error message indicating that an assertion that verifies that a value is less than another one failed.classShouldBeLessOrEqualCreates an error message indicating that an assertion that verifies that a value is less than or equal to another one failed.classShouldBeLowerCaseCreates an error message that indicates an assertion that verifies that a character is lowercase failed.classShouldBeMarkedclassShouldBeNormalizedAssertion error message delivered when aPathis not normalizedclassShouldBeNullOrEmptyCreates an error message indicating that an assertion that verifies a group of elements isnullor empty failed.classShouldBeOfClassInCreates an error message indicating that an assertion that verifies that an object is of type in group of types failed.classShouldBeReadableclassShouldBeRegularFileCreates an error message indicating that an assertion that verifies that aPathis a regular file has failed.classShouldBeRelativePathclassShouldBeSameCreates an error message indicating that an assertion that verifies that two object refer to same object failed.classShouldBeSortedCreates 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.classShouldBeSubsetOfCreates an error message indicating that an assertion that verifies that anIterableis a subset of an other setIterablefailed.classShouldBeSubstringclassShouldBeSymbolicLinkCreates an error message indicating that an assertion that verifies that aPathis a regular file has failed.classShouldBeTodayCreates an error message indicating that an assertion that verifies that aDateis today (matching only year, month and day but not hours).classShouldBeUpperCaseCreates an error message that indicates an assertion that verifies that a character is uppercase failed.classShouldBeWritableCreates an error message indicating that an assertion that verifies that ais writable failed.FileclassShouldContainCreates an error message indicating that an assertion that verifies a group of elements contains a given set of values failed.classShouldContainAnyOfclassShouldContainAtIndexCreates an error message indicating that an assertion that verifies a group of elements contains a value at a given index failed.classShouldContainCharSequenceCreates an error message indicating that an assertion that verifies that aCharSequencecontains anotherCharSequencefailed.classShouldContainCharSequenceOnlyOnceCreates an error message indicating that an assertion that verifies that aCharSequencecontains anotherCharSequenceonly once failed.classShouldContainCharSequenceSequenceCreates an error message indicating that an assertion that verifies that aCharSequencecontains a sequence of severalCharSequences in order failed.classShouldContainEntryCreates an error message indicating that an assertion that verifies a map contains an entry..classShouldContainExactlyCreates 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.classShouldContainExactlyInAnyOrderCreates an error message indicating that an assertion that verifies a group of elements contains exactly a given set of values and nothing else failed.classShouldContainKeyCreates an error message indicating that an assertion that verifies a map contains a key..classShouldContainKeysCreates an error message indicating that an assertion that verifies a map contains a key..classShouldContainNullCreates an error message indicating that an assertion that verifies a group of elements contains a null element failed.classShouldContainOnlyCreates an error message indicating that an assertion that verifies a group of elements contains only a given set of values and nothing else failed.classShouldContainOnlyDigitsCreates an error message indicating that an assertion that verifies a CharSequence contains only digits failed.classShouldContainOnlyKeysCreates an error message indicating that an assertion that verifies map contains only a given set of keys and nothing else failed.classShouldContainPatternCreates an error message indicating that an assertion that verifies that aCharSequencecontains a pattern failed.classShouldContainSequenceCreates an error message indicating that an assertion that verifies that a group of elements contains a sequence of values failed.classShouldContainsOnlyOnceCreates an error message indicating that an assertion that verifies a group of elements contains only a given set of values and nothing else failed.classShouldContainSubsequenceCreates an error message indicating that an assertion that verifies that a group of elements contains a subsequence of values failed.classShouldContainValueCreates an error message indicating that an assertion that verifies a map contains a value.classShouldContainValuesCreates an error message indicating that an assertion that verifies a map contains a values.classShouldEndWithCreates an error message indicating that an assertion that verifies that a group of elements ends with a given value or sequence of values failed.classShouldEndWithPathclassShouldExistclassShouldHaveCreates an error message indicating that an assertion that verifies that a value satisfies afailed.ConditionclassShouldHaveAnnotationsCreates an error message indicating that an assertion that verifies that a class have an annotation.classShouldHaveAtIndexCreates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that satisfies afailed.ConditionclassShouldHaveAtLeastOneElementOfTypeCreates an error message indicating that a group does not have an element of the given type.classShouldHaveBinaryContentCreates an error message indicating that an assertion that verifies that a file/path has a given binary content failed.classShouldHaveCauseclassShouldHaveCauseExactlyInstanceCreates an error message indicating that an assertion that verifies that aThrowablehave a cause exactly instance of a certain type.classShouldHaveCauseInstanceCreates an error message indicating that an assertion that verifies that aThrowablehave a cause instance of a certain type.classShouldHaveContentCreates an error message indicating that an assertion that verifies that a file/path has a given text content failed.classShouldHaveDateFieldCreates an error message indicating that an assertion that verifies that aDatehas a year, month, day, ...classShouldHaveExtensionCreates an error message indicating that aFileshould have extension.classShouldHaveFieldsCreates an error message indicating that an assertion that verifies that a class have field.classShouldHaveLineCountCreates an error message indicating that an assertion that verifies that a value have certain number of lines failed.classShouldHaveMessageCreates an error message indicating that an assertion that verifies that aThrowablehave certain message failed.classShouldHaveMessageMatchingRegexCreates an error message indicating that an assertion that verifies that aCharSequencematches given regular expression.classShouldHaveMethodsCreates an error message indicating that an assertion that verifies that a class have methods.classShouldHaveNameCreates an error message indicating that aFileshould have name.classShouldHaveNoCauseCreates an error message indicating that an assertion that verifies that anThrowablehas no cause failed.classShouldHaveNoFieldsclassShouldHaveNoNullFieldsCreates anindicating that an assertion that verifies that an object has no null fields failed.AssertionErrorclassShouldHaveNoParentCreates an error message when aFileshould not have a parent.classShouldHaveNoSuppressedExceptionsCreates an error message indicating that an assertion that verifies that aThrowablehas no suppressed exceptions failed.classShouldHaveOnlyElementsOfTypeCreates an error message indicating that a group does not have an element of the given type.classShouldHaveParentCreates an error message indicating that aFileshould have a parent.classShouldHavePropertyOrFieldCreates an error message indicating that an assertion that verifies that a class has a given field/property.classShouldHavePropertyOrFieldWithValueCreates an error message indicating that an assertion that verifies that a class has a field/property with a value.classShouldHaveReferenceclassShouldHaveRootCauseExactlyInstanceCreates an error message indicating that an assertion that verifies that aThrowablehave a root cause exactly instance of a certain type.classShouldHaveRootCauseInstanceCreates an error message indicating that an assertion that verifies that aThrowablehave a root cause instance of a certain type.classShouldHaveSameClassCreates an error message indicating that an assertion that verifies that an object have same class as another instance failed.classShouldHaveSameContentCreates an error message indicating that an assertion that verifies that two files/inputStreams/paths have same content failed.classShouldHaveSameHourAsCreates an error message indicating that an assertion that verifies that twoZonedDateTimehave same year, month, day and hour fields failed.classShouldHaveSameSizeAsCreates an error message indicating that an assertion that verifies that a value have certain size failed.classShouldHaveSameTimeCreates an error message indicating that an assertion that verifies that a date has same time as other date.classShouldHaveSizeCreates an error message indicating that an assertion that verifies that a value have certain size failed.classShouldHaveStampclassShouldHaveSuppressedExceptionCreates an error message indicating that an assertion that verifies that aThrowablehas a given suppressed exception failed.classShouldHaveTimeCreates an error message indicating that an assertion that verifies that a date have a certain timestamp.classShouldHaveToStringclassShouldHaveValueclassShouldMatchCreates an error message indicating that an assertion that verifies that a value satisfies afailed.PredicateclassShouldMatchPatternCreates an error message indicating that an assertion that verifies that aCharSequencematches a pattern failed.classShouldNotAcceptCreates an error message indicating that an assertion that verifies thatnot accepting a value failed.PredicateclassShouldNotBeCreates an error message indicating that an assertion that verifies that a value does not satisfy afailed.ConditionclassShouldNotBeBetweenCreates an error message indicating that an assertion that verifies that aDateis not between start - end dates (inclusive or not) failed.classShouldNotBeBlankCreates an error message indicating that an assertion that verifiesCharSequenceis notNull, not empty or contains not only whitespace.classShouldNotBeEmptyCreates an error message indicating that an assertion that verifies a group of elements is not empty failed.classShouldNotBeEqualCreates an error message indicating that an assertion that verifies that two objects are not equal failed.classShouldNotBeEqualIgnoringCaseCreates an error message indicating that an assertion that verifies that twoCharSequences are not equal, ignoring case considerations, failed.classShouldNotBeEqualIgnoringWhitespaceCreates an error message indicating that an assertion that verifies that twoCharSequences are not equal, ignoring whitespace differences, failed.classShouldNotBeEqualNormalizingWhitespaceCreates an error message indicating that an assertion that verifies that twoCharSequences are not equal, after the whitespace of both strings has been normalized, failed.classShouldNotBeEqualWithinOffsetCreates an error message indicating that an assertion that verifies that two numbers are not equal within a positive offset failed.classShouldNotBeEqualWithinPercentageCreates an error message indicating that an assertion that verifies that two numbers are not equal within a positive percentage failed.classShouldNotBeExactlyInstanceOfCreates an error message indicating that an assertion that verifies that an object is not exactly an instance of some type failed.classShouldNotBeInCreates an error message indicating that an assertion that verifies that a value is not in a group of values (e.g.classShouldNotBeInstanceCreates an error message indicating that an assertion that verifies that an object is not an instance of some type failed.classShouldNotBeInstanceOfAnyCreates an error message indicating that an assertion that verifies that an object is not an instance of one or more types failed.classShouldNotBeNullCreates an error message that indicates an assertion that verifies that an object is notnullfailed.classShouldNotBeOfClassInCreates an error message indicating that an assertion that verifies that an object is not of type in group of types failed.classShouldNotBeSameCreates an error message indicating an assertion that verifies that two objects do not refer to the same object failed.classShouldNotContainCreates an error message indicating that an assertion that verifies a group of elements does not contain a given set of values failed.classShouldNotContainAtIndexCreates an error message indicating that an assertion that verifies a group of elements does not contain a value at a given index failed.classShouldNotContainCharSequenceCreates an error message indicating that an assertion that verifies that aCharSequencedoes not contain anotherCharSequencefailed.classShouldNotContainKeyCreates an error message indicating that an assertion that verifies a map does not contains a key failed.classShouldNotContainKeysCreates an error message indicating that an assertion that verifies a map does not contain keys.classShouldNotContainNullCreates an error message indicating that an assertion that verifies a group of elements does not contain null elements failed.classShouldNotContainPatternCreates an error message indicating that an assertion that verifies that aCharSequencedoes not contain a regular expression failed.classShouldNotContainSequenceCreates an error message indicating that an assertion that verifies that a group of elements does not contain a sequence of values failed.classShouldNotContainSubsequenceCreates an error message indicating that an assertion that verifies that a group of elements does not contains a subsequence of values failed.classShouldNotContainValueCreates an error message indicating that an assertion that verifies a map does not contains a value.classShouldNotEndWithCreates 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.classShouldNotExistclassShouldNotHaveCreates an error message indicating that an assertion that verifies that a value does not satisfy afailed.ConditionclassShouldNotHaveDuplicatesCreates an error message indicating that an assertion that verifies a group of elements is does not have duplicates failed.classShouldNotHaveSameClassCreates an error message indicating that an assertion that verifies that an object has same class as another instance failed.classShouldNotHaveThrownclassShouldNotMatchCreates an error message indicating that an assertion that verifies that a value not satisfying afailed.PredicateclassShouldNotMatchPatternCreates an error message indicating that an assertion that verifies that aCharSequencedoes not match a pattern failed.classShouldNotStartWithCreates 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.classShouldOnlyHaveElementsOfTypesCreates 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.classShouldOnlyHaveFieldsCreates an error message indicating that an assertion that verifies that a class has only the fields.classShouldStartWithCreates an error message indicating that an assertion that verifies that a group of elements starts with a given value or sequence of values failed.classShouldStartWithPathMethods in org.assertj.core.error that return ErrorMessageFactory Modifier and Type Method Description static ErrorMessageFactoryShouldContainExactly. elementsDifferAtIndex(Object actualElement, Object expectedElement, int indexOfDifferentElements)Creates a newShouldContainExactlyfor the case where actual and expected have the same elements in different order.static ErrorMessageFactoryShouldContainExactly. elementsDifferAtIndex(Object actualElement, Object expectedElement, int indexOfDifferentElements, ComparisonStrategy comparisonStrategy)Creates a newShouldContainExactlyfor the case where actual and expected have the same elements in different order according to the givenComparisonStrategy.static ErrorMessageFactoryElementsShouldBe. elementsShouldBe(Object actual, Object notSatisfies, Condition<?> condition)Creates a newElementsShouldBe.static ErrorMessageFactoryElementsShouldBeAtLeast. elementsShouldBeAtLeast(Object actual, int times, Condition<?> condition)Creates a newElementsShouldBeAtLeast.static ErrorMessageFactoryElementsShouldBeAtMost. elementsShouldBeAtMost(Object actual, int times, Condition<?> condition)Creates a newElementsShouldBeAtMost.static ErrorMessageFactoryElementsShouldBeExactly. elementsShouldBeExactly(Object actual, int times, Condition<?> condition)Creates a newElementsShouldBeExactly.static ErrorMessageFactoryElementsShouldHave. elementsShouldHave(Object actual, Object notSatisfies, Condition<?> condition)Creates a newElementsShouldHave.static ErrorMessageFactoryElementsShouldHaveAtLeast. elementsShouldHaveAtLeast(Object actual, int times, Condition<?> condition)Creates a newElementsShouldHaveAtLeast.static ErrorMessageFactoryElementsShouldHaveAtMost. elementsShouldHaveAtMost(Object actual, int times, Condition<?> condition)Creates a newElementsShouldHaveAtMost.static <E> ErrorMessageFactoryElementsShouldHaveExactly. elementsShouldHaveExactly(Object actual, int times, Condition<?> condition)Creates a newElementsShouldHaveExactly.static <T> ErrorMessageFactoryElementsShouldMatch. elementsShouldMatch(Object actual, T elementsNotMatchingPredicate, PredicateDescription predicateDescription)static ErrorMessageFactoryElementsShouldNotBe. elementsShouldNotBe(Object actual, Object satisfies, Condition<?> condition)Creates a newElementsShouldNotBe.static ErrorMessageFactoryElementsShouldNotHave. elementsShouldNotHave(Object actual, Object notSatisfies, Condition<?> condition)Creates a newElementsShouldNotHave.static <T> ErrorMessageFactoryElementsShouldSatisfy. elementsShouldSatisfy(Object actual, T elementNotSatisfyingRestrictions, String assertionErrorDetails)static <T> ErrorMessageFactoryElementsShouldSatisfy. elementsShouldSatisfyAny(Object actual)static <T> ErrorMessageFactoryNoElementsShouldMatch. noElementsShouldMatch(Object actual, T elementMatchingPredicate, PredicateDescription predicateDescription)static <T> ErrorMessageFactoryShouldAccept. shouldAccept(Predicate<? super T> predicate, T value, PredicateDescription description)Creates a newShouldAccept.static <T> ErrorMessageFactoryShouldBe. shouldBe(T actual, Condition<? super T> condition)Creates a newShouldBe.static ErrorMessageFactoryShouldBeAbsolutePath. shouldBeAbsolutePath(File actual)Creates a new.ShouldBeAbsolutePathstatic ErrorMessageFactoryShouldBeAbsolutePath. shouldBeAbsolutePath(Path actual)static ErrorMessageFactoryShouldBeAfter. shouldBeAfter(Object actual, Object other)Creates a newShouldBeAfter.static ErrorMessageFactoryShouldBeAfter. shouldBeAfter(Object actual, Object other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeAfter.static ErrorMessageFactoryShouldBeAfter. shouldBeAfter(Date actual, int year)Creates a newShouldBeAfter.static ErrorMessageFactoryShouldBeAfterOrEqualsTo. shouldBeAfterOrEqualsTo(Object actual, Object other)Creates a newShouldBeAfterOrEqualsTo.static ErrorMessageFactoryShouldBeAfterOrEqualsTo. shouldBeAfterOrEqualsTo(Object actual, Object other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeAfterOrEqualsTo.static ErrorMessageFactoryShouldBeAfterYear. shouldBeAfterYear(Date actual, int year)Creates a newShouldBeAfterYear.static ErrorMessageFactoryShouldBeAfterYear. shouldBeAfterYear(Date actual, int year, ComparisonStrategy comparisonStrategy)Creates a newShouldBeAfterYear.static ErrorMessageFactoryShouldBeAnArray. shouldBeAnArray(Object object)Creates a new instance of.ShouldBeAnArraystatic ErrorMessageFactoryShouldBeAnnotation. shouldBeAnnotation(Class<?> actual)Creates a newShouldBeAnnotation.static ErrorMessageFactoryShouldBeAssignableFrom. shouldBeAssignableFrom(Class<?> actual, Set<Class<?>> expectedAssignableFrom, Set<Class<?>> missingAssignableFrom)Creates a newShouldBeAssignableFrom.static <T> ErrorMessageFactoryShouldBeAtIndex. shouldBeAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)Creates a newShouldBeAtIndex.static ErrorMessageFactoryShouldBeBefore. shouldBeBefore(Object actual, Object other)Creates a newShouldBeBefore.static ErrorMessageFactoryShouldBeBefore. shouldBeBefore(Object actual, Object other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeBefore.static ErrorMessageFactoryShouldBeBeforeOrEqualsTo. shouldBeBeforeOrEqualsTo(Object actual, Object other)Creates a newShouldBeBeforeOrEqualsTo.static ErrorMessageFactoryShouldBeBeforeOrEqualsTo. shouldBeBeforeOrEqualsTo(Object actual, Object other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeBeforeOrEqualsTo.static ErrorMessageFactoryShouldBeBeforeYear. shouldBeBeforeYear(Date actual, int year)Creates a newShouldBeBeforeYear.static ErrorMessageFactoryShouldBeBeforeYear. shouldBeBeforeYear(Date actual, int year, ComparisonStrategy comparisonStrategy)Creates a newShouldBeBeforeYear.static ErrorMessageFactoryShouldBeBetween. shouldBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd)Creates a newShouldBeBetween.static ErrorMessageFactoryShouldBeBetween. shouldBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)Creates a newShouldBeBetween.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeBetween. shouldBeBetween(T actual, T start, T end, boolean inclusiveStart, boolean inclusiveEnd)Creates a newShouldBeBetween.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeBetween. shouldBeBetween(T actual, T start, T end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)Creates a newShouldBeBetween.static ErrorMessageFactoryShouldBeBlank. shouldBeBlank(CharSequence actual)Creates a new.ShouldBeBlankstatic ErrorMessageFactoryShouldBeCanonicalPath. shouldBeCanonicalPath(Path actual)static ErrorMessageFactoryShouldBeCloseTo. shouldBeCloseTo(Temporal actual, Temporal other, String differenceDescription)Creates a newShouldBeCloseTo.static ErrorMessageFactoryShouldBeCloseTo. shouldBeCloseTo(Date actual, Date other, long deltaInMilliseconds, long difference)Creates a newShouldBeCloseTo.static ErrorMessageFactoryShouldBeDirectory. shouldBeDirectory(File actual)static ErrorMessageFactoryShouldBeDirectory. shouldBeDirectory(Path actual)static ErrorMessageFactoryShouldBeEmpty. shouldBeEmpty(Object actual)Creates a new.ShouldBeEmptystatic ErrorMessageFactoryShouldBeEqualIgnoringCase. shouldBeEqual(CharSequence actual, CharSequence expected)Creates a new.ShouldBeEqualIgnoringCasestatic <T extends Number>
ErrorMessageFactoryShouldBeEqualWithinOffset. shouldBeEqual(T actual, T expected, Offset<T> offset, T difference)Creates a new.ShouldBeEqualWithinOffsetstatic ErrorMessageFactoryShouldBeEqualWithTimePrecision. shouldBeEqual(Date actual, Date expected, TimeUnit precision)Creates a new.ShouldBeEqualWithTimePrecisionstatic ErrorMessageFactoryShouldBeEqualByComparingFieldByFieldRecursively. shouldBeEqualByComparingFieldByFieldRecursive(Object actual, Object other, List<DeepDifference.Difference> differences, Representation representation)static ErrorMessageFactoryShouldBeEqualByComparingOnlyGivenFields. shouldBeEqualComparingOnlyGivenFields(Object actual, List<String> rejectedFields, List<Object> rejectedValues, List<Object> expectedValues, List<String> acceptedFields)Creates a newShouldBeEqualByComparingOnlyGivenFields.static ErrorMessageFactoryShouldBeEqualIgnoringHours. shouldBeEqualIgnoringHours(Object actual, Object other)Creates a new.ShouldBeEqualIgnoringHoursstatic ErrorMessageFactoryShouldBeEqualIgnoringMinutes. shouldBeEqualIgnoringMinutes(Object actual, Object other)Creates a new.ShouldBeEqualIgnoringMinutesstatic ErrorMessageFactoryShouldBeEqualIgnoringMinutes. shouldBeEqualIgnoringMinutes(LocalTime actual, LocalTime other)Creates a new.ShouldBeEqualIgnoringSecondsstatic ErrorMessageFactoryShouldBeEqualIgnoringMinutes. shouldBeEqualIgnoringMinutes(OffsetTime actual, OffsetTime other)Creates a new.ShouldBeEqualIgnoringSecondsstatic ErrorMessageFactoryShouldBeEqualIgnoringNanos. shouldBeEqualIgnoringNanos(Object actual, Object other)Creates a new.ShouldBeEqualIgnoringNanosstatic ErrorMessageFactoryShouldBeEqualIgnoringNanos. shouldBeEqualIgnoringNanos(LocalTime actual, LocalTime other)Creates a new.ShouldBeEqualIgnoringNanosstatic ErrorMessageFactoryShouldBeEqualIgnoringNanos. shouldBeEqualIgnoringNanos(OffsetTime actual, OffsetTime other)Creates a new.ShouldBeEqualIgnoringNanosstatic ErrorMessageFactoryShouldBeEqualIgnoringNewLineDifferences. shouldBeEqualIgnoringNewLineDifferences(CharSequence actual, CharSequence expected)static ErrorMessageFactoryShouldBeEqualIgnoringSeconds. shouldBeEqualIgnoringSeconds(Object actual, Object other)Creates a new.ShouldBeEqualIgnoringSecondsstatic ErrorMessageFactoryShouldBeEqualIgnoringSeconds. shouldBeEqualIgnoringSeconds(LocalTime actual, LocalTime other)Creates a new.ShouldBeEqualIgnoringSecondsstatic ErrorMessageFactoryShouldBeEqualIgnoringSeconds. shouldBeEqualIgnoringSeconds(OffsetTime actual, OffsetTime other)Creates a new.ShouldBeEqualIgnoringSecondsstatic ErrorMessageFactoryShouldBeEqualIgnoringTimezone. shouldBeEqualIgnoringTimezone(OffsetDateTime actual, OffsetDateTime other)Creates a new.ShouldBeEqualIgnoringTimezonestatic ErrorMessageFactoryShouldBeEqualIgnoringTimezone. shouldBeEqualIgnoringTimezone(OffsetTime actual, OffsetTime other)Creates a new.ShouldBeEqualIgnoringTimezonestatic ErrorMessageFactoryShouldBeEqualIgnoringWhitespace. shouldBeEqualIgnoringWhitespace(CharSequence actual, CharSequence expected)Creates a new.ShouldBeEqualIgnoringWhitespacestatic ErrorMessageFactoryShouldBeEqualNormalizingWhitespace. shouldBeEqualNormalizingWhitespace(CharSequence actual, CharSequence expected)Creates a new.ShouldBeEqualNormalizingWhitespacestatic ErrorMessageFactoryShouldBeEqualToIgnoringFields. shouldBeEqualToIgnoringGivenFields(Object actual, List<String> rejectedFields, List<Object> rejectedValues, List<Object> expectedValues, List<String> ignoredFields)Creates a newShouldBeEqualToIgnoringFields.static <T extends Number>
ErrorMessageFactoryShouldBeEqualWithinPercentage. shouldBeEqualWithinPercentage(T actual, T expected, Percentage percentage, T difference)Creates a new.ShouldBeEqualWithinPercentagestatic ErrorMessageFactoryShouldBeExactlyInstanceOf. shouldBeExactlyInstance(Object actual, Class<?> type)Creates a newShouldBeExactlyInstanceOf.static ErrorMessageFactoryShouldBeExecutable. shouldBeExecutable(File actual)Creates a new.ShouldBeExecutablestatic ErrorMessageFactoryShouldBeExecutable. shouldBeExecutable(Path actual)static ErrorMessageFactoryShouldBeFile. shouldBeFile(File actual)Creates a new.ShouldBeFilestatic ErrorMessageFactoryClassModifierShouldBe. shouldBeFinal(Class<?> actual)Creates a newClassModifierShouldBe.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeGreater. shouldBeGreater(T actual, T other)Creates a newShouldBeGreater.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeGreater. shouldBeGreater(T actual, T other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeGreater.static <T extends Comparable<T>>
ErrorMessageFactoryShouldBeGreaterOrEqual. shouldBeGreaterOrEqual(T actual, T other)Creates a newShouldBeGreaterOrEqual.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeGreaterOrEqual. shouldBeGreaterOrEqual(T actual, T other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeGreaterOrEqual.static ErrorMessageFactoryShouldBeIn. shouldBeIn(Object actual, Object values)Creates a new.ShouldBeInstatic ErrorMessageFactoryShouldBeIn. shouldBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy)Creates a new.ShouldBeInstatic ErrorMessageFactoryShouldBeInSameDay. shouldBeInSameDay(Date actual, Date other)Creates a newShouldBeInSameDay.static ErrorMessageFactoryShouldBeInSameHour. shouldBeInSameHour(Date actual, Date other)Creates a newShouldBeInSameHour.static ErrorMessageFactoryShouldBeInSameHourWindow. shouldBeInSameHourWindow(Date actual, Date other)Creates a newShouldBeInSameHourWindow.static ErrorMessageFactoryShouldBeInSameMinute. shouldBeInSameMinute(Date actual, Date other)Creates a newShouldBeInSameMinute.static ErrorMessageFactoryShouldBeInSameMinuteWindow. shouldBeInSameMinuteWindow(Date actual, Date other)Creates a newShouldBeInSameMinuteWindow.static ErrorMessageFactoryShouldBeInSameMonth. shouldBeInSameMonth(Date actual, Date other)Creates a newShouldBeInSameMonth.static ErrorMessageFactoryShouldBeInSameSecond. shouldBeInSameSecond(Date actual, Date other)Creates a newShouldBeInSameSecond.static ErrorMessageFactoryShouldBeInSameSecondWindow. shouldBeInSameSecondWindow(Date actual, Date other)static ErrorMessageFactoryShouldBeInSameYear. shouldBeInSameYear(Date actual, Date other)Creates a newShouldBeInSameYear.static ErrorMessageFactoryShouldBeInstance. shouldBeInstance(Object object, Class<?> type)Creates a newShouldBeInstance.static ErrorMessageFactoryShouldBeInstance. shouldBeInstanceButWasNull(String objectDescription, Class<?> type)Creates a newShouldBeInstancewhen object we want to check type is null.static ErrorMessageFactoryShouldBeInstanceOfAny. shouldBeInstanceOfAny(Object actual, Class<?>[] types)Creates a newShouldBeInstanceOfAny.static ErrorMessageFactoryShouldBeInterface. shouldBeInterface(Class<?> actual)Creates a newShouldBeInterface.static ErrorMessageFactoryShouldBeInTheFuture. shouldBeInTheFuture(Date actual)Creates a newShouldBeInTheFuture.static ErrorMessageFactoryShouldBeInTheFuture. shouldBeInTheFuture(Date actual, ComparisonStrategy comparisonStrategy)Creates a newShouldBeInTheFuture.static ErrorMessageFactoryShouldBeInThePast. shouldBeInThePast(Date actual)Creates a newShouldBeInThePast.static ErrorMessageFactoryShouldBeInThePast. shouldBeInThePast(Date actual, ComparisonStrategy comparisonStrategy)Creates a newShouldBeInThePast.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeLess. shouldBeLess(T actual, T other)Creates a newShouldBeLess.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeLess. shouldBeLess(T actual, T other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeLess.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeLessOrEqual. shouldBeLessOrEqual(T actual, T other)Creates a newShouldBeLessOrEqual.static <T extends Comparable<? super T>>
ErrorMessageFactoryShouldBeLessOrEqual. shouldBeLessOrEqual(T actual, T other, ComparisonStrategy comparisonStrategy)Creates a newShouldBeLessOrEqual.static ErrorMessageFactoryShouldBeLowerCase. shouldBeLowerCase(Character actual)Creates a new.ShouldBeLowerCasestatic ErrorMessageFactoryShouldBeMarked. shouldBeMarked(AtomicMarkableReference<?> actual)static ErrorMessageFactoryShouldBeNormalized. shouldBeNormalized(Path actual)static ErrorMessageFactoryShouldBeNullOrEmpty. shouldBeNullOrEmpty(Object actual)Creates a new instance of.ShouldBeNullOrEmptystatic ErrorMessageFactoryShouldBeOfClassIn. shouldBeOfClassIn(Object actual, Object types)Creates a newShouldBeOfClassIn.static ErrorMessageFactoryClassModifierShouldBe. shouldBeProtected(Class<?> actual)Creates a newClassModifierShouldBe.static ErrorMessageFactoryClassModifierShouldBe. shouldBePublic(Class<?> actual)Creates a newClassModifierShouldBe.static ErrorMessageFactoryShouldBeReadable. shouldBeReadable(File actual)Creates a new.ShouldBeReadablestatic ErrorMessageFactoryShouldBeReadable. shouldBeReadable(Path actual)static ErrorMessageFactoryShouldBeRegularFile. shouldBeRegularFile(Path actual)static ErrorMessageFactoryShouldBeRelativePath. shouldBeRelativePath(File actual)Creates a new.ShouldBeRelativePathstatic ErrorMessageFactoryShouldBeRelativePath. shouldBeRelativePath(Path actual)static ErrorMessageFactoryShouldBeSame. shouldBeSame(Object actual, Object expected)Creates a new.ShouldBeSamestatic ErrorMessageFactoryConditionAndGroupGenericParameterTypeShouldBeTheSame. shouldBeSameGenericBetweenIterableAndCondition(Object actual, Condition<?> condition)Creates a newConditionAndGroupGenericParameterTypeShouldBeTheSamestatic ErrorMessageFactoryShouldBeSorted. shouldBeSorted(int i, Object group)Creates a new.ShouldBeSortedstatic ErrorMessageFactoryShouldBeSorted. shouldBeSortedAccordingToGivenComparator(int i, Object group, Comparator<?> comparator)static ErrorMessageFactoryShouldBeSubsetOf. shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected)Creates a new.ShouldBeSubsetOfstatic ErrorMessageFactoryShouldBeSubsetOf. shouldBeSubsetOf(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy)Creates a newShouldBeSubsetOfstatic ErrorMessageFactoryShouldBeSubstring. shouldBeSubstring(CharSequence actual, CharSequence expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldBeSubstringstatic ErrorMessageFactoryShouldBeSymbolicLink. shouldBeSymbolicLink(Path actual)static ErrorMessageFactoryShouldBeToday. shouldBeToday(LocalDate actual)Creates a newShouldBeToday.static ErrorMessageFactoryShouldBeToday. shouldBeToday(Date actual)Creates a newShouldBeToday.static ErrorMessageFactoryShouldBeToday. shouldBeToday(Date actual, ComparisonStrategy comparisonStrategy)Creates a newShouldBeToday.static ErrorMessageFactoryShouldBeUpperCase. shouldBeUpperCase(Character actual)Creates a new.ShouldBeUpperCasestatic ErrorMessageFactoryShouldBeWritable. shouldBeWritable(File actual)Creates a new.ShouldBeWritablestatic ErrorMessageFactoryShouldBeWritable. shouldBeWritable(Path actual)static ErrorMessageFactoryShouldContain. shouldContain(Object actual, Object expected, Object notFound)Creates a newShouldContain.static ErrorMessageFactoryShouldContain. shouldContain(Object actual, Object expected, Object notFound, ComparisonStrategy comparisonStrategy)Creates a newShouldContain.static ErrorMessageFactoryShouldContainCharSequence. shouldContain(CharSequence actual, CharSequence sequence)Creates a new.ShouldContainCharSequencestatic ErrorMessageFactoryShouldContainCharSequence. shouldContain(CharSequence actual, CharSequence[] strings, Set<? extends CharSequence> notFound)Creates a new.ShouldContainCharSequencestatic ErrorMessageFactoryShouldContainCharSequence. shouldContain(CharSequence actual, CharSequence[] strings, Set<? extends CharSequence> notFound, ComparisonStrategy comparisonStrategy)Creates a new.ShouldContainCharSequencestatic ErrorMessageFactoryShouldContainCharSequence. shouldContain(CharSequence actual, CharSequence sequence, ComparisonStrategy comparisonStrategy)Creates a new.ShouldContainCharSequencestatic ErrorMessageFactoryShouldContainAnyOf. shouldContainAnyOf(Object actual, Object expected)static ErrorMessageFactoryShouldContainAnyOf. shouldContainAnyOf(Object actual, Object expected, ComparisonStrategy comparisonStrategy)static ErrorMessageFactoryShouldContainAtIndex. shouldContainAtIndex(Object actual, Object expected, Index index, Object found)Creates a newShouldContainAtIndex.static ErrorMessageFactoryShouldContainAtIndex. shouldContainAtIndex(Object actual, Object expected, Index index, Object found, ComparisonStrategy comparisonStrategy)Creates a newShouldContainAtIndex.static <K,V>
ErrorMessageFactoryShouldContainEntry. shouldContainEntry(Map<K,V> actual, Condition<?> entryCondition)Creates a newShouldContainEntry.static <K,V>
ErrorMessageFactoryShouldContainEntry. shouldContainEntry(Map<K,V> actual, Condition<? super K> keyCondition, Condition<? super V> valueCondition)Creates a newShouldContainEntry.static ErrorMessageFactoryShouldContainExactly. shouldContainExactly(Object actual, Object expected, Object notFound, Iterable<?> notExpected)Creates a newShouldContainExactly.static ErrorMessageFactoryShouldContainExactly. shouldContainExactly(Object actual, Object expected, Object notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)Creates a newShouldContainExactly.static ErrorMessageFactoryShouldContainExactly. shouldContainExactly(Object actual, Object expected, Object notFound, Object notExpected)Creates a newShouldContainExactly.static ErrorMessageFactoryShouldContainExactly. shouldContainExactly(Object actual, Object expected, Object notFound, Object notExpected, ComparisonStrategy comparisonStrategy)Creates a newShouldContainExactly.static ErrorMessageFactoryShouldContainExactlyInAnyOrder. shouldContainExactlyInAnyOrder(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)Creates a newShouldContainExactlyInAnyOrder.static ErrorMessageFactoryShouldContainCharSequence. shouldContainIgnoringCase(CharSequence actual, CharSequence sequence)Creates a new.ShouldContainCharSequencestatic ErrorMessageFactoryShouldContainKey. shouldContainKey(Object actual, Condition<?> keyCondition)Creates a newShouldContainKey.static <K> ErrorMessageFactoryShouldContainKeys. shouldContainKeys(Object actual, Set<K> keys)Creates a newShouldContainKeys.static ErrorMessageFactoryShouldContainNull. shouldContainNull(Object actual)Creates a newShouldContainNull.static ErrorMessageFactoryShouldContainOnly. shouldContainOnly(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected)Creates a newShouldContainOnly.static ErrorMessageFactoryShouldContainOnly. shouldContainOnly(Object actual, Object expected, Iterable<?> notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)Creates a newShouldContainOnly.static ErrorMessageFactoryShouldContainOnlyDigits. shouldContainOnlyDigits(CharSequence actual)Creates a newShouldContainOnlyDigits.static ErrorMessageFactoryShouldContainOnlyDigits. shouldContainOnlyDigits(CharSequence actual, char character, int index)Creates a newShouldContainOnlyDigits.static ErrorMessageFactoryShouldContainOnlyKeys. shouldContainOnlyKeys(Object actual, Object expected, Object notFound, Iterable<?> notExpected)Creates a newShouldContainOnlyKeys.static ErrorMessageFactoryShouldContainOnlyKeys. shouldContainOnlyKeys(Object actual, Object expected, Object notFound, Object notExpected)Creates a newShouldContainOnlyKeys.static ErrorMessageFactoryShouldContainCharSequenceOnlyOnce. shouldContainOnlyOnce(CharSequence actual, CharSequence sequence, int occurrences)Creates a new.ShouldContainCharSequenceOnlyOncestatic ErrorMessageFactoryShouldContainCharSequenceOnlyOnce. shouldContainOnlyOnce(CharSequence actual, CharSequence sequence, int occurrences, ComparisonStrategy comparisonStrategy)Creates a new.ShouldContainCharSequenceOnlyOncestatic ErrorMessageFactoryShouldContainPattern. shouldContainPattern(CharSequence actual, CharSequence pattern)Creates a new.ShouldContainPatternstatic ErrorMessageFactoryShouldContainCharSequenceSequence. shouldContainSequence(CharSequence actual, CharSequence[] strings, int firstBadOrderIndex)Creates a new.ShouldContainCharSequenceSequencestatic ErrorMessageFactoryShouldContainCharSequenceSequence. shouldContainSequence(CharSequence actual, CharSequence[] strings, int badOrderIndex, ComparisonStrategy comparisonStrategy)Creates a new.ShouldContainCharSequenceSequencestatic ErrorMessageFactoryShouldContainSequence. shouldContainSequence(Object actual, Object sequence)Creates a new.ShouldContainSequencestatic ErrorMessageFactoryShouldContainSequence. shouldContainSequence(Object actual, Object sequence, ComparisonStrategy comparisonStrategy)Creates a new.ShouldContainSequencestatic ErrorMessageFactoryShouldContainsOnlyOnce. shouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound, Set<?> notOnlyOnce)Creates a newShouldContainsOnlyOnce.static ErrorMessageFactoryShouldContainsOnlyOnce. shouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound, Set<?> notOnlyOnce, ComparisonStrategy comparisonStrategy)Creates a newShouldContainsOnlyOnce.static ErrorMessageFactoryShouldContainSubsequence. shouldContainSubsequence(Object actual, Object subsequence)Creates a new.ShouldContainSubsequencestatic ErrorMessageFactoryShouldContainSubsequence. shouldContainSubsequence(Object actual, Object subsequence, ComparisonStrategy comparisonStrategy)Creates a new.ShouldContainSubsequencestatic ErrorMessageFactoryShouldContainValue. shouldContainValue(Object actual, Object value)Creates a newShouldContainValue.static ErrorMessageFactoryShouldContainValue. shouldContainValue(Object actual, Condition<?> valueCondition)Creates a newShouldContainValue.static <V> ErrorMessageFactoryShouldContainValues. shouldContainValues(Object actual, Set<V> values)Creates a newShouldContainValues.static ErrorMessageFactoryShouldEndWith. shouldEndWith(Object actual, Object expected)Creates a new.ShouldEndWithstatic ErrorMessageFactoryShouldEndWith. shouldEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldEndWithstatic ErrorMessageFactoryShouldEndWithPath. shouldEndWith(Path actual, Path other)static ErrorMessageFactoryShouldExist. shouldExist(File actual)Creates a new.ShouldExiststatic ErrorMessageFactoryShouldExist. shouldExist(Path actual)static ErrorMessageFactoryShouldExist. shouldExistNoFollowLinks(Path actual)static ErrorMessageFactoryShouldNotExist. shouldExistNoFollowLinks(Path actual)static <T> ErrorMessageFactoryShouldHave. shouldHave(T actual, Condition<? super T> condition)Creates a newShouldHave.static ErrorMessageFactoryShouldHaveAnnotations. shouldHaveAnnotations(Class<?> actual, Collection<Class<? extends Annotation>> expected, Collection<Class<? extends Annotation>> missing)Creates a newShouldHaveAnnotations.static <T> ErrorMessageFactoryShouldHaveAtIndex. shouldHaveAtIndex(List<? extends T> actual, Condition<? super T> condition, Index index, T found)Creates a newShouldHaveAtIndex.static ErrorMessageFactoryShouldHaveBinaryContent. shouldHaveBinaryContent(File actual, BinaryDiffResult diff)Creates a new.ShouldHaveBinaryContentstatic ErrorMessageFactoryShouldHaveBinaryContent. shouldHaveBinaryContent(Path actual, BinaryDiffResult diff)Creates a new.ShouldHaveBinaryContentstatic ErrorMessageFactoryShouldHaveCause. shouldHaveCause(Throwable actualCause, Throwable expectedCause)static ErrorMessageFactoryShouldHaveCauseExactlyInstance. shouldHaveCauseExactlyInstance(Throwable actual, Class<? extends Throwable> expectedCauseType)Creates a newBasicErrorMessageFactory.static ErrorMessageFactoryShouldHaveCauseInstance. shouldHaveCauseInstance(Throwable actual, Class<? extends Throwable> expectedCauseType)Creates a newBasicErrorMessageFactory.static ErrorMessageFactoryShouldBeSorted. shouldHaveComparableElementsAccordingToGivenComparator(Object actual, Comparator<?> comparator)static ErrorMessageFactoryShouldHaveContent. shouldHaveContent(File actual, Charset charset, List<Delta<String>> diffs)Creates a new.ShouldHaveContentstatic ErrorMessageFactoryShouldHaveContent. shouldHaveContent(Path actual, Charset charset, List<Delta<String>> diffs)Creates a new.ShouldHaveContentstatic ErrorMessageFactoryShouldHaveDateField. shouldHaveDateField(Date actual, String fieldDescription, int fieldValue)Creates a newShouldHaveDateField.static ErrorMessageFactoryShouldHaveFields. shouldHaveDeclaredFields(Class<?> actual, Set<String> expected, Set<String> missing)Creates a newShouldHaveFields.static ErrorMessageFactoryShouldHaveFields. shouldHaveFields(Class<?> actual, Set<String> expected, Set<String> missing)Creates a newShouldHaveFields.static ErrorMessageFactoryShouldHaveLineCount. shouldHaveLinesCount(Object actual, int actualSize, int expectedSize)Creates a newShouldHaveLineCount.static ErrorMessageFactoryShouldHaveMessage. shouldHaveMessage(Throwable actual, String expectedMessage)Creates a newShouldHaveMessage.static ErrorMessageFactoryShouldHaveMessageMatchingRegex. shouldHaveMessageMatchingRegex(Throwable actual, CharSequence regex)static ErrorMessageFactoryShouldHaveMethods. shouldHaveMethods(Class<?> actual, boolean declared, SortedSet<String> expected, String modifier, Map<String,String> nonMatching)static ErrorMessageFactoryShouldHaveMethods. shouldHaveMethods(Class<?> actual, boolean declared, SortedSet<String> expected, SortedSet<String> missing)Creates a newShouldHaveMethods.static ErrorMessageFactoryShouldBeSorted. shouldHaveMutuallyComparableElements(Object actual)static ErrorMessageFactoryShouldHaveNoCause. shouldHaveNoCause(Throwable actual)Creates a newShouldHaveNoCause.static ErrorMessageFactoryShouldHaveNoFields. shouldHaveNoDeclaredFields(Class<?> actual, Set<String> fields)static ErrorMessageFactoryShouldHaveNoFields. shouldHaveNoPublicFields(Class<?> actual, Set<String> fields)static ErrorMessageFactoryShouldHaveNoSuppressedExceptions. shouldHaveNoSuppressedExceptions(Object actual)Creates a new.ShouldHaveNoSuppressedExceptionsstatic ErrorMessageFactoryShouldHavePropertyOrField. shouldHavePropertyOrField(Object actual, String name)Creates a newShouldHavePropertyOrField.static ErrorMessageFactoryShouldHavePropertyOrFieldWithValue. shouldHavePropertyOrFieldWithValue(Object actual, String name, Object expectedValue, Object actualValue)Creates a newShouldHavePropertyOrFieldWithValue.static <REF> ErrorMessageFactoryShouldHaveReference. shouldHaveReference(Object actual, REF actualReference, REF expectedReference)static ErrorMessageFactoryShouldHaveRootCauseExactlyInstance. shouldHaveRootCauseExactlyInstance(Throwable actual, Class<? extends Throwable> expectedCauseType)Creates a newBasicErrorMessageFactory.static ErrorMessageFactoryShouldHaveRootCauseInstance. shouldHaveRootCauseInstance(Throwable actual, Class<? extends Throwable> expectedCauseType)Creates a newBasicErrorMessageFactory.static ErrorMessageFactoryShouldHaveSameClass. shouldHaveSameClass(Object actual, Object other)Creates a newShouldHaveSameClass.static ErrorMessageFactoryShouldHaveSameContent. shouldHaveSameContent(File actual, File expected, List<Delta<String>> diffs)Creates a new.ShouldHaveSameContentstatic ErrorMessageFactoryShouldHaveSameContent. shouldHaveSameContent(InputStream actual, InputStream expected, List<Delta<String>> diffs)Creates a new.ShouldHaveSameContentstatic ErrorMessageFactoryShouldHaveSameContent. shouldHaveSameContent(Path actual, Path expected, List<Delta<String>> diffs)Creates a new.ShouldHaveSameContentstatic ErrorMessageFactoryShouldHaveSameHourAs. shouldHaveSameHourAs(Temporal actual, Temporal other)Creates a new.ShouldHaveSameHourAsstatic ErrorMessageFactoryShouldContainExactly. shouldHaveSameSize(Object actual, Object expected, int actualSize, int expectedSize, ComparisonStrategy comparisonStrategy)static ErrorMessageFactoryShouldHaveSameSizeAs. shouldHaveSameSizeAs(Object actual, Object actualSize, Object expectedSize)Creates a newShouldHaveSameSizeAs.static ErrorMessageFactoryShouldHaveSameTime. shouldHaveSameTime(Date actual, Date expected)Creates a newShouldHaveSameTime.static ErrorMessageFactoryShouldHaveSize. shouldHaveSize(Object actual, int actualSize, int expectedSize)Creates a newShouldHaveSize.static ErrorMessageFactoryShouldHaveStamp. shouldHaveStamp(AtomicStampedReference<?> actual, int expectedStamp)static ErrorMessageFactoryShouldHaveSuppressedException. shouldHaveSuppressedException(Throwable actual, Throwable expectedSuppressedException)Creates a new.ShouldHaveSuppressedExceptionstatic ErrorMessageFactoryShouldHaveTime. shouldHaveTime(Date actual, long expectedTimestamp)Creates a newShouldHaveTime.static ErrorMessageFactoryShouldHaveToString. shouldHaveToString(Object actual, String expectedToString)static <REF> ErrorMessageFactoryShouldHaveValue. shouldHaveValue(Object actual, REF expectedValue)static <REF> ErrorMessageFactoryShouldHaveValue. shouldHaveValue(Object actual, REF actualValue, REF expectedValue, Object objectToUpdate)static <T> ErrorMessageFactoryShouldMatch. shouldMatch(T actual, Predicate<? super T> predicate, PredicateDescription predicateDescription)Creates a newShouldMatch.static ErrorMessageFactoryShouldMatchPattern. shouldMatch(CharSequence actual, CharSequence pattern)Creates a new.ShouldMatchPatternstatic <T> ErrorMessageFactoryShouldNotAccept. shouldNotAccept(Predicate<? super T> predicate, T value, PredicateDescription description)Creates a newShouldNotAccept.static <T> ErrorMessageFactoryShouldNotBe. shouldNotBe(T actual, Condition<? super T> condition)Creates a newShouldNotBe.static ErrorMessageFactoryShouldBeAnnotation. shouldNotBeAnnotation(Class<?> actual)Creates a newShouldBeAnnotation.static ErrorMessageFactoryShouldNotBeBetween. shouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd)Creates a newShouldNotBeBetween.static ErrorMessageFactoryShouldNotBeBetween. shouldNotBeBetween(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy)Creates a newShouldNotBeBetween.static ErrorMessageFactoryShouldNotBeBlank. shouldNotBeBlank(CharSequence actual)Creates a new.ShouldNotBeBlankstatic ErrorMessageFactoryShouldNotBeEmpty. shouldNotBeEmpty()Returns the singleton instance of this class.static ErrorMessageFactoryShouldNotBeEqual. shouldNotBeEqual(Object actual, Object other)Creates a new.ShouldNotBeEqualstatic ErrorMessageFactoryShouldNotBeEqual. shouldNotBeEqual(Object actual, Object other, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotBeEqualstatic <T extends Number>
ErrorMessageFactoryShouldNotBeEqualWithinOffset. shouldNotBeEqual(T actual, T expected, Offset<T> offset, T difference)Creates a new.ShouldNotBeEqualWithinOffsetstatic ErrorMessageFactoryShouldNotBeEqualIgnoringCase. shouldNotBeEqualIgnoringCase(CharSequence actual, CharSequence expected)Creates a new.ShouldNotBeEqualIgnoringCasestatic ErrorMessageFactoryShouldNotBeEqualIgnoringWhitespace. shouldNotBeEqualIgnoringWhitespace(CharSequence actual, CharSequence expected)Creates a new.ShouldNotBeEqualIgnoringWhitespacestatic ErrorMessageFactoryShouldNotBeEqualNormalizingWhitespace. shouldNotBeEqualNormalizingWhitespace(CharSequence actual, CharSequence expected)Creates a new.ShouldNotBeEqualNormalizingWhitespacestatic <T extends Number>
ErrorMessageFactoryShouldNotBeEqualWithinPercentage. shouldNotBeEqualWithinPercentage(T actual, T expected, Percentage percentage, T difference)Creates a new.ShouldNotBeEqualWithinPercentagestatic ErrorMessageFactoryShouldNotBeExactlyInstanceOf. shouldNotBeExactlyInstance(Object actual, Class<?> type)Creates a newShouldNotBeExactlyInstanceOf.static ErrorMessageFactoryClassModifierShouldBe. shouldNotBeFinal(Class<?> actual)Creates a newClassModifierShouldBe.static ErrorMessageFactoryShouldNotBeIn. shouldNotBeIn(Object actual, Object values)Creates a new.ShouldNotBeInstatic ErrorMessageFactoryShouldNotBeIn. shouldNotBeIn(Object actual, Object values, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotBeInstatic ErrorMessageFactoryShouldNotBeInstance. shouldNotBeInstance(Object actual, Class<?> type)Creates a newShouldNotBeInstance.static ErrorMessageFactoryShouldNotBeInstanceOfAny. shouldNotBeInstanceOfAny(Object actual, Class<?>[] types)Creates a newShouldNotBeInstanceOfAny.static ErrorMessageFactoryShouldBeInterface. shouldNotBeInterface(Class<?> actual)Creates a newShouldBeInterface.static ErrorMessageFactoryShouldBeMarked. shouldNotBeMarked(AtomicMarkableReference<?> actual)static ErrorMessageFactoryShouldNotBeNull. shouldNotBeNull()Returns the singleton instance of this class.static ErrorMessageFactoryShouldNotBeOfClassIn. shouldNotBeOfClassIn(Object actual, Object types)Creates a newShouldNotBeOfClassIn.static ErrorMessageFactoryShouldNotBeSame. shouldNotBeSame(Object actual)Creates a new.ShouldNotBeSamestatic ErrorMessageFactoryShouldNotContain. shouldNotContain(Object actual, Object expected, Object found)Creates a newShouldNotContain.static ErrorMessageFactoryShouldNotContain. shouldNotContain(Object actual, Object expected, Object found, ComparisonStrategy comparisonStrategy)Creates a newShouldNotContain.static ErrorMessageFactoryShouldNotContainCharSequence. shouldNotContain(CharSequence actual, CharSequence sequence)Creates a new.ShouldNotContainCharSequencestatic ErrorMessageFactoryShouldNotContainCharSequence. shouldNotContain(CharSequence actual, CharSequence sequence, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotContainCharSequencestatic ErrorMessageFactoryShouldNotContainAtIndex. shouldNotContainAtIndex(Object actual, Object expected, Index index)Creates a newShouldNotContainAtIndex.static ErrorMessageFactoryShouldNotContainAtIndex. shouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)Creates a newShouldNotContainAtIndex.static ErrorMessageFactoryShouldNotContainKey. shouldNotContainKey(Object actual, Object key)Creates a newShouldNotContainKey.static <K> ErrorMessageFactoryShouldNotContainKeys. shouldNotContainKeys(Object actual, Set<K> keys)Creates a newShouldNotContainKeys.static ErrorMessageFactoryShouldNotContainNull. shouldNotContainNull(Object actual)Creates a newShouldNotContainNull.static ErrorMessageFactoryShouldNotContainPattern. shouldNotContainPattern(CharSequence actual, CharSequence pattern)Creates a new.ShouldNotContainPatternstatic ErrorMessageFactoryShouldNotContainSequence. shouldNotContainSequence(Object actual, Object sequence, int index)Creates a new.ShouldNotContainSequencestatic ErrorMessageFactoryShouldNotContainSequence. shouldNotContainSequence(Object actual, Object sequence, int index, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotContainSequencestatic ErrorMessageFactoryShouldNotContainSubsequence. shouldNotContainSubsequence(Object actual, Object subsequence, int index)Creates a new.ShouldNotContainSubsequencestatic ErrorMessageFactoryShouldNotContainSubsequence. shouldNotContainSubsequence(Object actual, Object subsequence, ComparisonStrategy comparisonStrategy, int index)Creates a new.ShouldNotContainSubsequencestatic ErrorMessageFactoryShouldNotContainValue. shouldNotContainValue(Object actual, Object value)Creates a newShouldNotContainValue.static ErrorMessageFactoryShouldNotEndWith. shouldNotEndWith(Object actual, Object expected)Creates a new.ShouldNotEndWithstatic ErrorMessageFactoryShouldNotEndWith. shouldNotEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotEndWithstatic ErrorMessageFactoryShouldNotExist. shouldNotExist(File actual)Creates a new.ShouldNotExiststatic ErrorMessageFactoryShouldNotExist. shouldNotExist(Path actual)static <T> ErrorMessageFactoryShouldNotHave. shouldNotHave(T actual, Condition<? super T> condition)Creates a newShouldNotHave.static ErrorMessageFactoryShouldNotHaveDuplicates. shouldNotHaveDuplicates(Object actual, Object duplicates)Creates a new.ShouldNotHaveDuplicatesstatic ErrorMessageFactoryShouldNotHaveDuplicates. shouldNotHaveDuplicates(Object actual, Object duplicates, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotHaveDuplicatesstatic ErrorMessageFactoryShouldHaveMethods. shouldNotHaveMethods(Class<?> actual, boolean declared, SortedSet<String> actualMethodsHavingModifier)static ErrorMessageFactoryShouldHaveMethods. shouldNotHaveMethods(Class<?> actual, String modifier, boolean declared, SortedSet<String> actualMethodsHavingModifier)static ErrorMessageFactoryShouldNotHaveSameClass. shouldNotHaveSameClass(Object actual, Object other)Creates a newShouldNotHaveSameClass.static ErrorMessageFactoryShouldNotHaveThrown. shouldNotHaveThrown(Throwable throwable)static <T> ErrorMessageFactoryShouldNotMatch. shouldNotMatch(T actual, Predicate<? super T> predicate, PredicateDescription predicateDescription)Creates a newShouldNotMatch.static ErrorMessageFactoryShouldNotMatchPattern. shouldNotMatch(CharSequence actual, CharSequence pattern)Creates a new.ShouldStartWithstatic ErrorMessageFactoryShouldNotStartWith. shouldNotStartWith(Object actual, Object expected)Creates a new.ShouldNotStartWithstatic ErrorMessageFactoryShouldNotStartWith. shouldNotStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotStartWithstatic ErrorMessageFactoryShouldOnlyHaveFields. shouldOnlyHaveDeclaredFields(Class<?> actual, Collection<String> expected, Collection<String> notFound, Collection<String> notExpected)Creates a newShouldOnlyHaveFields.static ErrorMessageFactoryShouldOnlyHaveFields. shouldOnlyHaveFields(Class<?> actual, Collection<String> expected, Collection<String> notFound, Collection<String> notExpected)Creates a newShouldOnlyHaveFields.static ErrorMessageFactoryShouldStartWith. shouldStartWith(Object actual, Object expected)Creates a new.ShouldStartWithstatic ErrorMessageFactoryShouldStartWith. shouldStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldStartWithstatic ErrorMessageFactoryShouldStartWithPath. shouldStartWith(Path actual, Path other) -
Uses of ErrorMessageFactory in org.assertj.core.error.future
Classes in org.assertj.core.error.future that implement ErrorMessageFactory Modifier and Type Class Description classShouldBeCancelledclassShouldBeCompletedclassShouldBeCompletedExceptionallyclassShouldBeDoneclassShouldHaveFailedclassShouldNotBeCancelledclassShouldNotBeCompletedclassShouldNotBeCompletedExceptionallyclassShouldNotBeDoneclassShouldNotHaveFailed -
Uses of ErrorMessageFactory in org.assertj.core.error.uri
Classes in org.assertj.core.error.uri that implement ErrorMessageFactory Modifier and Type Class Description classShouldHaveAnchorclassShouldHaveAuthorityclassShouldHaveFragmentclassShouldHaveHostclassShouldHaveParameterclassShouldHavePathclassShouldHavePortclassShouldHaveProtocolclassShouldHaveQueryclassShouldHaveSchemeclassShouldHaveUserInfoMethods in org.assertj.core.error.uri that return ErrorMessageFactory Modifier and Type Method Description static ErrorMessageFactoryShouldHaveAnchor. shouldHaveAnchor(URL actual, String expectedAnchor)static ErrorMessageFactoryShouldHaveAuthority. shouldHaveAuthority(URI actual, String expectedAuthority)static ErrorMessageFactoryShouldHaveAuthority. shouldHaveAuthority(URL actual, String expectedAuthority)static ErrorMessageFactoryShouldHaveFragment. shouldHaveFragment(URI actual, String expectedFragment)static ErrorMessageFactoryShouldHaveHost. shouldHaveHost(URI actual, String expectedHost)static ErrorMessageFactoryShouldHaveHost. shouldHaveHost(URL actual, String expectedHost)static ErrorMessageFactoryShouldHaveParameter. shouldHaveNoParameter(Object actual, String name, String unwantedValue, List<String> actualValues)static ErrorMessageFactoryShouldHaveParameter. shouldHaveNoParameter(Object actual, String name, List<String> actualValues)static ErrorMessageFactoryShouldHaveParameter. shouldHaveNoParameters(Object actual, Set<String> parameterNames)static ErrorMessageFactoryShouldHaveParameter. shouldHaveParameter(Object actual, String name)static ErrorMessageFactoryShouldHaveParameter. shouldHaveParameter(Object actual, String name, String expectedValue)static ErrorMessageFactoryShouldHaveParameter. shouldHaveParameter(Object actual, String name, String expectedValue, List<String> actualValues)static ErrorMessageFactoryShouldHavePath. shouldHavePath(URI actual, String expectedPath)static ErrorMessageFactoryShouldHavePath. shouldHavePath(URL actual, String expectedPath)static ErrorMessageFactoryShouldHavePort. shouldHavePort(URI actual, int expectedPort)static ErrorMessageFactoryShouldHavePort. shouldHavePort(URL actual, int expectedPort)static ErrorMessageFactoryShouldHaveProtocol. shouldHaveProtocol(URL actual, String expectedProtocol)static ErrorMessageFactoryShouldHaveQuery. shouldHaveQuery(URI actual, String expectedQuery)static ErrorMessageFactoryShouldHaveQuery. shouldHaveQuery(URL actual, String expectedQuery)static ErrorMessageFactoryShouldHaveScheme. shouldHaveScheme(URI actual, String expectedScheme)static ErrorMessageFactoryShouldHaveUserInfo. shouldHaveUserInfo(URI actual, String expectedUserInfo)static ErrorMessageFactoryShouldHaveUserInfo. shouldHaveUserInfo(URL actual, String expectedUserInfo) -
Uses of ErrorMessageFactory in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type ErrorMessageFactory Modifier and Type Method Description AssertionErrorFailures. failure(AssertionInfo info, ErrorMessageFactory message)Creates afollowing this pattern: creates aAssertionErrorusingAssertionErroras the error message if such value is notAssertionInfo.overridingErrorMessage()null, or uses the givento create the detail message of theErrorMessageFactory, prepending the value ofAssertionErrorto the error messageAssertionInfo.description()
-