org.unitils.jodatime
Class JodaTimeModule
java.lang.Object
org.unitils.jodatime.JodaTimeModule
- All Implemented Interfaces:
- org.unitils.core.Module
public class JodaTimeModule
- extends Object
- implements org.unitils.core.Module
Module to run test with a provided datetime.
Possible uses:
- 1. time can be frozen to a specific datetime using the
FixedDateTime annotation on test class or method.
- 2. time can be an offset of the current datetime using the
OffsetDateTime annotation on test class or method.
When an annotation is used at class level it will be used by default for all its test methods. For a specific test method
- Since:
- 1.0.0
- Author:
- Christophe De Blende, Jeroen Horemans, Thomas De Rycke, Willemijn Wouters
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JodaTimeModule
public JodaTimeModule()
init
public void init(Properties configuration)
- Specified by:
init in interface org.unitils.core.Module
afterInit
public void afterInit()
- Specified by:
afterInit in interface org.unitils.core.Module
getTestListener
public org.unitils.core.TestListener getTestListener()
- Specified by:
getTestListener in interface org.unitils.core.Module
Copyright © 2013-2014. All Rights Reserved.