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 Details

    • shouldHaveTime

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