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

public Class ShouldBeAtSameInstant

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.time.OffsetDateTime

Creates an error message indicating that an assertion that verifies that two OffsetDateTimes have the same java.time.Instant, failed.
Author
Raymond Pressly

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.
shouldBeAtSameInstant
(OffsetDateTime
the actual value in the failed assertion.
actual
,
OffsetDateTime
the expected value in the failed assertion.
other
)

Creates a new ShouldBeAtSameInstant.

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

Constructor Detail

ShouldBeAtSameInstantback to summary
private ShouldBeAtSameInstant(OffsetDateTime actual, OffsetDateTime expected)

Method Detail

shouldBeAtSameInstantback to summary
public static ErrorMessageFactory shouldBeAtSameInstant(OffsetDateTime actual, OffsetDateTime other)

Creates a new ShouldBeAtSameInstant.

Parameters
actual:OffsetDateTime

the actual value in the failed assertion.

other:OffsetDateTime

the expected value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.