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

public Class ShouldBeEqualIgnoringNanos

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.time.LocalDateTime, .LocalTime, .OffsetTime, .ZonedDateTime

Creates an error message indicating that an assertion that verifies that :
Author
Joel Costigliola

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private
private

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ShouldBeEqualIgnoringNanos.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeEqualIgnoringNanos
(LocalTime
the actual LocalTime in the failed assertion.
actual
,
LocalTime
the LocalTime used in the failed assertion to compare the actual LocalTime to.
other
)

Creates a new ShouldBeEqualIgnoringNanos.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeEqualIgnoringNanos
(OffsetTime
the actual OffsetTime in the failed assertion.
actual
,
OffsetTime
the OffsetTime used in the failed assertion to compare the actual OffsetTime to.
other
)

Creates a new ShouldBeEqualIgnoringNanos.

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

Constructor Detail

ShouldBeEqualIgnoringNanosback to summary
private ShouldBeEqualIgnoringNanos(Object actual, Object other)
ShouldBeEqualIgnoringNanosback to summary
private ShouldBeEqualIgnoringNanos(LocalTime actual, LocalTime other)
ShouldBeEqualIgnoringNanosback to summary
private ShouldBeEqualIgnoringNanos(OffsetTime actual, OffsetTime other)

Method Detail

shouldBeEqualIgnoringNanosback to summary
public static ErrorMessageFactory shouldBeEqualIgnoringNanos(Object actual, Object other)

Creates a new ShouldBeEqualIgnoringNanos.

Parameters
actual:Object

the actual value in the failed assertion.

other:Object

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

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeEqualIgnoringNanosback to summary
public static ErrorMessageFactory shouldBeEqualIgnoringNanos(LocalTime actual, LocalTime other)

Creates a new ShouldBeEqualIgnoringNanos.

Parameters
actual:LocalTime

the actual LocalTime in the failed assertion.

other:LocalTime

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

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeEqualIgnoringNanosback to summary
public static ErrorMessageFactory shouldBeEqualIgnoringNanos(OffsetTime actual, OffsetTime other)

Creates a new ShouldBeEqualIgnoringNanos.

Parameters
actual:OffsetTime

the actual OffsetTime in the failed assertion.

other:OffsetTime

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

Returns:ErrorMessageFactory

the created ErrorMessageFactory.