Class ShouldBeEqualIgnoringTimezone

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeEqualIgnoringTimezone
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that two OffsetTime have same time fields except the timezone.
    • Constructor Detail

      • ShouldBeEqualIgnoringTimezone

        private ShouldBeEqualIgnoringTimezone​(java.lang.Object actual,
                                              java.lang.Object other)
    • Method Detail

      • shouldBeEqualIgnoringTimezone

        public static ErrorMessageFactory shouldBeEqualIgnoringTimezone​(java.time.OffsetTime actual,
                                                                        java.time.OffsetTime other)
        Parameters:
        actual - the actual value in the failed assertion.
        other - the value used in the failed assertion to compare the actual value to.
        Returns:
        the created ErrorMessageFactory.
      • shouldBeEqualIgnoringTimezone

        public static ErrorMessageFactory shouldBeEqualIgnoringTimezone​(java.time.OffsetDateTime actual,
                                                                        java.time.OffsetDateTime other)
        Parameters:
        actual - the actual value in the failed assertion.
        other - the value used in the failed assertion to compare the actual value to.
        Returns:
        the created ErrorMessageFactory.