
fitnesse.fixtures.ClockFixture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitnesse Show documentation
Show all versions of fitnesse Show documentation
The fully integrated standalone wiki, and acceptance testing framework.
package fitnesse.fixtures;
import java.text.ParseException;
import fitnesse.util.Clock;
import fitnesse.util.DateAlteringClock;
import fitnesse.util.DateTimeUtil;
public class ClockFixture {
public void freezeClockAt(String dateTime) throws ParseException {
System.out.println("Freezing time at " + dateTime);
new DateAlteringClock(DateTimeUtil.getDateFromString(dateTime)).freeze();
}
public String simulationDate() {
return DateTimeUtil.formatDate(Clock.currentDate());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy