Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldBeAfter

extends BasicErrorMessageFactory
Class Inheritance
Static Imports
org.assertj.core.util.DateUtil.parse

Creates an error message indicating that an assertion that verifies that a Date is after another one failed.
Author
Joel Costigliola

Field Summary

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldBeAfter(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeAfter
(Object
the actual value in the failed assertion.
actual
,
Object
the value used in the failed assertion to compare the actual value to.
other
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldBeAfter.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeAfter
(Object
the actual value in the failed assertion.
actual
,
Object
the value used in the failed assertion to compare the actual value to.
other
)

Creates a new ShouldBeAfter.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeAfter
(Date
the actual value in the failed assertion.
actual
,
int
the year to compare the actual date's year to.
year
)

Creates a new ShouldBeAfter.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldBeAfterback to summary
private ShouldBeAfter(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Method Detail

shouldBeAfterback to summary
public static ErrorMessageFactory shouldBeAfter(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeAfter.

Parameters
actual:Object

the actual value in the failed assertion.

other:Object

the value used in the failed assertion to compare the actual value to.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeAfterback to summary
public static ErrorMessageFactory shouldBeAfter(Object actual, Object other)

Creates a new ShouldBeAfter.

Parameters
actual:Object

the actual value in the failed assertion.

other:Object

the value used in the failed assertion to compare the actual value to.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeAfterback to summary
public static ErrorMessageFactory shouldBeAfter(Date actual, int year)

Creates a new ShouldBeAfter.

Parameters
actual:Date

the actual value in the failed assertion.

year:int

the year to compare the actual date's year to.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.