public abstract class AbstractJsonFactoryTest
extends junit.framework.TestCase
JsonFactory.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANIMAL_WITHOUT_TYPE |
static java.lang.String |
BOOLEAN_TYPE_EMPTY |
static java.lang.String |
BOOLEAN_TYPE_EMPTY_OUTPUT |
static java.lang.String |
BOOLEAN_TYPE_FALSE |
static java.lang.String |
BOOLEAN_TYPE_NULL |
static java.lang.String |
BOOLEAN_TYPE_NULL_OUTPUT |
static java.lang.String |
BOOLEAN_TYPE_TRUE |
static java.lang.String |
BOOLEAN_TYPE_WRONG |
static java.lang.String |
CENTIPEDE |
static java.lang.String |
CENTIPEDE_EXTRA_INFO |
static java.lang.String |
CENTIPEDE_OPTIMIZED |
static java.lang.String |
DOG |
static java.lang.String |
DOG_EXTRA_INFO |
static java.lang.String |
DOG_EXTRA_INFO_ORDERED |
static java.lang.String |
DOG_OPTIMIZED |
static java.lang.String |
DOG_WITH_FAMILY |
static java.lang.String |
DOG_WITH_NO_FAMILY |
static java.lang.String |
DOG_WITH_NO_FAMILY_PARSED |
static java.lang.String |
HUMAN |
static java.lang.String |
HUMAN_WITH_PETS |
static java.lang.String |
HUMAN_WITH_PETS_PARSED |
static java.lang.String |
MULTIPLE_ANNOTATIONS_JSON |
static java.lang.String |
POLYMORPHIC_NUMERIC_TYPE_1 |
static java.lang.String |
POLYMORPHIC_NUMERIC_TYPE_2 |
static java.lang.String |
POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE |
static java.lang.String |
POLYMORPHIC_SELF_REFERENCING |
static java.lang.String |
POLYMORPHIC_WITH_UNKNOWN_KEY |
| Constructor and Description |
|---|
AbstractJsonFactoryTest(java.lang.String name) |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic static final java.lang.String BOOLEAN_TYPE_EMPTY
public static final java.lang.String BOOLEAN_TYPE_EMPTY_OUTPUT
public static final java.lang.String BOOLEAN_TYPE_TRUE
public static final java.lang.String BOOLEAN_TYPE_FALSE
public static final java.lang.String BOOLEAN_TYPE_NULL
public static final java.lang.String BOOLEAN_TYPE_NULL_OUTPUT
public static final java.lang.String BOOLEAN_TYPE_WRONG
public static final java.lang.String DOG
public static final java.lang.String CENTIPEDE
public static final java.lang.String DOG_OPTIMIZED
public static final java.lang.String CENTIPEDE_OPTIMIZED
public static final java.lang.String DOG_EXTRA_INFO
public static final java.lang.String CENTIPEDE_EXTRA_INFO
public static final java.lang.String ANIMAL_WITHOUT_TYPE
public static final java.lang.String HUMAN
public static final java.lang.String DOG_EXTRA_INFO_ORDERED
public static final java.lang.String DOG_WITH_FAMILY
public static final java.lang.String DOG_WITH_NO_FAMILY
public static final java.lang.String DOG_WITH_NO_FAMILY_PARSED
public static final java.lang.String MULTIPLE_ANNOTATIONS_JSON
public static final java.lang.String POLYMORPHIC_NUMERIC_TYPE_1
public static final java.lang.String POLYMORPHIC_NUMERIC_TYPE_2
public static final java.lang.String POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE
public static final java.lang.String POLYMORPHIC_WITH_UNKNOWN_KEY
public static final java.lang.String POLYMORPHIC_SELF_REFERENCING
public static final java.lang.String HUMAN_WITH_PETS
public static final java.lang.String HUMAN_WITH_PETS_PARSED
protected abstract JsonFactory newFactory()
public void testParse_empty()
throws java.lang.Exception
java.lang.Exceptionpublic void testParse_emptyMap()
throws java.lang.Exception
java.lang.Exceptionpublic void testParse_emptyGenericJson()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_partialEmpty()
throws java.lang.Exception
java.lang.Exceptionpublic void testParseEntry()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_partialEntry()
throws java.lang.Exception
java.lang.Exceptionpublic void testParseFeed()
throws java.lang.Exception
java.lang.Exceptionpublic void testParseEntryAsMap()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipToKey_missingEmpty()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipToKey_missing()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipToKey_found()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipToKey_startWithFieldName()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipChildren_string()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipChildren_object()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipChildren_array()
throws java.lang.Exception
java.lang.Exceptionpublic void testNextToken()
throws java.lang.Exception
java.lang.Exceptionpublic void testCurrentToken()
throws java.lang.Exception
java.lang.Exceptionpublic void testParse()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_numberTypes()
throws java.lang.Exception
java.lang.Exceptionpublic void testToFromString()
throws java.lang.Exception
java.lang.Exceptionpublic void testToFromString_UTF8()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_anyType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_arrayType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_collectionType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_mapType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_hashmapForMapType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_wildCardType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_integerTypeVariableType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_intArrayTypeVariableType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_doubleListTypeVariableType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_floatMapTypeVariableType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_treemapForTypeVariableType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_nullValue()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_enumValue()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_typeVariablesPassAround()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_stringArray()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_intArray()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_emptyArray()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_partialEmptyArray()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_num()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_string()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_null()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_bool()
throws java.lang.Exception
java.lang.Exceptionpublic final void testGenerateEntry()
throws java.lang.Exception
java.lang.Exceptionpublic final void testGenerateFeed()
throws java.lang.Exception
java.lang.Exceptionpublic final void testToString_entry()
throws java.lang.Exception
java.lang.Exceptionpublic final void testToString_Feed()
throws java.lang.Exception
java.lang.Exceptionpublic final void testToByteArray_entry()
throws java.lang.Exception
java.lang.Exceptionpublic final void testToPrettyString_entryApproximate()
throws java.lang.Exception
java.lang.Exceptionpublic final void testToPrettyString_FeedApproximate()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_nullInputStream()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_nullString()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_nullReader()
throws java.lang.Exception
java.lang.Exceptionpublic void testObjectParserParse_entry()
throws java.lang.Exception
java.lang.Exceptionpublic void testObjectParserParse_stringList()
throws java.lang.Exception
java.lang.Exceptionpublic void testToString_withFactory()
public void testFactory()
public void testSkipToKey_firstKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipToKey_lastKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipToKey_multipleKeys()
throws java.lang.Exception
java.lang.Exceptionpublic void testSkipToKey_noMatch()
throws java.lang.Exception
java.lang.Exceptionpublic final void testGson()
throws java.lang.Exception
java.lang.Exceptionpublic final void testParse_array()
throws java.lang.Exception
java.lang.Exceptionpublic final void testParse_class()
throws java.lang.Exception
java.lang.Exceptionpublic final void testCreateJsonParser_nullCharset()
throws java.lang.Exception
java.lang.Exceptionpublic final void testGenerate_infinityOrNanError()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_extendsGenericJson()
throws java.lang.Exception
java.lang.Exceptionpublic void testJsonObjectParser_reader()
throws java.lang.Exception
java.lang.Exceptionpublic void testJsonObjectParser_inputStream()
throws java.lang.Exception
java.lang.Exceptionpublic void testJsonObjectParser_readerWrapped()
throws java.lang.Exception
java.lang.Exceptionpublic void testJsonObjectParser_inputStreamWrapped()
throws java.lang.Exception
java.lang.Exceptionpublic void testJsonHttpContent_simple()
throws java.lang.Exception
java.lang.Exceptionpublic void testJsonHttpContent_wrapped()
throws java.lang.Exception
java.lang.Exceptionpublic void testParse_void()
throws java.lang.Exception
java.lang.Exceptionpublic void subtestParse_void(java.lang.String value)
throws java.lang.Exception
java.lang.Exceptionpublic void testParse_boolean()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchemata()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_missingType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_withObject()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_genericJson()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_withArrays()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_withNullArrays()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_polymorphicClass_tooManyAnnotations()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_numericType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_numericValueType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_heterogeneousSchema_illegalValueType()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_polymorphicClass_duplicateTypeKeys()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_polymorphicClass_noMatchingTypeKey()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_polymorphicClass_selfReferencing()
throws java.lang.Exception
java.lang.Exceptionpublic void testParser_polymorphicClass_mapOfPolymorphicClasses()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2011-2018 Google. All Rights Reserved.