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

public Class ShouldBeInSameMinuteWindow

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

Creates an error message indicating that an assertion that verifies that a Date is in minute window as another one failed.
Author
Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ShouldBeInSameMinuteWindow.

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

Constructor Detail

ShouldBeInSameMinuteWindowback to summary
private ShouldBeInSameMinuteWindow(Date actual, Date other)

Method Detail

shouldBeInSameMinuteWindowback to summary
public static ErrorMessageFactory shouldBeInSameMinuteWindow(Date actual, Date other)

Creates a new ShouldBeInSameMinuteWindow.

Parameters
actual:Date

the actual value in the failed assertion.

other:Date

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

Returns:ErrorMessageFactory

the created ErrorMessageFactory.