org.fest.assertions.error
Class ShouldHaveTime
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.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
shouldHaveTime
public static ErrorMessageFactory shouldHaveTime(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.
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.