Class ShouldBeInThePast

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeInThePast
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a Date or a Temporal is in the past failed.
    • Constructor Detail

      • ShouldBeInThePast

        private ShouldBeInThePast​(java.util.Date actual,
                                  ComparisonStrategy comparisonStrategy)
      • ShouldBeInThePast

        private ShouldBeInThePast​(java.time.temporal.Temporal actual)
    • Method Detail

      • shouldBeInThePast

        public static ErrorMessageFactory shouldBeInThePast​(java.util.Date actual)
        Creates a new ShouldBeInThePast.
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.
      • shouldBeInThePast

        public static ErrorMessageFactory shouldBeInThePast​(java.time.temporal.Temporal actual)
        Creates a new ShouldBeInThePast.
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.