* @author Nicolas Morel
*/
public class GwtJacksonTestSuite extends TestCase {
public static Test suite() {
GWTTestSuite suite = new GWTTestSuite();
// Stream - tests from gson
suite.addTestSuite( DefaultJsonReaderTest.class );
suite.addTestSuite( NonBufferedJsonReaderTest.class );
suite.addTestSuite( DefaultJsonWriterTest.class );
suite.addTestSuite( FastJsonWriterTest.class );
// Default json serializers
suite.addTestSuite( ArrayJsonSerializerTest.class );
suite.addTestSuite( ByteArrayJsonSerializerTest.class );
suite.addTestSuite( ByteArray2dJsonSerializerTest.class );
suite.addTestSuite( BigDecimalJsonSerializerTest.class );
suite.addTestSuite( BigIntegerJsonSerializerTest.class );
suite.addTestSuite( BooleanJsonSerializerTest.class );
suite.addTestSuite( ByteJsonSerializerTest.class );
suite.addTestSuite( CharacterJsonSerializerTest.class );
suite.addTestSuite( CollectionJsonSerializerTest.class );
suite.addTestSuite( DateJsonSerializerTest.class );
suite.addTestSuite( DoubleJsonSerializerTest.class );
suite.addTestSuite( EnumJsonSerializerTest.class );
suite.addTestSuite( FloatJsonSerializerTest.class );
suite.addTestSuite( IntegerJsonSerializerTest.class );
suite.addTestSuite( IterableJsonSerializerTest.class );
suite.addTestSuite( ListJsonSerializerTest.class );
suite.addTestSuite( LongJsonSerializerTest.class );
suite.addTestSuite( SetJsonSerializerTest.class );
suite.addTestSuite( ShortJsonSerializerTest.class );
suite.addTestSuite( SqlDateJsonSerializerTest.class );
suite.addTestSuite( SqlTimeJsonSerializerTest.class );
suite.addTestSuite( SqlTimestampJsonSerializerTest.class );
suite.addTestSuite( StringJsonSerializerTest.class );
suite.addTestSuite( UUIDJsonSerializerTest.class );
suite.addTestSuite( VoidJsonSerializerTest.class );
// Default key serializers
suite.addTestSuite( BooleanKeySerializerTest.class );
suite.addTestSuite( CharacterKeySerializerTest.class );
suite.addTestSuite( DateKeySerializerTest.class );
suite.addTestSuite( EnumKeySerializerTest.class );
suite.addTestSuite( SqlDateKeySerializerTest.class );
suite.addTestSuite( SqlTimeKeySerializerTest.class );
suite.addTestSuite( SqlTimestampKeySerializerTest.class );
suite.addTestSuite( StringKeySerializerTest.class );
suite.addTestSuite( UUIDKeySerializerTest.class );
suite.addTestSuite( BigDecimalKeySerializerTest.class );
suite.addTestSuite( BigIntegerKeySerializerTest.class );
suite.addTestSuite( ByteKeySerializerTest.class );
suite.addTestSuite( DoubleKeySerializerTest.class );
suite.addTestSuite( FloatKeySerializerTest.class );
suite.addTestSuite( IntegerKeySerializerTest.class );
suite.addTestSuite( LongKeySerializerTest.class );
suite.addTestSuite( ShortKeySerializerTest.class );
// Default deserializers
suite.addTestSuite( ArrayJsonDeserializerTest.class );
suite.addTestSuite( ByteArrayJsonDeserializerTest.class );
suite.addTestSuite( ByteArray2dJsonDeserializerTest.class );
suite.addTestSuite( BigDecimalJsonDeserializerTest.class );
suite.addTestSuite( BigIntegerJsonDeserializerTest.class );
suite.addTestSuite( BooleanJsonDeserializerTest.class );
suite.addTestSuite( ByteJsonDeserializerTest.class );
suite.addTestSuite( CharacterJsonDeserializerTest.class );
suite.addTestSuite( CollectionJsonDeserializerTest.class );
suite.addTestSuite( DateJsonDeserializerTest.class );
suite.addTestSuite( DoubleJsonDeserializerTest.class );
suite.addTestSuite( EnumJsonDeserializerTest.class );
suite.addTestSuite( FloatJsonDeserializerTest.class );
suite.addTestSuite( IntegerJsonDeserializerTest.class );
suite.addTestSuite( IterableJsonDeserializerTest.class );
suite.addTestSuite( ListJsonDeserializerTest.class );
suite.addTestSuite( LongJsonDeserializerTest.class );
suite.addTestSuite( SetJsonDeserializerTest.class );
suite.addTestSuite( ShortJsonDeserializerTest.class );
suite.addTestSuite( SqlDateJsonDeserializerTest.class );
suite.addTestSuite( SqlTimeJsonDeserializerTest.class );
suite.addTestSuite( SqlTimestampJsonDeserializerTest.class );
suite.addTestSuite( StringJsonDeserializerTest.class );
suite.addTestSuite( UUIDJsonDeserializerTest.class );
suite.addTestSuite( VoidJsonDeserializerTest.class );
// Default key deserializers
suite.addTestSuite( BooleanKeyDeserializerTest.class );
suite.addTestSuite( CharacterKeyDeserializerTest.class );
suite.addTestSuite( DateKeyDeserializerTest.class );
suite.addTestSuite( EnumKeyDeserializerTest.class );
suite.addTestSuite( SqlDateKeyDeserializerTest.class );
suite.addTestSuite( SqlTimeKeyDeserializerTest.class );
suite.addTestSuite( SqlTimestampKeyDeserializerTest.class );
suite.addTestSuite( StringKeyDeserializerTest.class );
suite.addTestSuite( UUIDKeyDeserializerTest.class );
suite.addTestSuite( BigDecimalKeyDeserializerTest.class );
suite.addTestSuite( BigIntegerKeyDeserializerTest.class );
suite.addTestSuite( ByteKeyDeserializerTest.class );
suite.addTestSuite( DoubleKeyDeserializerTest.class );
suite.addTestSuite( FloatKeyDeserializerTest.class );
suite.addTestSuite( IntegerKeyDeserializerTest.class );
suite.addTestSuite( LongKeyDeserializerTest.class );
suite.addTestSuite( ShortKeyDeserializerTest.class );
// Mappers
suite.addTestSuite( SimpleBeanObjectReaderTest.class );
suite.addTestSuite( SimpleBeanObjectWriterTest.class );
suite.addTestSuite( AllCollectionsObjectMapperTest.class );
suite.addTestSuite( AllMapsObjectMapperTest.class );
suite.addTestSuite( CommonJsonMapperTest.class );
suite.addTestSuite( IgnoreStaticGwtTest.class );
suite.addTestSuite( CustomIterableGwtTest.class );
suite.addTestSuite( PropertyNamingGwtTest.class );
suite.addTestSuite( ErrorGwtTest.class );
// Annotations test
suite.addTestSuite( JsonAutoDetectGwtTest.class );
suite.addTestSuite( JsonPropertyOrderGwtTest.class );
suite.addTestSuite( JsonIgnoreGwtTest.class );
suite.addTestSuite( JsonCreatorGwtTest.class );
suite.addTestSuite( JsonIgnoreTypeGwtTest.class );
suite.addTestSuite( JsonManagedAndBackReferenceGwtTest.class );
suite.addTestSuite( JsonRootNameGwtTest.class );
suite.addTestSuite( JsonRawValueGwtTest.class );
suite.addTestSuite( JsonFormatGwtTest.class );
// Advanced use cases
suite.addTestSuite( ProxyAndAnonymousClassSerializationGwtTest.class );
suite.addTestSuite( PrivateAccessGwtTest.class );
suite.addTestSuite( InheritanceGwtTest.class );
suite.addTestSuite( GenericsGwtTest.class );
suite.addTestSuite( GenericsAndInheritanceGwtTest.class );
suite.addTestSuite( WildcardGwtTest.class );
suite.addTestSuite( ObjectGwtTest.class );
// Polymorphism
suite.addTestSuite( PolymorphismNoTypeInfoGwtTest.class );
suite.addTestSuite( PolymorphismIdClassAsPropertyGwtTest.class );
suite.addTestSuite( PolymorphismIdMinimalClassAsWrapperArrayGwtTest.class );
suite.addTestSuite( PolymorphismIdNameAsWrapperObjectGwtTest.class );
suite.addTestSuite( JsonTypeWithGenericsGwtTest.class );
suite.addTestSuite( JsonTypeOnPropertiesGwtTest.class );
suite.addTestSuite( JsonTypeOnParametersGwtTest.class );
suite.addTestSuite( TypeNamesGwtTest.class );
suite.addTestSuite( VisibleTypeIdGwtTest.class );
suite.addTestSuite( JsonTypeWithEnumGwtTest.class );
// Identity
suite.addTestSuite( ObjectIdGwtTest.class );
suite.addTestSuite( ObjectIdDeserializationGwtTest.class );
suite.addTestSuite( ObjectIdSerializationGwtTest.class );
suite.addTestSuite( ObjectIdWithPolymorphicGwtTest.class );
suite.addTestSuite( ObjectIdWithEqualsGwtTest.class );
// Options
suite.addTestSuite( IndentGwtTest.class );
suite.addTestSuite( DateOptionsGwtTest.class );
suite.addTestSuite( CharArrayOptionGwtTest.class );
suite.addTestSuite( WriteNullMapValuesOptionGwtTest.class );
suite.addTestSuite( WriteEmptyJsonArraysOptionGwtTest.class );
suite.addTestSuite( SingleArrayOptionGwtTest.class );
// Mix-in
suite.addTestSuite( MixinDeserForClassGwtTest.class );
suite.addTestSuite( MixinDeserForCreatorsGwtTest.class );
suite.addTestSuite( MixinInheritanceGwtTest.class );
suite.addTestSuite( MixinSerForFieldsGwtTest.class );
suite.addTestSuite( MixinSerForMethodsGwtTest.class );
return suite;
}