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

public Class ShouldBeBefore

extends BasicErrorMessageFactory
Class Inheritance
Imports
org.assertj.core.internal.ComparisonStrategy, .StandardComparisonStrategy

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

Field Summary

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

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeBefore
(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 ShouldBeBefore.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeBefore
(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 ShouldBeBefore.

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

Constructor Detail

ShouldBeBeforeback to summary
private ShouldBeBefore(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Method Detail

shouldBeBeforeback to summary
public static ErrorMessageFactory shouldBeBefore(Object actual, Object other, ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeBefore.

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.

shouldBeBeforeback to summary
public static ErrorMessageFactory shouldBeBefore(Object actual, Object other)

Creates a new ShouldBeBefore.

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.