Class 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
    • Constructor Detail

      • ShouldHaveSameTime

        private ShouldHaveSameTime​(Date actual,
                                   Date expected)
    • Method Detail

      • 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.