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

public Class ShouldHaveSameTime

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.util.Date

Creates an error message indicating that an assertion that verifies that a date has same time as other date.
Author
Michal Kordas

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
ShouldHaveSameTime(Date actual, Date expected)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldHaveSameTime
(Date
the actual value in the failed assertion.
actual
,
Date
the expected timestamp.
expected
)

Creates a new ShouldHaveSameTime.

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

Constructor Detail

ShouldHaveSameTimeback to summary
private ShouldHaveSameTime(Date actual, Date expected)

Method Detail

shouldHaveSameTimeback to summary
public static ErrorMessageFactory shouldHaveSameTime(Date actual, Date expected)

Creates a new ShouldHaveSameTime.

Parameters
actual:Date

the actual value in the failed assertion.

expected:Date

the expected timestamp.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.