org.qi4j.test.value
Class AbstractJsonDateFormatTest

java.lang.Object
  extended by org.qi4j.test.AbstractQi4jBaseTest
      extended by org.qi4j.test.AbstractQi4jTest
          extended by org.qi4j.test.value.AbstractJsonDateFormatTest
All Implemented Interfaces:
Assembler

public class AbstractJsonDateFormatTest
extends AbstractQi4jTest

Assert that a JSON ValueDeserializer support various date formats.


Field Summary
protected  ValueDeserializer valueDeserializer
           
 
Fields inherited from class org.qi4j.test.AbstractQi4jTest
module
 
Fields inherited from class org.qi4j.test.AbstractQi4jBaseTest
api, application, applicationModel, qi4j, spi
 
Constructor Summary
AbstractJsonDateFormatTest()
           
 
Method Summary
 void assemble(ModuleAssembly module)
          Assemblers receive a callback to the ModuleAssembly they are supposed to configure.
 void before()
           
 void givenAtDateFormatWhenConvertingFromSerializedStateExpectValidDate()
           
 void givenISO6801DateFormatWhenConvertingFromSerializedStateExpectValidDate()
           
 void givenMicrosoftDateFormatWhenConvertingFromSerializedStateExpectValidDate()
           
 
Methods inherited from class org.qi4j.test.AbstractQi4jTest
defineApplication, setUp, tearDown
 
Methods inherited from class org.qi4j.test.AbstractQi4jBaseTest
assemblyException, getLog, initApplication, newApplication, newApplicationInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueDeserializer

@Service
protected ValueDeserializer valueDeserializer
Constructor Detail

AbstractJsonDateFormatTest

public AbstractJsonDateFormatTest()
Method Detail

assemble

public void assemble(ModuleAssembly module)
              throws AssemblyException
Description copied from interface: Assembler
Assemblers receive a callback to the ModuleAssembly they are supposed to configure. They can use this to register objects, composites, services etc. and the additional metadata that may exist for these artifacts.

An Assembler may create new Modules by calling ModuleAssembly.layer() and then LayerAssembly.module(String) (String)}. This allows an Assembler to bootstrap an entire Layer with more Modules.

Parameters:
module - the Module to assemble
Throws:
AssemblyException - thrown if the assembler tries to do something illegal

before

public void before()

givenISO6801DateFormatWhenConvertingFromSerializedStateExpectValidDate

public void givenISO6801DateFormatWhenConvertingFromSerializedStateExpectValidDate()
                                                                            throws java.lang.Exception
Throws:
java.lang.Exception

givenAtDateFormatWhenConvertingFromSerializedStateExpectValidDate

public void givenAtDateFormatWhenConvertingFromSerializedStateExpectValidDate()
                                                                       throws java.lang.Exception
Throws:
java.lang.Exception

givenMicrosoftDateFormatWhenConvertingFromSerializedStateExpectValidDate

public void givenMicrosoftDateFormatWhenConvertingFromSerializedStateExpectValidDate()
                                                                              throws java.lang.Exception
Throws:
java.lang.Exception