public abstract class AbstractJsonFactoryTest extends TestCase
Inheritance
java.lang.Object >
junit.framework.Assert >
junit.framework.TestCase >
AbstractJsonFactoryTest
Inherited Members
junit.framework.TestCase.assertEquals(boolean,boolean)
junit.framework.TestCase.assertEquals(byte,byte)
junit.framework.TestCase.assertEquals(char,char)
junit.framework.TestCase.assertEquals(double,double,double)
junit.framework.TestCase.assertEquals(float,float,float)
junit.framework.TestCase.assertEquals(int,int)
junit.framework.TestCase.assertEquals(java.lang.Object,java.lang.Object)
junit.framework.TestCase.assertEquals(java.lang.String,boolean,boolean)
junit.framework.TestCase.assertEquals(java.lang.String,byte,byte)
junit.framework.TestCase.assertEquals(java.lang.String,char,char)
junit.framework.TestCase.assertEquals(java.lang.String,double,double,double)
junit.framework.TestCase.assertEquals(java.lang.String,float,float,float)
junit.framework.TestCase.assertEquals(java.lang.String,int,int)
junit.framework.TestCase.assertEquals(java.lang.String,java.lang.Object,java.lang.Object)
junit.framework.TestCase.assertEquals(java.lang.String,java.lang.String)
junit.framework.TestCase.assertEquals(java.lang.String,java.lang.String,java.lang.String)
junit.framework.TestCase.assertEquals(java.lang.String,long,long)
junit.framework.TestCase.assertEquals(java.lang.String,short,short)
junit.framework.TestCase.assertEquals(long,long)
junit.framework.TestCase.assertEquals(short,short)
junit.framework.TestCase.assertFalse(boolean)
junit.framework.TestCase.assertFalse(java.lang.String,boolean)
junit.framework.TestCase.assertNotNull(java.lang.Object)
junit.framework.TestCase.assertNotNull(java.lang.String,java.lang.Object)
junit.framework.TestCase.assertNotSame(java.lang.Object,java.lang.Object)
junit.framework.TestCase.assertNotSame(java.lang.String,java.lang.Object,java.lang.Object)
junit.framework.TestCase.assertNull(java.lang.Object)
junit.framework.TestCase.assertNull(java.lang.String,java.lang.Object)
junit.framework.TestCase.assertSame(java.lang.Object,java.lang.Object)
junit.framework.TestCase.assertSame(java.lang.String,java.lang.Object,java.lang.Object)
junit.framework.TestCase.assertTrue(boolean)
junit.framework.TestCase.assertTrue(java.lang.String,boolean)
junit.framework.TestCase.countTestCases()
junit.framework.TestCase.createResult()
junit.framework.TestCase.fail()
junit.framework.TestCase.fail(java.lang.String)
junit.framework.TestCase.failNotEquals(java.lang.String,java.lang.Object,java.lang.Object)
junit.framework.TestCase.failNotSame(java.lang.String,java.lang.Object,java.lang.Object)
junit.framework.TestCase.failSame(java.lang.String)
junit.framework.TestCase.format(java.lang.String,java.lang.Object,java.lang.Object)
junit.framework.TestCase.getName()
junit.framework.TestCase.run()
junit.framework.TestCase.run(junit.framework.TestResult)
junit.framework.TestCase.runBare()
junit.framework.TestCase.runTest()
junit.framework.TestCase.setName(java.lang.String)
junit.framework.TestCase.setUp()
junit.framework.TestCase.tearDown()
junit.framework.TestCase.toString()
Static 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 |
|
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 |
|
public static final String DOG_EXTRA_INFO
Field Value |
Type |
Description |
String |
|
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()
subtestParse_void(String value)
public void subtestParse_void(String value)
Parameter |
Name |
Description |
value |
String
|
testCreateJsonParser_nullCharset()
public final void testCreateJsonParser_nullCharset()
testCurrentToken()
public void testCurrentToken()
testFactory()
public void testFactory()
testGenerateEntry()
public final void testGenerateEntry()
testGenerateFeed()
public final void testGenerateFeed()
testGenerate_infinityOrNanError()
public final void testGenerate_infinityOrNanError()
testGson()
public final void testGson()
testJsonHttpContent_simple()
public void testJsonHttpContent_simple()
testJsonHttpContent_wrapped()
public void testJsonHttpContent_wrapped()
public void testJsonObjectParser_inputStream()
public void testJsonObjectParser_inputStreamWrapped()
testJsonObjectParser_reader()
public void testJsonObjectParser_reader()
testJsonObjectParser_readerWrapped()
public void testJsonObjectParser_readerWrapped()
testNextToken()
public void testNextToken()
testObjectParserParse_entry()
public void testObjectParserParse_entry()
testObjectParserParse_stringList()
public void testObjectParserParse_stringList()
testParse()
testParseEntry()
public void testParseEntry()
testParseEntryAsMap()
public void testParseEntryAsMap()
testParseFeed()
public void testParseFeed()
testParse_array()
public final void testParse_array()
testParse_boolean()
public void testParse_boolean()
testParse_class()
public final void testParse_class()
testParse_empty()
public void testParse_empty()
testParse_emptyGenericJson()
public void testParse_emptyGenericJson()
testParse_emptyMap()
public void testParse_emptyMap()
testParse_void()
public void testParse_void()
testParser_anyType()
public void testParser_anyType()
testParser_arrayType()
public void testParser_arrayType()
testParser_bool()
public void testParser_bool()
testParser_collectionType()
public void testParser_collectionType()
testParser_doubleListTypeVariableType()
public void testParser_doubleListTypeVariableType()
testParser_emptyArray()
public void testParser_emptyArray()
testParser_enumValue()
public void testParser_enumValue()
testParser_extendsGenericJson()
public void testParser_extendsGenericJson()
testParser_floatMapTypeVariableType()
public void testParser_floatMapTypeVariableType()
public void testParser_hashmapForMapType()
testParser_heterogeneousSchema_genericJson()
public void testParser_heterogeneousSchema_genericJson()
testParser_heterogeneousSchema_illegalValueType()
public void testParser_heterogeneousSchema_illegalValueType()
testParser_heterogeneousSchema_missingType()
public void testParser_heterogeneousSchema_missingType()
testParser_heterogeneousSchema_numericType()
public void testParser_heterogeneousSchema_numericType()
testParser_heterogeneousSchema_numericValueType()
public void testParser_heterogeneousSchema_numericValueType()
testParser_heterogeneousSchema_withArrays()
public void testParser_heterogeneousSchema_withArrays()
testParser_heterogeneousSchema_withNullArrays()
public void testParser_heterogeneousSchema_withNullArrays()
testParser_heterogeneousSchema_withObject()
public void testParser_heterogeneousSchema_withObject()
testParser_heterogeneousSchemata()
public void testParser_heterogeneousSchemata()
testParser_intArray()
public void testParser_intArray()
testParser_intArrayTypeVariableType()
public void testParser_intArrayTypeVariableType()
testParser_integerTypeVariableType()
public void testParser_integerTypeVariableType()
testParser_mapType()
public void testParser_mapType()
testParser_null()
public void testParser_null()
public void testParser_nullInputStream()
testParser_nullReader()
public void testParser_nullReader()
testParser_nullString()
public void testParser_nullString()
testParser_nullValue()
public void testParser_nullValue()
testParser_num()
public void testParser_num()
testParser_numberTypes()
public void testParser_numberTypes()
testParser_partialEmpty()
public void testParser_partialEmpty()
testParser_partialEmptyArray()
public void testParser_partialEmptyArray()
testParser_partialEntry()
public void testParser_partialEntry()
testParser_polymorphicClass_duplicateTypeKeys()
public void testParser_polymorphicClass_duplicateTypeKeys()
testParser_polymorphicClass_mapOfPolymorphicClasses()
public void testParser_polymorphicClass_mapOfPolymorphicClasses()
testParser_polymorphicClass_noMatchingTypeKey()
public void testParser_polymorphicClass_noMatchingTypeKey()
testParser_polymorphicClass_selfReferencing()
public void testParser_polymorphicClass_selfReferencing()
testParser_polymorphicClass_tooManyAnnotations()
public void testParser_polymorphicClass_tooManyAnnotations()
testParser_string()
public void testParser_string()
testParser_stringArray()
public void testParser_stringArray()
testParser_treemapForTypeVariableType()
public void testParser_treemapForTypeVariableType()
testParser_typeVariablesPassAround()
public void testParser_typeVariablesPassAround()
testParser_wildCardType()
public void testParser_wildCardType()
testSkipChildren_array()
public void testSkipChildren_array()
testSkipChildren_object()
public void testSkipChildren_object()
testSkipChildren_string()
public void testSkipChildren_string()
testSkipToKey_firstKey()
public void testSkipToKey_firstKey()
testSkipToKey_found()
public void testSkipToKey_found()
testSkipToKey_lastKey()
public void testSkipToKey_lastKey()
testSkipToKey_missing()
public void testSkipToKey_missing()
testSkipToKey_missingEmpty()
public void testSkipToKey_missingEmpty()
testSkipToKey_multipleKeys()
public void testSkipToKey_multipleKeys()
testSkipToKey_noMatch()
public void testSkipToKey_noMatch()
testSkipToKey_startWithFieldName()
public void testSkipToKey_startWithFieldName()
testToByteArray_entry()
public final void testToByteArray_entry()
testToFromString()
public void testToFromString()
testToFromString_UTF8()
public void testToFromString_UTF8()
testToPrettyString_FeedApproximate()
public final void testToPrettyString_FeedApproximate()
testToPrettyString_entryApproximate()
public final void testToPrettyString_entryApproximate()
testToString_Feed()
public final void testToString_Feed()
testToString_entry()
public final void testToString_entry()
testToString_withFactory()
public void testToString_withFactory()