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