Class AbstractJsonFactoryTest (1.42.3)

Stay organized with collections Save and categorize content based on your preferences.
public abstract class AbstractJsonFactoryTest extends TestCase

Abstract test case for testing a JsonFactory.

Inheritance

java.lang.Object > junit.framework.Assert > junit.framework.TestCase > AbstractJsonFactoryTest

Static Fields

ANIMAL_WITHOUT_TYPE

public static final String ANIMAL_WITHOUT_TYPE
Field Value
TypeDescription
String

BOOLEAN_TYPE_EMPTY

public static final String BOOLEAN_TYPE_EMPTY
Field Value
TypeDescription
String

BOOLEAN_TYPE_EMPTY_OUTPUT

public static final String BOOLEAN_TYPE_EMPTY_OUTPUT
Field Value
TypeDescription
String

BOOLEAN_TYPE_FALSE

public static final String BOOLEAN_TYPE_FALSE
Field Value
TypeDescription
String

BOOLEAN_TYPE_NULL

public static final String BOOLEAN_TYPE_NULL
Field Value
TypeDescription
String

BOOLEAN_TYPE_NULL_OUTPUT

public static final String BOOLEAN_TYPE_NULL_OUTPUT
Field Value
TypeDescription
String

BOOLEAN_TYPE_TRUE

public static final String BOOLEAN_TYPE_TRUE
Field Value
TypeDescription
String

BOOLEAN_TYPE_WRONG

public static final String BOOLEAN_TYPE_WRONG
Field Value
TypeDescription
String

CENTIPEDE

public static final String CENTIPEDE
Field Value
TypeDescription
String

CENTIPEDE_EXTRA_INFO

public static final String CENTIPEDE_EXTRA_INFO
Field Value
TypeDescription
String

CENTIPEDE_OPTIMIZED

public static final String CENTIPEDE_OPTIMIZED
Field Value
TypeDescription
String

DOG

public static final String DOG
Field Value
TypeDescription
String

DOG_EXTRA_INFO

public static final String DOG_EXTRA_INFO
Field Value
TypeDescription
String

DOG_EXTRA_INFO_ORDERED

public static final String DOG_EXTRA_INFO_ORDERED
Field Value
TypeDescription
String

DOG_OPTIMIZED

public static final String DOG_OPTIMIZED
Field Value
TypeDescription
String

DOG_WITH_FAMILY

public static final String DOG_WITH_FAMILY
Field Value
TypeDescription
String

DOG_WITH_NO_FAMILY

public static final String DOG_WITH_NO_FAMILY
Field Value
TypeDescription
String

DOG_WITH_NO_FAMILY_PARSED

public static final String DOG_WITH_NO_FAMILY_PARSED
Field Value
TypeDescription
String

HUMAN

public static final String HUMAN
Field Value
TypeDescription
String

HUMAN_WITH_PETS

public static final String HUMAN_WITH_PETS
Field Value
TypeDescription
String

HUMAN_WITH_PETS_PARSED

public static final String HUMAN_WITH_PETS_PARSED
Field Value
TypeDescription
String

MULTIPLE_ANNOTATIONS_JSON

public static final String MULTIPLE_ANNOTATIONS_JSON
Field Value
TypeDescription
String

POLYMORPHIC_NUMERIC_TYPE_1

public static final String POLYMORPHIC_NUMERIC_TYPE_1
Field Value
TypeDescription
String

POLYMORPHIC_NUMERIC_TYPE_2

public static final String POLYMORPHIC_NUMERIC_TYPE_2
Field Value
TypeDescription
String

POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE

public static final String POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE
Field Value
TypeDescription
String

POLYMORPHIC_SELF_REFERENCING

public static final String POLYMORPHIC_SELF_REFERENCING
Field Value
TypeDescription
String

POLYMORPHIC_WITH_UNKNOWN_KEY

public static final String POLYMORPHIC_WITH_UNKNOWN_KEY
Field Value
TypeDescription
String

Constructors

AbstractJsonFactoryTest(String name)

public AbstractJsonFactoryTest(String name)
Parameter
NameDescription
nameString

Methods

newFactory()

protected abstract JsonFactory newFactory()
Returns
TypeDescription
JsonFactory

subtestParse_void(String value)

public void subtestParse_void(String value)
Parameter
NameDescription
valueString
Exceptions
TypeDescription
Exception

testCreateJsonParser_nullCharset()

