Uses of Interface
org.fest.assertions.error.ErrorMessageFactory
Packages that use ErrorMessageFactory
-
Uses of ErrorMessageFactory in org.fest.assertions.error
Classes in org.fest.assertions.error that implement ErrorMessageFactoryModifier and TypeClassDescriptionclass
Base class for text content error.class
A factory of error messages typically shown when an assertion fails.class
Creates an error message indicating that an assertion that verifies type of elements of group andCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies elements of a group satisfies at least n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies elements of a group satisfies at most n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies elements of a group satisfies exactly n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies elements of a group satisfies at least n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies elements of a group satisfies at most n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies elements of a group satisfies exactly n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that not verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that not verifies elements of a group satisfies at least n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that not verifies elements of a group satisfies at most n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that not verifies elements of a group satisfies exactly n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies that each element of a group satisfies aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that not verifies elements of a group satisfies at least n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that not verifies elements of a group satisfies at most n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that not verifies elements of a group satisfies exactly n times aCondition
A group of elements can be a collection, an array.class
Creates an error message indicating that an assertion that verifies that a value satisfies a
failed.Condition
class
Creates an error message indicating that an assertion that verifies that a
is an absolute path failed.File
class
Creates an error message indicating that an assertion that verifies that aDate
is after another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is after or equals to another one failed.class
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that satisfies a
failed.Condition
class
Creates an error message indicating that an assertion that verifies that aDate
is before another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is before or equals to another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is between start - end dates (inclusive or not) failed.class
Creates an error message indicating that an assertion that verifies that aDate
is close to another one from some delta failed.class
Creates an error message indicating that an assertion that verifies that a
is an existing directory failed.File
class
Creates an error message indicating that an assertion that verifies a group of elements is empty failed.class
Creates an error message indicating that an assertion that verifies that twoString
s are equal, ignoring case considerations, failed.class
Creates an error message that indicates an assertion that verifies that two images are equal failed.class
Creates an error message indicating that an assertion that verifies that two numbers are equal within a positive offset failed.class
Creates an error message indicating that an assertion that verifies that an object is exactly an instance of some type failed.class
Creates an error message indicating that an assertion that verifies that a
is executable failed.File
class
Creates an error message indicating that an assertion that verifies that a
is an existing file failed.File
class
Creates an error message indicating that an assertion that verifies that a value is greater than another one failed.class
Creates an error message indicating that an assertion that verifies that a value is greater than or equal to another one failed.class
Creates an error message indicating that an assertion that verifies that a value is in a group of values (e.g.class
Creates an error message indicating that an assertion that verifies that aDate
is in same year, month and day of month as another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in same year, month, day of month and hour as another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in same year, month, day of month, hour, minute, second adn millisecond as another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in same year, month, day of month, hour and minute as another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in same year and month as another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in same year, month, day of month, hour, minute and second as another one failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in same year as another one failed.class
Creates an error message indicating that an assertion that verifies that an object is an instance of some type failed.class
Creates an error message indicating that an assertion that verifies that an object is an instance of one or more types failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in the future failed.class
Creates an error message indicating that an assertion that verifies that aDate
is in the past failed.class
Creates an
indicating that an assertion that verifies that two objects are lenient equal by accepting fields failed.AssertionError
class
Creates an
indicating that an assertion that verifies that two objects are lenient equal by ignoring fields failed.AssertionError
class
Creates an error message indicating that an assertion that verifies that a value is less than another one failed.class
Creates an error message indicating that an assertion that verifies that a value is less than or equal to another one failed.class
Creates an error message that indicates an assertion that verifies that a character is lowercase failed.class
Creates an error message indicating that an assertion that verifies a group of elements isnull
or empty failed.class
Creates an error message indicating that an assertion that verifies that an object is of type in group of types failed.class
Creates an error message indicating that an assertion that verifies that a
is readable failed.File
class
Creates an error message indicating that an assertion that verifies that a
is a relative path failed.File
class
Creates an error message indicating that an assertion that verifies that two object refer to same object failed.class
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.class
Creates an error message indicating that an assertion that verifies that anIterable
is a subset of an other setIterable
failed.class
Creates an error message indicating that an assertion that verifies that aDate
is today (matching only year, month and day but not hours).class
Creates an error message that indicates an assertion that verifies that a character is uppercase failed.class
Creates an error message indicating that an assertion that verifies that aDate
is within a year, month, day, ...class
Creates an error message indicating that an assertion that verifies that a
is writable failed.File
class
Creates an error message indicating that an assertion that verifies a group of elements contains a given set of values failed.class
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index failed.class
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.class
Creates an error message indicating that an assertion that verifies a map contains a key..class
Creates an error message indicating that an assertion that verifies a group of elements contains a null element failed.class
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.class
Creates an error message indicating that an assertion that verifies that a group of elements contains a sequence of values failed.class
Creates an error message indicating that an assertion that verifies that aString
contains anotherString
failed.class
Creates an error message indicating that an assertion that verifies that aString
contains anotherString
only once failed.class
Creates an error message indicating that an assertion that verifies a map contains a value.class
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.class
Creates an error message indicating that an assertion that verifies that a
exists failed.File
class
Creates an error message indicating that an assertion that verifies that a value satisfies a
failed.Condition
class
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index that satisfies a
failed.Condition
class
Creates an error message indicating that an assertion that verifies that a file has a given binary content failed.class
Creates an error message indicating that an assertion that verifies that a file has a given text content failed.class
Creates an error message indicating that an assertion that verifies that two files/inputStreams have equal content failed.class
Creates an error message indicating that an assertion that verifies that aThrowable
have certain message failed.class
Creates an error message indicating that an assertion that verifies that anThrowable
has no cause failed.class
Creates an error message indicating that an assertion that verifies that an object have same class as another instance failed.class
Creates an error message indicating that an assertion that verifies that a value have certain size failed.class
Creates an error message indicating that an assertion that verifies that a value have certain size failed.class
Creates an error message indicating that an assertion that verifies that a date have a certain timestamp.class
Creates an error message indicating that an assertion that verifies that aString
matches a pattern failed.class
Creates an error message indicating that an assertion that verifies that a value does not satisfy a
failed.Condition
class
Creates an error message indicating that an assertion that verifies that aDate
is not between start - end dates (inclusive or not) failed.class
Creates an error message indicating that an assertion that verifies a group of elements is not empty failed.class
Creates an error message indicating that an assertion that verifies that two objects are not equal failed.class
Creates an error message that indicates an assertion that verifies that two images should not benull
failed.class
Creates an error message indicating that an assertion that verifies that an object is not exactly an instance of some type failed.class
Creates an error message indicating that an assertion that verifies that a value is not in a group of values (e.g.class
Creates an error message indicating that an assertion that verifies that an object is not an instance of some type failed.class
Creates an error message indicating that an assertion that verifies that an object is not an instance of one or more types failed.class
Creates an error message that indicates an assertion that verifies that an object is notnull
failed.class
Creates an error message indicating that an assertion that verifies that an object is not of type in group of types failed.class
Creates an error message indicating an assertion that verifies that two objects do not refer to the same object failed.class
Creates an error message indicating that an assertion that verifies a group of elements does not contain a given set of values failed.class
Creates an error message indicating that an assertion that verifies a group of elements does not contain a value at a given index failed.class
Creates an error message indicating that an assertion that verifies a map does not contains a key failed.class
Creates an error message indicating that an assertion that verifies a group of elements does not contain null elements failed.class
Creates an error message indicating that an assertion that verifies that aString
does not contain anotherString
failed.class
Creates an error message indicating that an assertion that verifies a map does not contains a value.class
Creates an error message indicating that an assertion that verifies that a
does not exist failed.File
class
Creates an error message indicating that an assertion that verifies that a value does not satisfy a
failed.Condition
class
Creates an error message indicating that an assertion that verifies a group of elements is does not have duplicates failed.class
Creates an error message indicating that an assertion that verifies that an object has same class as another instance failed.class
Creates an error message indicating that an assertion that verifies that aString
does not match a pattern failed.class
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.Methods in org.fest.assertions.error that return ErrorMessageFactoryModifier and TypeMethodDescriptionstatic ErrorMessageFactory
ElementsShouldBe.elementsShouldBe
(Object actual, Object notSatisfies, Condition<?> condition) Creates a newElementsShouldBe
.static ErrorMessageFactory
ElementsShouldBeAtLeast.elementsShouldBeAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldBeAtLeast
.static ErrorMessageFactory
ElementsShouldBeAtMost.elementsShouldBeAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldBeAtMost
.static ErrorMessageFactory
ElementsShouldBeExactly.elementsShouldBeExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldBeExactly
.static ErrorMessageFactory
ElementsShouldHave.elementsShouldHave
(Object actual, Object notSatisfies, Condition<?> condition) Creates a newElementsShouldHave
.static ErrorMessageFactory
ElementsShouldHaveAtLeast.elementsShouldHaveAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldHaveAtLeast
.static ErrorMessageFactory
ElementsShouldHaveAtMost.elementsShouldHaveAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldHaveAtMost
.static <E> ErrorMessageFactory
ElementsShouldHaveExactly.elementsShouldHaveExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldHaveExactly
.static ErrorMessageFactory
ElementsShouldNotBe.elementsShouldNotBe
(Object actual, Object satisfies, Condition<?> condition) Creates a newElementsShouldNotBe
.static ErrorMessageFactory
ElementsShouldNotBeAtLeast.elementsShouldNotBeAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotBeAtLeast
.static <E> ErrorMessageFactory
ElementsShouldNotBeAtMost.elementsShouldNotBeAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotBeAtMost
.static <E> ErrorMessageFactory
ElementsShouldNotBeExactly.elementsShouldNotBeExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotBeExactly
.static ErrorMessageFactory
ElementsShouldNotHave.elementsShouldNotHave
(Object actual, Object notSatisfies, Condition<?> condition) Creates a newElementsShouldNotHave
.static ErrorMessageFactory
ElementsShouldNotHaveAtLeast.elementsShouldNotHaveAtLeast
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotHaveAtLeast
.static <E> ErrorMessageFactory
ElementsShouldNotHaveAtMost.elementsShouldNotHaveAtMost
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotHaveAtMost
.static <E> ErrorMessageFactory
ElementsShouldNotHaveExactly.elementsShouldNotHaveExactly
(Object actual, int times, Condition<?> condition) Creates a newElementsShouldNotHaveExactly
.static <T> ErrorMessageFactory
Creates a newShouldBe
.static ErrorMessageFactory
ShouldBeAbsolutePath.shouldBeAbsolutePath
(File actual) Creates a new
.ShouldBeAbsolutePath
static ErrorMessageFactory
ShouldBeAfter.shouldBeAfter
(Date actual, int year) Creates a newShouldBeAfter
.static ErrorMessageFactory
ShouldBeAfter.shouldBeAfter
(Date actual, Date other) Creates a newShouldBeAfter
.static ErrorMessageFactory
ShouldBeAfter.shouldBeAfter
(Date actual, Date other, ComparisonStrategy comparisonStrategy) Creates a newShouldBeAfter
.static ErrorMessageFactory
ShouldBeAfterOrEqualsTo.shouldBeAfterOrEqualsTo
(Date actual, Date other) Creates a newShouldBeAfterOrEqualsTo
.static ErrorMessageFactory
ShouldBeAfterOrEqualsTo.shouldBeAfterOrEqualsTo
(Date actual, Date other, ComparisonStrategy comparisonStrategy) Creates a newShouldBeAfterOrEqualsTo
.static <T> ErrorMessageFactory
ShouldBeAtIndex.shouldBeAtIndex
(List<T> actual, Condition<? super T> condition, Index index, T found) Creates a newShouldBeAtIndex
.static ErrorMessageFactory
ShouldBeBefore.shouldBeBefore
(Date actual, int year) Creates a newShouldBeBefore
.static ErrorMessageFactory
ShouldBeBefore.shouldBeBefore
(Date actual, Date other) Creates a newShouldBeBefore
.static ErrorMessageFactory
ShouldBeBefore.shouldBeBefore
(Date actual, Date other, ComparisonStrategy comparisonStrategy) Creates a newShouldBeBefore
.static ErrorMessageFactory
ShouldBeBeforeOrEqualsTo.shouldBeBeforeOrEqualsTo
(Date actual, Date other) Creates a newShouldBeBeforeOrEqualsTo
.static ErrorMessageFactory
ShouldBeBeforeOrEqualsTo.shouldBeBeforeOrEqualsTo
(Date actual, Date other, ComparisonStrategy comparisonStrategy) Creates a newShouldBeBeforeOrEqualsTo
.static ErrorMessageFactory
ShouldBeBetween.shouldBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Creates a newShouldBeBetween
.static ErrorMessageFactory
ShouldBeBetween.shouldBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy) Creates a newShouldBeBetween
.static ErrorMessageFactory
ShouldBeCloseTo.shouldBeCloseTo
(Date actual, Date other, long deltaInMilliseconds, long difference) Creates a newShouldBeCloseTo
.static ErrorMessageFactory
ShouldBeDirectory.shouldBeDirectory
(File actual) Creates a new
.ShouldBeDirectory
static ErrorMessageFactory
ShouldBeEmpty.shouldBeEmpty
(Object actual) Creates a new
.ShouldBeEmpty
static ErrorMessageFactory
ShouldBeEqualIgnoringCase.shouldBeEqual
(String actual, String expected) Creates a new
.ShouldBeEqualIgnoringCase
static <T extends Number>
ErrorMessageFactoryShouldBeEqualWithinOffset.shouldBeEqual
(T actual, T expected, Offset<T> offset, T difference) Creates a new
.ShouldBeEqualWithinOffset
static ErrorMessageFactory
ShouldBeEqualImages.shouldBeEqualImages
(Offset<Integer> offset) Creates a new
.ShouldBeEqualImages
static ErrorMessageFactory
ShouldBeExactlyInstanceOf.shouldBeExactlyInstance
(Object actual, Class<?> type) Creates a newShouldBeExactlyInstanceOf
.static ErrorMessageFactory
ShouldBeExecutable.shouldBeExecutable
(File actual) Creates a new
.ShouldBeExecutable
static ErrorMessageFactory
ShouldBeFile.shouldBeFile
(File actual) Creates a new
.ShouldBeFile
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 ErrorMessageFactory
ShouldBeIn.shouldBeIn
(Object actual, Object values) Creates a new
.ShouldBeIn
static ErrorMessageFactory
ShouldBeIn.shouldBeIn
(Object actual, Object values, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldBeIn
static ErrorMessageFactory
ShouldBeInSameDay.shouldBeInSameDay
(Date actual, Date other) Creates a newShouldBeInSameDay
.static ErrorMessageFactory
ShouldBeInSameHour.shouldBeInSameHour
(Date actual, Date other) Creates a newShouldBeInSameHour
.static ErrorMessageFactory
ShouldBeInSameMillisecond.shouldBeInSameMillisecond
(Date actual, Date other) Creates a newShouldBeInSameMillisecond
.static ErrorMessageFactory
ShouldBeInSameMinute.shouldBeInSameMinute
(Date actual, Date other) Creates a newShouldBeInSameMinute
.static ErrorMessageFactory
ShouldBeInSameMonth.shouldBeInSameMonth
(Date actual, Date other) Creates a newShouldBeInSameMonth
.static ErrorMessageFactory
ShouldBeInSameSecond.shouldBeInSameSecond
(Date actual, Date other) Creates a newShouldBeInSameSecond
.static ErrorMessageFactory
ShouldBeInSameYear.shouldBeInSameYear
(Date actual, Date other) Creates a newShouldBeInSameYear
.static ErrorMessageFactory
ShouldBeInstance.shouldBeInstance
(Object object, Class<?> type) Creates a newShouldBeInstance
.static ErrorMessageFactory
ShouldBeInstance.shouldBeInstanceButWasNull
(String objectDescription, Class<?> type) Creates a newShouldBeInstance
when object we want to check type is null.static ErrorMessageFactory
ShouldBeInstanceOfAny.shouldBeInstanceOfAny
(Object actual, Class<?>[] types) Creates a newShouldBeInstanceOfAny
.static ErrorMessageFactory
ShouldBeInTheFuture.shouldBeInTheFuture
(Date actual) Creates a newShouldBeInTheFuture
.static ErrorMessageFactory
ShouldBeInTheFuture.shouldBeInTheFuture
(Date actual, ComparisonStrategy comparisonStrategy) Creates a newShouldBeInTheFuture
.static ErrorMessageFactory
ShouldBeInThePast.shouldBeInThePast
(Date actual) Creates a newShouldBeInThePast
.static ErrorMessageFactory
ShouldBeInThePast.shouldBeInThePast
(Date actual, ComparisonStrategy comparisonStrategy) Creates a newShouldBeInThePast
.static <E> ErrorMessageFactory
ShouldBeLenientEqualByAccepting.shouldBeLenientEqualByAccepting
(Object actual, List<String> rejectedFields, List<Object> expectedValues, List<String> acceptedFields) Creates a newShouldBeLenientEqualByAccepting
.static <E> ErrorMessageFactory
ShouldBeLenientEqualByIgnoring.shouldBeLenientEqualByIgnoring
(Object actual, List<String> rejectedFields, List<Object> expectedValues, List<String> ignoredFields) Creates a newShouldBeLenientEqualByIgnoring
.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 ErrorMessageFactory
ShouldBeLowerCase.shouldBeLowerCase
(Character actual) Creates a new
.ShouldBeLowerCase
static ErrorMessageFactory
ShouldBeNullOrEmpty.shouldBeNullOrEmpty
(Object actual) Creates a new instance of
.ShouldBeNullOrEmpty
static ErrorMessageFactory
ShouldBeOfClassIn.shouldBeOfClassIn
(Object actual, Object types) Creates a newShouldBeOfClassIn
.static ErrorMessageFactory
ShouldBeReadable.shouldBeReadable
(File actual) Creates a new
.ShouldBeReadable
static ErrorMessageFactory
ShouldBeRelativePath.shouldBeRelativePath
(File actual) Creates a new
.ShouldBeRelativePath
static ErrorMessageFactory
ShouldBeSame.shouldBeSame
(Object actual, Object expected) Creates a new
.ShouldBeSame
static ErrorMessageFactory
ConditionAndGroupGenericParameterTypeShouldBeTheSame.shouldBeSameGenericBetweenIterableAndCondition
(Object actual, Condition<?> condition) Creates a newConditionAndGroupGenericParameterTypeShouldBeTheSame
static ErrorMessageFactory
ShouldBeSorted.shouldBeSorted
(int i, Object group) Creates a new
.ShouldBeSorted
static ErrorMessageFactory
ShouldBeSorted.shouldBeSortedAccordingToGivenComparator
(int i, Object group, Comparator<?> comparator) static ErrorMessageFactory
ShouldBeSubsetOf.shouldBeSubsetOf
(Object actual, Object values, Iterable<?> unexpected) Creates a new
.ShouldBeSubsetOf
static ErrorMessageFactory
ShouldBeSubsetOf.shouldBeSubsetOf
(Object actual, Object values, Iterable<?> unexpected, ComparisonStrategy comparisonStrategy) Creates a newShouldBeSubsetOf
static ErrorMessageFactory
ShouldBeToday.shouldBeToday
(Date actual) Creates a newShouldBeToday
.static ErrorMessageFactory
ShouldBeToday.shouldBeToday
(Date actual, ComparisonStrategy comparisonStrategy) Creates a newShouldBeToday
.static ErrorMessageFactory
ShouldBeUpperCase.shouldBeUpperCase
(Character actual) Creates a new
.ShouldBeUpperCase
static ErrorMessageFactory
ShouldBeWithin.shouldBeWithin
(Date actual, String fieldDescription, int fieldValue) Creates a newShouldBeWithin
.static ErrorMessageFactory
ShouldBeWritable.shouldBeWritable
(File actual) Creates a new
.ShouldBeWritable
static ErrorMessageFactory
ShouldContain.shouldContain
(Object actual, Object expected, Object notFound) Creates a newShouldContain
.static ErrorMessageFactory
ShouldContain.shouldContain
(Object actual, Object expected, Object notFound, ComparisonStrategy comparisonStrategy) Creates a newShouldContain
.static ErrorMessageFactory
ShouldContainString.shouldContain
(String actual, String sequence) Creates a new
.ShouldContainString
static ErrorMessageFactory
ShouldContainString.shouldContain
(String actual, String sequence, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldContainString
static ErrorMessageFactory
ShouldContainAtIndex.shouldContainAtIndex
(Object actual, Object expected, Index index, Object found) Creates a newShouldContainAtIndex
.static ErrorMessageFactory
ShouldContainAtIndex.shouldContainAtIndex
(Object actual, Object expected, Index index, Object found, ComparisonStrategy comparisonStrategy) Creates a newShouldContainAtIndex
.static ErrorMessageFactory
ShouldContainExactly.shouldContainExactly
(Object actualElement, Object expectedElement, int indexOfDifferentElements) Creates a newShouldContainExactly
for the case where actual and expected have the same elements in different order.static ErrorMessageFactory
ShouldContainExactly.shouldContainExactly
(Object actualElement, Object expectedElement, int indexOfDifferentElements, ComparisonStrategy comparisonStrategy) Creates a newShouldContainExactly
for the case where actual and expected have the same elements in different order according to the givenComparisonStrategy
.static ErrorMessageFactory
ShouldContainExactly.shouldContainExactly
(Object actual, Object expected, Object notFound, Object notExpected) Creates a newShouldContainExactly
.static ErrorMessageFactory
ShouldContainExactly.shouldContainExactly
(Object actual, Object expected, Object notFound, Object notExpected, ComparisonStrategy comparisonStrategy) Creates a newShouldContainExactly
.static ErrorMessageFactory
ShouldContainString.shouldContainIgnoringCase
(String actual, String sequence) Creates a new
.ShouldContainString
static ErrorMessageFactory
ShouldContainKey.shouldContainKey
(Object actual, Object key) Creates a newShouldContainKey
.static ErrorMessageFactory
ShouldContainNull.shouldContainNull
(Object actual) Creates a newShouldContainNull
.static ErrorMessageFactory
ShouldContainOnly.shouldContainOnly
(Object actual, Object expected, Object notFound, Object notExpected) Creates a newShouldContainOnly
.static ErrorMessageFactory
ShouldContainOnly.shouldContainOnly
(Object actual, Object expected, Object notFound, Object notExpected, ComparisonStrategy comparisonStrategy) Creates a newShouldContainOnly
.static ErrorMessageFactory
ShouldContainStringOnlyOnce.shouldContainOnlyOnce
(String actual, String sequence, int occurences) Creates a new
.ShouldContainStringOnlyOnce
static ErrorMessageFactory
ShouldContainStringOnlyOnce.shouldContainOnlyOnce
(String actual, String sequence, int occurences, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldContainStringOnlyOnce
static ErrorMessageFactory
ShouldContainSequence.shouldContainSequence
(Object actual, Object sequence) Creates a new
.ShouldContainSequence
static ErrorMessageFactory
ShouldContainSequence.shouldContainSequence
(Object actual, Object sequence, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldContainSequence
static ErrorMessageFactory
ShouldContainValue.shouldContainValue
(Object actual, Object value) Creates a newShouldContainValue
.static ErrorMessageFactory
ShouldEndWith.shouldEndWith
(Object actual, Object expected) Creates a new
.ShouldEndWith
static ErrorMessageFactory
ShouldEndWith.shouldEndWith
(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldEndWith
static ErrorMessageFactory
ShouldExist.shouldExist
(File actual) Creates a new
.ShouldExist
static <T> ErrorMessageFactory
ShouldHave.shouldHave
(T actual, Condition<? super T> condition) Creates a newShouldHave
.static <T> ErrorMessageFactory
ShouldHaveAtIndex.shouldHaveAtIndex
(List<T> actual, Condition<? super T> condition, Index index, T found) Creates a newShouldHaveAtIndex
.static ErrorMessageFactory
ShouldHaveBinaryContent.shouldHaveBinaryContent
(File actual, BinaryDiffResult diff) Creates a new
.ShouldHaveBinaryContent
static ErrorMessageFactory
ShouldBeSorted.shouldHaveComparableElementsAccordingToGivenComparator
(Object actual, Comparator<?> comparator) static ErrorMessageFactory
ShouldHaveContent.shouldHaveContent
(File actual, Charset charset, List<String> diffs) Creates a new
.ShouldHaveContent
static ErrorMessageFactory
ShouldHaveEqualContent.shouldHaveEqualContent
(File actual, File expected, List<String> diffs) Creates a new
.ShouldHaveEqualContent
static ErrorMessageFactory
ShouldHaveEqualContent.shouldHaveEqualContent
(InputStream actual, InputStream expected, List<String> diffs) Creates a new
.ShouldHaveEqualContent
static ErrorMessageFactory
ShouldHaveMessage.shouldHaveMessage
(Throwable actual, String expectedMessage) Creates a newShouldHaveMessage
.static ErrorMessageFactory
ShouldBeSorted.shouldHaveMutuallyComparableElements
(Object actual) static ErrorMessageFactory
ShouldHaveNoCause.shouldHaveNoCause
(Throwable actual) Creates a newShouldHaveNoCause
.static ErrorMessageFactory
ShouldHaveSameClass.shouldHaveSameClass
(Object actual, Object other) Creates a newShouldHaveSameClass
.static ErrorMessageFactory
ShouldHaveSameSizeAs.shouldHaveSameSizeAs
(Object actual, Object actualSize, Object expectedSize) Creates a newShouldHaveSameSizeAs
.static ErrorMessageFactory
ShouldHaveSize.shouldHaveSize
(Object actual, Object actualSize, Object expectedSize) Creates a newShouldHaveSize
.static ErrorMessageFactory
ShouldHaveTime.shouldHaveTime
(Date actual, long expectedTimestamp) Creates a newShouldHaveTime
.static ErrorMessageFactory
ShouldMatchPattern.shouldMatch
(String actual, String pattern) Creates a new
.ShouldMatchPattern
static <T> ErrorMessageFactory
ShouldNotBe.shouldNotBe
(T actual, Condition<? super T> condition) Creates a newShouldNotBe
.static ErrorMessageFactory
ShouldNotBeBetween.shouldNotBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd) Creates a newShouldNotBeBetween
.static ErrorMessageFactory
ShouldNotBeBetween.shouldNotBeBetween
(Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd, ComparisonStrategy comparisonStrategy) Creates a newShouldNotBeBetween
.static ErrorMessageFactory
ShouldNotBeEmpty.shouldNotBeEmpty()
Returns the singleton instance of this class.static ErrorMessageFactory
ShouldNotBeEqual.shouldNotBeEqual
(Object actual, Object other) Creates a new
.ShouldNotBeEqual
static ErrorMessageFactory
ShouldNotBeEqual.shouldNotBeEqual
(Object actual, Object other, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotBeEqual
static ErrorMessageFactory
ShouldNotBeEqualImages.shouldNotBeEqualImages()
Returns the singleton instance of this class.static ErrorMessageFactory
ShouldNotBeExactlyInstanceOf.shouldNotBeExactlyInstance
(Object actual, Class<?> type) Creates a newShouldNotBeExactlyInstanceOf
.static ErrorMessageFactory
ShouldNotBeIn.shouldNotBeIn
(Object actual, Object values) Creates a new
.ShouldNotBeIn
static ErrorMessageFactory
ShouldNotBeIn.shouldNotBeIn
(Object actual, Object values, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotBeIn
static ErrorMessageFactory
ShouldNotBeInstance.shouldNotBeInstance
(Object actual, Class<?> type) Creates a newShouldNotBeInstance
.static ErrorMessageFactory
ShouldNotBeInstanceOfAny.shouldNotBeInstanceOfAny
(Object actual, Class<?>[] types) Creates a newShouldNotBeInstanceOfAny
.static ErrorMessageFactory
ShouldNotBeNull.shouldNotBeNull()
Returns the singleton instance of this class.static ErrorMessageFactory
ShouldNotBeOfClassIn.shouldNotBeOfClassIn
(Object actual, Object types) Creates a newShouldNotBeOfClassIn
.static ErrorMessageFactory
ShouldNotBeSame.shouldNotBeSame
(Object actual) Creates a new
.ShouldNotBeSame
static ErrorMessageFactory
ShouldNotContain.shouldNotContain
(Object actual, Object expected, Object found) Creates a newShouldNotContain
.static ErrorMessageFactory
ShouldNotContain.shouldNotContain
(Object actual, Object expected, Object found, ComparisonStrategy comparisonStrategy) Creates a newShouldNotContain
.static ErrorMessageFactory
ShouldNotContainString.shouldNotContain
(String actual, String sequence) Creates a new
.ShouldNotContainString
static ErrorMessageFactory
ShouldNotContainString.shouldNotContain
(String actual, String sequence, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotContainString
static ErrorMessageFactory
ShouldNotContainAtIndex.shouldNotContainAtIndex
(Object actual, Object expected, Index index) Creates a newShouldNotContainAtIndex
.static ErrorMessageFactory
ShouldNotContainAtIndex.shouldNotContainAtIndex
(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy) Creates a newShouldNotContainAtIndex
.static ErrorMessageFactory
ShouldNotContainKey.shouldNotContainKey
(Object actual, Object key) Creates a newShouldNotContainKey
.static ErrorMessageFactory
ShouldNotContainNull.shouldNotContainNull
(Object actual) Creates a newShouldNotContainNull
.static ErrorMessageFactory
ShouldNotContainValue.shouldNotContainValue
(Object actual, Object value) Creates a newShouldNotContainValue
.static ErrorMessageFactory
ShouldNotExist.shouldNotExist
(File actual) Creates a new
.ShouldNotExist
static <T> ErrorMessageFactory
ShouldNotHave.shouldNotHave
(T actual, Condition<? super T> condition) Creates a newShouldNotHave
.static ErrorMessageFactory
ShouldNotHaveDuplicates.shouldNotHaveDuplicates
(Object actual, Object duplicates) Creates a new
.ShouldNotHaveDuplicates
static ErrorMessageFactory
ShouldNotHaveDuplicates.shouldNotHaveDuplicates
(Object actual, Object duplicates, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldNotHaveDuplicates
static ErrorMessageFactory
ShouldNotHaveSameClass.shouldNotHaveSameClass
(Object actual, Object other) Creates a newShouldNotHaveSameClass
.static ErrorMessageFactory
ShouldNotMatchPattern.shouldNotMatch
(String actual, String pattern) Creates a new
.ShouldStartWith
static ErrorMessageFactory
ShouldStartWith.shouldStartWith
(Object actual, Object expected) Creates a new
.ShouldStartWith
static ErrorMessageFactory
ShouldStartWith.shouldStartWith
(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldStartWith
-
Uses of ErrorMessageFactory in org.fest.assertions.internal
Methods in org.fest.assertions.internal with parameters of type ErrorMessageFactoryModifier and TypeMethodDescriptionFailures.failure
(AssertionInfo info, ErrorMessageFactory message) Creates a
following this pattern: creates aAssertionError
usingAssertionError
as the error message if such value is notAssertionInfo.overridingErrorMessage()
null
, or uses the given
to create the detail message of theErrorMessageFactory
, prepending the value ofAssertionError
to the error messageAssertionInfo.description()