org.qi4j.test.value
Class AbstractCollectionSerializationTest

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

public class AbstractCollectionSerializationTest
extends AbstractQi4jTest

Assert that ValueSerialization behaviour on Collections and Maps is correct.


Nested Class Summary
static interface AbstractCollectionSerializationTest.SomeValue
           
 
Field Summary
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
AbstractCollectionSerializationTest()
           
 
Method Summary
 void assemble(ModuleAssembly module)
          Assemblers receive a callback to the ModuleAssembly they are supposed to configure.
 void before()
           
 void givenArrayWithByteAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithBigDecimalAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithBigIntegerAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithByteAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithCharacterAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithDoubleAndNullElementWhenSerializingExpectCorrectJsonOutput()
           
 void givenCollectionTypeWithFloatAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithIntegerAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithLongAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenCollectionTypeWithShortAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenIterableTypeWithByteAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenListOfMapStringStringAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenListOfValueCompositesAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenMapOfStringByteAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenMapOfStringListStringAndNullElementWhenSerializingAndDeserializingExpectEquals()
           
 void givenPrimitiveArrayWithIntsWhenSerializingAndDeserializingExpectEquals()
           
 void testIOString()
           
 
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

valueSerialization

@Service
protected ValueSerialization valueSerialization
Constructor Detail

AbstractCollectionSerializationTest

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

testIOString

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

givenPrimitiveArrayWithIntsWhenSerializingAndDeserializingExpectEquals

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

givenArrayWithByteAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenIterableTypeWithByteAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithByteAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithCharacterAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithShortAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithIntegerAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithLongAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithFloatAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithDoubleAndNullElementWhenSerializingExpectCorrectJsonOutput

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

givenCollectionTypeWithBigIntegerAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenCollectionTypeWithBigDecimalAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenMapOfStringByteAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenMapOfStringListStringAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenListOfMapStringStringAndNullElementWhenSerializingAndDeserializingExpectEquals

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

givenListOfValueCompositesAndNullElementWhenSerializingAndDeserializingExpectEquals

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