Package org.fest.assertions.error
Class BasicErrorMessageFactory
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
- All Implemented Interfaces:
ErrorMessageFactory
- Direct Known Subclasses:
AbstractShouldHaveTextContent
,ConditionAndGroupGenericParameterTypeShouldBeTheSame
,ElementsShouldBe
,ElementsShouldBeAtLeast
,ElementsShouldBeAtMost
,ElementsShouldBeExactly
,ElementsShouldHave
,ElementsShouldHaveAtLeast
,ElementsShouldHaveAtMost
,ElementsShouldHaveExactly
,ElementsShouldNotBe
,ElementsShouldNotBeAtLeast
,ElementsShouldNotBeAtMost
,ElementsShouldNotBeExactly
,ElementsShouldNotHave
,ElementsShouldNotHaveAtLeast
,ElementsShouldNotHaveAtMost
,ElementsShouldNotHaveExactly
,ShouldBe
,ShouldBeAbsolutePath
,ShouldBeAfter
,ShouldBeAfterOrEqualsTo
,ShouldBeAtIndex
,ShouldBeBefore
,ShouldBeBeforeOrEqualsTo
,ShouldBeBetween
,ShouldBeCloseTo
,ShouldBeDirectory
,ShouldBeEmpty
,ShouldBeEqualIgnoringCase
,ShouldBeEqualImages
,ShouldBeEqualWithinOffset
,ShouldBeExactlyInstanceOf
,ShouldBeExecutable
,ShouldBeFile
,ShouldBeGreater
,ShouldBeGreaterOrEqual
,ShouldBeIn
,ShouldBeInSameDay
,ShouldBeInSameHour
,ShouldBeInSameMillisecond
,ShouldBeInSameMinute
,ShouldBeInSameMonth
,ShouldBeInSameSecond
,ShouldBeInSameYear
,ShouldBeInstance
,ShouldBeInstanceOfAny
,ShouldBeInTheFuture
,ShouldBeInThePast
,ShouldBeLenientEqualByAccepting
,ShouldBeLenientEqualByIgnoring
,ShouldBeLess
,ShouldBeLessOrEqual
,ShouldBeLowerCase
,ShouldBeNullOrEmpty
,ShouldBeOfClassIn
,ShouldBeReadable
,ShouldBeRelativePath
,ShouldBeSame
,ShouldBeSorted
,ShouldBeSubsetOf
,ShouldBeToday
,ShouldBeUpperCase
,ShouldBeWithin
,ShouldBeWritable
,ShouldContain
,ShouldContainAtIndex
,ShouldContainExactly
,ShouldContainKey
,ShouldContainNull
,ShouldContainOnly
,ShouldContainSequence
,ShouldContainString
,ShouldContainStringOnlyOnce
,ShouldContainValue
,ShouldEndWith
,ShouldExist
,ShouldHave
,ShouldHaveAtIndex
,ShouldHaveBinaryContent
,ShouldHaveMessage
,ShouldHaveNoCause
,ShouldHaveSameClass
,ShouldHaveSameSizeAs
,ShouldHaveSize
,ShouldHaveTime
,ShouldMatchPattern
,ShouldNotBe
,ShouldNotBeBetween
,ShouldNotBeEqual
,ShouldNotBeExactlyInstanceOf
,ShouldNotBeIn
,ShouldNotBeInstance
,ShouldNotBeInstanceOfAny
,ShouldNotBeOfClassIn
,ShouldNotBeSame
,ShouldNotContain
,ShouldNotContainAtIndex
,ShouldNotContainKey
,ShouldNotContainNull
,ShouldNotContainString
,ShouldNotContainValue
,ShouldNotExist
,ShouldNotHave
,ShouldNotHaveDuplicates
,ShouldNotHaveSameClass
,ShouldNotMatchPattern
,ShouldStartWith
A factory of error messages typically shown when an assertion fails.
- Author:
- Alex Ruiz
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicErrorMessageFactory
(String format, Object... arguments) Creates a newBasicErrorMessageFactory
. -
Method Summary
-
Field Details
-
format
-
arguments
-
-
Constructor Details
-
BasicErrorMessageFactory
Creates a newBasicErrorMessageFactory
.- Parameters:
format
- the format string.arguments
- arguments referenced by the format specifiers in the format string.
-
-
Method Details
-
create
Creates a new error message as a result of a failed assertion.- Specified by:
create
in interfaceErrorMessageFactory
- Parameters:
d
- the description of the failed assertion.- Returns:
- the created error message.
-
equals
-
hashCode
public int hashCode() -
toString
-