public abstract class AbstractJsonFactoryTest extends TestCase
Abstract test case for testing a JsonFactory.
Inheritance
java.lang.Object > junit.framework.Assert > junit.framework.TestCase > AbstractJsonFactoryTestStatic Fields
ANIMAL_WITHOUT_TYPE
public static final String ANIMAL_WITHOUT_TYPE
Field Value | |
---|---|
Type | Description |
String |
BOOLEAN_TYPE_EMPTY
public static final String BOOLEAN_TYPE_EMPTY
Field Value | |
---|---|
Type | Description |
String |
BOOLEAN_TYPE_EMPTY_OUTPUT
public static final String BOOLEAN_TYPE_EMPTY_OUTPUT
Field Value | |
---|---|
Type | Description |
String |
BOOLEAN_TYPE_FALSE
public static final String BOOLEAN_TYPE_FALSE
Field Value | |
---|---|
Type | Description |
String |
BOOLEAN_TYPE_NULL
public static final String BOOLEAN_TYPE_NULL
Field Value | |
---|---|
Type | Description |
String |
BOOLEAN_TYPE_NULL_OUTPUT
public static final String BOOLEAN_TYPE_NULL_OUTPUT
Field Value | |
---|---|
Type | Description |
String |
BOOLEAN_TYPE_TRUE
public static final String BOOLEAN_TYPE_TRUE
Field Value | |
---|---|
Type | Description |
String |
BOOLEAN_TYPE_WRONG
public static final String BOOLEAN_TYPE_WRONG
Field Value | |
---|---|
Type | Description |
String |
CENTIPEDE
public static final String CENTIPEDE
Field Value | |
---|---|
Type | Description |
String |
CENTIPEDE_EXTRA_INFO
public static final String CENTIPEDE_EXTRA_INFO
Field Value | |
---|---|
Type | Description |
String |
CENTIPEDE_OPTIMIZED
public static final String CENTIPEDE_OPTIMIZED
Field Value | |
---|---|
Type | Description |
String |
DOG
public static final String DOG
Field Value | |
---|---|
Type | Description |
String |
DOG_EXTRA_INFO
public static final String DOG_EXTRA_INFO
Field Value | |
---|---|
Type | Description |
String |
DOG_EXTRA_INFO_ORDERED
public static final String DOG_EXTRA_INFO_ORDERED
Field Value | |
---|---|
Type | Description |
String |
DOG_OPTIMIZED
public static final String DOG_OPTIMIZED
Field Value | |
---|---|
Type | Description |
String |
DOG_WITH_FAMILY
public static final String DOG_WITH_FAMILY
Field Value | |
---|---|
Type | Description |
String |
DOG_WITH_NO_FAMILY
public static final String DOG_WITH_NO_FAMILY
Field Value | |
---|---|
Type | Description |
String |
DOG_WITH_NO_FAMILY_PARSED
public static final String DOG_WITH_NO_FAMILY_PARSED
Field Value | |
---|---|
Type | Description |
String |
HUMAN
public static final String HUMAN
Field Value | |
---|---|
Type | Description |
String |
HUMAN_WITH_PETS
public static final String HUMAN_WITH_PETS
Field Value | |
---|---|
Type | Description |
String |
HUMAN_WITH_PETS_PARSED
public static final String HUMAN_WITH_PETS_PARSED
Field Value | |
---|---|
Type | Description |
String |
MULTIPLE_ANNOTATIONS_JSON
public static final String MULTIPLE_ANNOTATIONS_JSON
Field Value | |
---|---|
Type | Description |
String |
POLYMORPHIC_NUMERIC_TYPE_1
public static final String POLYMORPHIC_NUMERIC_TYPE_1
Field Value | |
---|---|
Type | Description |
String |
POLYMORPHIC_NUMERIC_TYPE_2
public static final String POLYMORPHIC_NUMERIC_TYPE_2
Field Value | |
---|---|
Type | Description |
String |
POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE
public static final String POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE
Field Value | |
---|---|
Type | Description |
String |
POLYMORPHIC_SELF_REFERENCING
public static final String POLYMORPHIC_SELF_REFERENCING
Field Value | |
---|---|
Type | Description |
String |
POLYMORPHIC_WITH_UNKNOWN_KEY
public static final String POLYMORPHIC_WITH_UNKNOWN_KEY
Field Value | |
---|---|
Type | Description |
String |
Constructors
AbstractJsonFactoryTest(String name)
public AbstractJsonFactoryTest(String name)
Parameter | |
---|---|
Name | Description |
name |
String |
Methods
newFactory()
protected abstract JsonFactory newFactory()
Returns | |
---|---|
Type | Description |
JsonFactory |
subtestParse_void(String value)
public void subtestParse_void(String value)
Parameter | |
---|---|
Name | Description |
value |
String |
Exceptions | |
---|---|
Type | Description |
Exception |
testCreateJsonParser_nullCharset()
public final void testCreateJsonParser_nullCharset()
Exceptions | |
---|---|
Type | Description |
Exception |
testCurrentToken()
public void testCurrentToken()
Exceptions | |
---|---|
Type | Description |
Exception |
testFactory()
public void testFactory()
testGenerateEntry()
public final void testGenerateEntry()
Exceptions | |
---|---|
Type | Description |
Exception |
testGenerateFeed()
public final void testGenerateFeed()
Exceptions | |
---|---|
Type | Description |
Exception |
testGenerate_infinityOrNanError()
public final void testGenerate_infinityOrNanError()
Exceptions | |
---|---|
Type | Description |
Exception |
testGson()
public final void testGson()
Exceptions | |
---|---|
Type | Description |
Exception |
testJsonHttpContent_simple()
public void testJsonHttpContent_simple()
Exceptions | |
---|---|
Type | Description |
Exception |
testJsonHttpContent_wrapped()
public void testJsonHttpContent_wrapped()
Exceptions | |
---|---|
Type | Description |
Exception |
testJsonObjectParser_inputStream()
public void testJsonObjectParser_inputStream()
Exceptions | |
---|---|
Type | Description |
Exception |
testJsonObjectParser_inputStreamWrapped()
public void testJsonObjectParser_inputStreamWrapped()
Exceptions | |
---|---|
Type | Description |
Exception |
testJsonObjectParser_reader()
public void testJsonObjectParser_reader()
Exceptions | |
---|---|
Type | Description |
Exception |
testJsonObjectParser_readerWrapped()
public void testJsonObjectParser_readerWrapped()
Exceptions | |
---|---|
Type | Description |
Exception |
testNextToken()
public void testNextToken()
Exceptions | |
---|---|
Type | Description |
Exception |
testObjectParserParse_entry()
public void testObjectParserParse_entry()
Exceptions | |
---|---|
Type | Description |
Exception |
testObjectParserParse_stringList()
public void testObjectParserParse_stringList()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse()
public void testParse()
Exceptions | |
---|---|
Type | Description |
Exception |
testParseEntry()
public void testParseEntry()
Exceptions | |
---|---|
Type | Description |
Exception |
testParseEntryAsMap()
public void testParseEntryAsMap()
Exceptions | |
---|---|
Type | Description |
Exception |
testParseFeed()
public void testParseFeed()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse_array()
public final void testParse_array()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse_boolean()
public void testParse_boolean()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse_class()
public final void testParse_class()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse_empty()
public void testParse_empty()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse_emptyGenericJson()
public void testParse_emptyGenericJson()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse_emptyMap()
public void testParse_emptyMap()
Exceptions | |
---|---|
Type | Description |
Exception |
testParse_void()
public void testParse_void()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_anyType()
public void testParser_anyType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_arrayType()
public void testParser_arrayType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_bool()
public void testParser_bool()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_collectionType()
public void testParser_collectionType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_doubleListTypeVariableType()
public void testParser_doubleListTypeVariableType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_emptyArray()
public void testParser_emptyArray()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_enumValue()
public void testParser_enumValue()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_extendsGenericJson()
public void testParser_extendsGenericJson()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_floatMapTypeVariableType()
public void testParser_floatMapTypeVariableType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_hashmapForMapType()
public void testParser_hashmapForMapType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_genericJson()
public void testParser_heterogeneousSchema_genericJson()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_illegalValueType()
public void testParser_heterogeneousSchema_illegalValueType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_missingType()
public void testParser_heterogeneousSchema_missingType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_numericType()
public void testParser_heterogeneousSchema_numericType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_numericValueType()
public void testParser_heterogeneousSchema_numericValueType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_withArrays()
public void testParser_heterogeneousSchema_withArrays()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_withNullArrays()
public void testParser_heterogeneousSchema_withNullArrays()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchema_withObject()
public void testParser_heterogeneousSchema_withObject()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_heterogeneousSchemata()
public void testParser_heterogeneousSchemata()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_intArray()
public void testParser_intArray()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_intArrayTypeVariableType()
public void testParser_intArrayTypeVariableType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_integerTypeVariableType()
public void testParser_integerTypeVariableType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_mapType()
public void testParser_mapType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_null()
public void testParser_null()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_nullInputStream()
public void testParser_nullInputStream()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_nullReader()
public void testParser_nullReader()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_nullString()
public void testParser_nullString()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_nullValue()
public void testParser_nullValue()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_num()
public void testParser_num()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_numberTypes()
public void testParser_numberTypes()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_partialEmpty()
public void testParser_partialEmpty()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_partialEmptyArray()
public void testParser_partialEmptyArray()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_partialEntry()
public void testParser_partialEntry()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_polymorphicClass_duplicateTypeKeys()
public void testParser_polymorphicClass_duplicateTypeKeys()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_polymorphicClass_mapOfPolymorphicClasses()
public void testParser_polymorphicClass_mapOfPolymorphicClasses()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_polymorphicClass_noMatchingTypeKey()
public void testParser_polymorphicClass_noMatchingTypeKey()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_polymorphicClass_selfReferencing()
public void testParser_polymorphicClass_selfReferencing()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_polymorphicClass_tooManyAnnotations()
public void testParser_polymorphicClass_tooManyAnnotations()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_string()
public void testParser_string()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_stringArray()
public void testParser_stringArray()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_treemapForTypeVariableType()
public void testParser_treemapForTypeVariableType()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_typeVariablesPassAround()
public void testParser_typeVariablesPassAround()
Exceptions | |
---|---|
Type | Description |
Exception |
testParser_wildCardType()
public void testParser_wildCardType()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipChildren_array()
public void testSkipChildren_array()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipChildren_object()
public void testSkipChildren_object()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipChildren_string()
public void testSkipChildren_string()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_firstKey()
public void testSkipToKey_firstKey()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_found()
public void testSkipToKey_found()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_lastKey()
public void testSkipToKey_lastKey()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_missing()
public void testSkipToKey_missing()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_missingEmpty()
public void testSkipToKey_missingEmpty()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_multipleKeys()
public void testSkipToKey_multipleKeys()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_noMatch()
public void testSkipToKey_noMatch()
Exceptions | |
---|---|
Type | Description |
Exception |
testSkipToKey_startWithFieldName()
public void testSkipToKey_startWithFieldName()
Exceptions | |
---|---|
Type | Description |
Exception |
testToByteArray_entry()
public final void testToByteArray_entry()
Exceptions | |
---|---|
Type | Description |
Exception |
testToFromString()
public void testToFromString()
Exceptions | |
---|---|
Type | Description |
Exception |
testToFromString_UTF8()
public void testToFromString_UTF8()
Exceptions | |
---|---|
Type | Description |
Exception |
testToPrettyString_FeedApproximate()
public final void testToPrettyString_FeedApproximate()
Exceptions | |
---|---|
Type | Description |
Exception |
testToPrettyString_entryApproximate()
public final void testToPrettyString_entryApproximate()
Exceptions | |
---|---|
Type | Description |
Exception |
testToString_Feed()
public final void testToString_Feed()
Exceptions | |
---|---|
Type | Description |
Exception |
testToString_entry()
public final void testToString_entry()
Exceptions | |
---|---|
Type | Description |
Exception |
testToString_withFactory()
public void testToString_withFactory()