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

public Class ShouldBeInThePast

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.time.temporal.Temporal, java.util.Date, org.assertj.core.internal.ComparisonStrategy, .StandardComparisonStrategy

Creates an error message indicating that an assertion that verifies that a Date or a Temporal is in the past failed.
Authors
Joel Costigliola, Stefan Bratanov

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldBeInThePast(Date actual, ComparisonStrategy comparisonStrategy)

private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeInThePast
(Date
the actual value in the failed assertion.
actual
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldBeInThePast.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeInThePast
(Date
the actual value in the failed assertion.
actual
)

Creates a new ShouldBeInThePast.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeInThePast
(Temporal
the actual value in the failed assertion.
actual
)

Creates a new ShouldBeInThePast.

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

Constructor Detail

ShouldBeInThePastback to summary
private ShouldBeInThePast(Date actual, ComparisonStrategy comparisonStrategy)
ShouldBeInThePastback to summary
private ShouldBeInThePast(Temporal actual)

Method Detail

shouldBeInThePastback to summary
public static ErrorMessageFactory shouldBeInThePast(Date actual, ComparisonStrategy comparisonStrategy)

Creates a new ShouldBeInThePast.

Parameters
actual:Date

the actual value in the failed assertion.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeInThePastback to summary
public static ErrorMessageFactory shouldBeInThePast(Date actual)

Creates a new ShouldBeInThePast.

Parameters
actual:Date

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeInThePastback to summary
public static ErrorMessageFactory shouldBeInThePast(Temporal actual)

Creates a new ShouldBeInThePast.

Parameters
actual:Temporal

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.