org.qi4j.test.value
Class AbstractValueCompositeSerializationTest

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

public abstract class AbstractValueCompositeSerializationTest
extends AbstractQi4jTest

Assert that ValueSerialization behaviour on ValueComposites is correct.


Nested Class Summary
static interface AbstractValueCompositeSerializationTest.AnotherValue
           
static interface AbstractValueCompositeSerializationTest.AnotherValueInternalState
           
static class AbstractValueCompositeSerializationTest.AnotherValueMixin
           
static interface AbstractValueCompositeSerializationTest.Bar
           
static interface AbstractValueCompositeSerializationTest.BarEntity
           
static interface AbstractValueCompositeSerializationTest.CustomFooValue
           
static interface AbstractValueCompositeSerializationTest.Foo
           
static interface AbstractValueCompositeSerializationTest.FooValue
           
static interface AbstractValueCompositeSerializationTest.GenericCollection<TYPE>
           
static interface AbstractValueCompositeSerializationTest.GenericValue<TYPE>
           
static class AbstractValueCompositeSerializationTest.SerializableObject
           
static interface AbstractValueCompositeSerializationTest.SomeValue
           
static interface AbstractValueCompositeSerializationTest.SpecificCollection
           
static interface AbstractValueCompositeSerializationTest.SpecificValue
           
static class AbstractValueCompositeSerializationTest.TestEnum
           
 
Field Summary
 org.junit.rules.TestName testName
           
protected  ValueSerialization valueSerialization
           
 
Fields inherited from class org.qi4j.test.AbstractQi4jTest
module
 
Fields inherited from class org.qi4j.test.AbstractQi4jBaseTest
api, application, applicationModel, qi4j, spi
 
Constructor Summary
AbstractValueCompositeSerializationTest()
           
 
Method Summary
 void assemble(ModuleAssembly module)
          Assemblers receive a callback to the ModuleAssembly they are supposed to configure.
 void before()
           
 void givenValueCompositeWhenSerializingAndDeserializingExpectEquals()
           
 
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

testName

public org.junit.rules.TestName testName

valueSerialization

@Service
protected ValueSerialization valueSerialization
Constructor Detail

AbstractValueCompositeSerializationTest

public AbstractValueCompositeSerializationTest()
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()

givenValueCompositeWhenSerializingAndDeserializingExpectEquals

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