Class ShouldHaveTime

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldHaveTime
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a date have a certain timestamp.
    Author:
    Guillaume Girou, Nicolas François, Joel Costigliola
    • Method Detail

      • shouldHaveTime

        public static ErrorMessageFactory shouldHaveTime​(java.util.Date actual,
                                                         long expectedTimestamp)
        Creates a new ShouldHaveTime.
        Parameters:
        actual - the actual value in the failed assertion.
        actualTimestamp - the timestamp of actual.
        expectedTimestamp - the expected timestamp.
        Returns:
        the created ErrorMessageFactory.