public final void testCreateJsonParser_nullCharset()
Exceptions
TypeDescription
Exception

testCurrentToken()

public void testCurrentToken()
Exceptions
TypeDescription
Exception

testFactory()

public void testFactory()

testGenerateEntry()

public final void testGenerateEntry()
Exceptions
TypeDescription
Exception

testGenerateFeed()

public final void testGenerateFeed()
Exceptions
TypeDescription
Exception

testGenerate_infinityOrNanError()

public final void testGenerate_infinityOrNanError()
Exceptions
TypeDescription
Exception

testGson()

public final void testGson()
Exceptions
TypeDescription
Exception

testJsonHttpContent_simple()

public void testJsonHttpContent_simple()
Exceptions
TypeDescription
Exception

testJsonHttpContent_wrapped()

public void testJsonHttpContent_wrapped()
Exceptions
TypeDescription
Exception

testJsonObjectParser_inputStream()

public void testJsonObjectParser_inputStream()
Exceptions
TypeDescription
Exception

testJsonObjectParser_inputStreamWrapped()

public void testJsonObjectParser_inputStreamWrapped()
Exceptions
TypeDescription
Exception

testJsonObjectParser_reader()

public void testJsonObjectParser_reader()
Exceptions
TypeDescription
Exception

testJsonObjectParser_readerWrapped()

public void testJsonObjectParser_readerWrapped()
Exceptions
TypeDescription
Exception

testNextToken()

public void testNextToken()
Exceptions
TypeDescription
Exception

testObjectParserParse_entry()

public void testObjectParserParse_entry()
Exceptions
TypeDescription
Exception

testObjectParserParse_stringList()

public void testObjectParserParse_stringList()
Exceptions
TypeDescription
Exception

testParse()

public void testParse()
Exceptions
TypeDescription
Exception

testParseEntry()

public void testParseEntry()
Exceptions
TypeDescription
Exception

testParseEntryAsMap()

public void testParseEntryAsMap()
Exceptions
TypeDescription
Exception

testParseFeed()

public void testParseFeed()
Exceptions
TypeDescription
Exception

testParse_array()

public final void testParse_array()
Exceptions
TypeDescription
Exception

testParse_boolean()

public void testParse_boolean()
Exceptions
TypeDescription
Exception

testParse_class()

public final void testParse_class()
Exceptions
TypeDescription
Exception

testParse_empty()

public void testParse_empty()
Exceptions
TypeDescription
Exception

testParse_emptyGenericJson()

public void testParse_emptyGenericJson()
Exceptions
TypeDescription
Exception

testParse_emptyMap()

public void testParse_emptyMap()
Exceptions
TypeDescription
Exception

testParse_void()

public void testParse_void()
Exceptions
TypeDescription
Exception

testParser_anyType()

public void testParser_anyType()
Exceptions
TypeDescription
Exception

testParser_arrayType()

public void testParser_arrayType()
Exceptions
TypeDescription
Exception

testParser_bool()

public void testParser_bool()
Exceptions
TypeDescription
Exception

testParser_collectionType()

public void testParser_collectionType()
Exceptions
TypeDescription
Exception

testParser_doubleListTypeVariableType()

public void testParser_doubleListTypeVariableType()
Exceptions
TypeDescription
Exception

testParser_emptyArray()

public void testParser_emptyArray()
Exceptions
TypeDescription
Exception

testParser_enumValue()

public void testParser_enumValue()
Exceptions
TypeDescription
Exception

testParser_extendsGenericJson()

public void testParser_extendsGenericJson()
Exceptions
TypeDescription
Exception

testParser_floatMapTypeVariableType()

public void testParser_floatMapTypeVariableType()
Exceptions
TypeDescription
Exception

testParser_hashmapForMapType()

public void testParser_hashmapForMapType()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_genericJson()

public void testParser_heterogeneousSchema_genericJson()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_illegalValueType()

public void testParser_heterogeneousSchema_illegalValueType()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_missingType()

public void testParser_heterogeneousSchema_missingType()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_numericType()

public void testParser_heterogeneousSchema_numericType()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_numericValueType()

public void testParser_heterogeneousSchema_numericValueType()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_withArrays()

public void testParser_heterogeneousSchema_withArrays()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_withNullArrays()

public void testParser_heterogeneousSchema_withNullArrays()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchema_withObject()

