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

public Class ShouldBeEqualIgnoringTimezone

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.time.OffsetDateTime, .OffsetTime

Creates an error message indicating that an assertion that verifies that two java.time.OffsetTime have same time fields except the timezone.
Author
Alexander Bischof

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.
shouldBeEqualIgnoringTimezone
(OffsetTime
the actual value in the failed assertion.
actual
,
OffsetTime
the value used in the failed assertion to compare the actual value to.
other
)

Creates a new ShouldBeEqualIgnoringTimezone.

public static ErrorMessageFactory

Returns:

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

Creates a new ShouldBeEqualIgnoringTimezone.

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

Constructor Detail

ShouldBeEqualIgnoringTimezoneback to summary
private ShouldBeEqualIgnoringTimezone(Object actual, Object other)

Method Detail

shouldBeEqualIgnoringTimezoneback to summary
public static ErrorMessageFactory shouldBeEqualIgnoringTimezone(OffsetTime actual, OffsetTime other)

Creates a new ShouldBeEqualIgnoringTimezone.

Parameters
actual:OffsetTime

the actual value in the failed assertion.

other:OffsetTime

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

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeEqualIgnoringTimezoneback to summary
public static ErrorMessageFactory shouldBeEqualIgnoringTimezone(OffsetDateTime actual, OffsetDateTime other)

Creates a new ShouldBeEqualIgnoringTimezone.

Parameters
actual:OffsetDateTime

the actual value in the failed assertion.

other:OffsetDateTime

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

Returns:ErrorMessageFactory

the created ErrorMessageFactory.