org.unitils.jodatime
Class JodaTimeModule

java.lang.Object
  extended by 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:

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

Nested Class Summary
protected  class JodaTimeModule.DateTimeModuleListener
           
 
Constructor Summary
JodaTimeModule()
           
 
Method Summary
 void afterInit()
           
protected  long calculateFixedMillis(FixedDateTime fixedDateTime)
           
protected  long calculateOffsetMillis(OffsetDateTime offsetDateTime)
           
protected  void changeDate(FixedDateTime dateTime)
           
protected  void changeDate(OffsetDateTime dateTime)
           
 org.unitils.core.TestListener getTestListener()
           
 void init(Properties configuration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JodaTimeModule

public JodaTimeModule()
Method Detail

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

changeDate

protected void changeDate(FixedDateTime dateTime)

changeDate

protected void changeDate(OffsetDateTime dateTime)

calculateFixedMillis

protected long calculateFixedMillis(FixedDateTime fixedDateTime)

calculateOffsetMillis

protected long calculateOffsetMillis(OffsetDateTime offsetDateTime)

getTestListener

public org.unitils.core.TestListener getTestListener()
Specified by:
getTestListener in interface org.unitils.core.Module


Copyright © 2013-2015. All Rights Reserved.