public void testParser_heterogeneousSchema_withObject()
Exceptions
TypeDescription
Exception

testParser_heterogeneousSchemata()

public void testParser_heterogeneousSchemata()
Exceptions
TypeDescription
Exception

testParser_intArray()

public void testParser_intArray()
Exceptions
TypeDescription
Exception

testParser_intArrayTypeVariableType()

public void testParser_intArrayTypeVariableType()
Exceptions
TypeDescription
Exception

testParser_integerTypeVariableType()

public void testParser_integerTypeVariableType()
Exceptions
TypeDescription
Exception

testParser_mapType()

public void testParser_mapType()
Exceptions
TypeDescription
Exception

testParser_null()

public void testParser_null()
Exceptions
TypeDescription
Exception

testParser_nullInputStream()

public void testParser_nullInputStream()
Exceptions
TypeDescription
Exception

testParser_nullReader()

public void testParser_nullReader()
Exceptions
TypeDescription
Exception

testParser_nullString()

public void testParser_nullString()
Exceptions
TypeDescription
Exception

testParser_nullValue()

public void testParser_nullValue()
Exceptions
TypeDescription
Exception

testParser_num()

public void testParser_num()
Exceptions
TypeDescription
Exception

testParser_numberTypes()

public void testParser_numberTypes()
Exceptions
TypeDescription
Exception

testParser_partialEmpty()

public void testParser_partialEmpty()
Exceptions
TypeDescription
Exception

testParser_partialEmptyArray()

public void testParser_partialEmptyArray()
Exceptions
TypeDescription
Exception

testParser_partialEntry()

public void testParser_partialEntry()
Exceptions
TypeDescription
Exception

testParser_polymorphicClass_duplicateTypeKeys()

public void testParser_polymorphicClass_duplicateTypeKeys()
Exceptions
TypeDescription
Exception

testParser_polymorphicClass_mapOfPolymorphicClasses()

public void testParser_polymorphicClass_mapOfPolymorphicClasses()
Exceptions
TypeDescription
Exception

testParser_polymorphicClass_noMatchingTypeKey()

public void testParser_polymorphicClass_noMatchingTypeKey()
Exceptions
TypeDescription
Exception

testParser_polymorphicClass_selfReferencing()

public void testParser_polymorphicClass_selfReferencing()
Exceptions
TypeDescription
Exception

testParser_polymorphicClass_tooManyAnnotations()

public void testParser_polymorphicClass_tooManyAnnotations()
Exceptions
TypeDescription
Exception

testParser_string()

public void testParser_string()
Exceptions
TypeDescription
Exception

testParser_stringArray()

public void testParser_stringArray()
Exceptions
TypeDescription
Exception

testParser_treemapForTypeVariableType()

public void testParser_treemapForTypeVariableType()
Exceptions
TypeDescription
Exception

testParser_typeVariablesPassAround()

public void testParser_typeVariablesPassAround()
Exceptions
TypeDescription
Exception

testParser_wildCardType()

public void testParser_wildCardType()
Exceptions
TypeDescription
Exception

testSkipChildren_array()

public void testSkipChildren_array()
Exceptions
TypeDescription
Exception

testSkipChildren_object()

public void testSkipChildren_object()
Exceptions
TypeDescription
Exception

testSkipChildren_string()

public void testSkipChildren_string()
Exceptions
TypeDescription
Exception

testSkipToKey_firstKey()

public void testSkipToKey_firstKey()
Exceptions
TypeDescription
Exception

testSkipToKey_found()

public void testSkipToKey_found()
Exceptions
TypeDescription
Exception

testSkipToKey_lastKey()

public void testSkipToKey_lastKey()
Exceptions
TypeDescription
Exception

testSkipToKey_missing()

public void testSkipToKey_missing()
Exceptions
TypeDescription
Exception

testSkipToKey_missingEmpty()

public void testSkipToKey_missingEmpty()
Exceptions
TypeDescription
Exception

testSkipToKey_multipleKeys()

public void testSkipToKey_multipleKeys()
Exceptions
TypeDescription
Exception

testSkipToKey_noMatch()

public void testSkipToKey_noMatch()
Exceptions
TypeDescription
Exception

testSkipToKey_startWithFieldName()

public void testSkipToKey_startWithFieldName()
Exceptions
TypeDescription
Exception

testToByteArray_entry()

public final void testToByteArray_entry()
Exceptions
TypeDescription
Exception