Class ShouldHaveSameTime

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveSameTime
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldHaveSameTime extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a date has same time as other date.
Author:
Michal Kordas
  • Method Details

    • shouldHaveSameTime

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