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

public Class ShouldHaveTime

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.Date

Creates an error message indicating that an assertion that verifies that a date have a certain timestamp.
Authors
Guillaume Girou, Nicolas François, Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldHaveTime(Date actual, long expectedTimestamp)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveTime
(Date
the actual value in the failed assertion.
actual
,
long
the expected timestamp.
expectedTimestamp
)

Creates a new ShouldHaveTime.

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

Constructor Detail

ShouldHaveTimeback to summary
private ShouldHaveTime(Date actual, long expectedTimestamp)

Method Detail

shouldHaveTimeback to summary
public static ErrorMessageFactory shouldHaveTime(Date actual, long expectedTimestamp)

Creates a new ShouldHaveTime.

Parameters
actual:Date

the actual value in the failed assertion.

expectedTimestamp:long

the expected timestamp.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.