Class ShouldBeAtSameInstant

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeAtSameInstant
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that two OffsetDateTimes have the same Instant, failed.
    • Constructor Detail

      • ShouldBeAtSameInstant

        private ShouldBeAtSameInstant​(java.time.OffsetDateTime actual,
                                      java.time.OffsetDateTime expected)
    • Method Detail

      • shouldBeAtSameInstant

        public static ErrorMessageFactory shouldBeAtSameInstant​(java.time.OffsetDateTime actual,
                                                                java.time.OffsetDateTime other)
        Creates a new ShouldBeAtSameInstant.
        Parameters:
        actual - the actual value in the failed assertion.
        other - the expected value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.