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

public Class ShouldHaveSameHourAs

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.time.ZonedDateTime, java.time.temporal.Temporal

Creates an error message indicating that an assertion that verifies that two ZonedDateTime have same year, month, day and hour fields 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.
shouldHaveSameHourAs
(Temporal
the actual value in the failed assertion.
actual
,
Temporal
the value used in the failed assertion to compare the actual value to.
other
)

Creates a new ShouldHaveSameHourAs.

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

Constructor Detail

ShouldHaveSameHourAsback to summary
private ShouldHaveSameHourAs(Temporal actual, Temporal other)

Method Detail

shouldHaveSameHourAsback to summary
public static ErrorMessageFactory shouldHaveSameHourAs(Temporal actual, Temporal other)

Creates a new ShouldHaveSameHourAs.

Parameters
actual:Temporal

the actual value in the failed assertion.

other:Temporal

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

Returns:ErrorMessageFactory

the created ErrorMessageFactory.