public abstract class AbstractJsonFactoryTest
extends junit.framework.TestCase
JsonFactory.| Modifier and Type | Field and Description |
|---|---|
static String |
ANIMAL_WITHOUT_TYPE |
static String |
BOOLEAN_TYPE_EMPTY |
static String |
BOOLEAN_TYPE_EMPTY_OUTPUT |
static String |
BOOLEAN_TYPE_FALSE |
static String |
BOOLEAN_TYPE_NULL |
static String |
BOOLEAN_TYPE_NULL_OUTPUT |
static String |
BOOLEAN_TYPE_TRUE |
static String |
BOOLEAN_TYPE_WRONG |
static String |
CENTIPEDE |
static String |
CENTIPEDE_EXTRA_INFO |
static String |
CENTIPEDE_OPTIMIZED |
static String |
DOG |
static String |
DOG_EXTRA_INFO |
static String |
DOG_EXTRA_INFO_ORDERED |
static String |
DOG_OPTIMIZED |
static String |
DOG_WITH_FAMILY |
static String |
DOG_WITH_NO_FAMILY |
static String |
DOG_WITH_NO_FAMILY_PARSED |
static String |
HUMAN |
static String |
HUMAN_WITH_PETS |
static String |
HUMAN_WITH_PETS_PARSED |
static String |
MULTIPLE_ANNOTATIONS_JSON |
static String |
POLYMORPHIC_NUMERIC_TYPE_1 |
static String |
POLYMORPHIC_NUMERIC_TYPE_2 |
static String |
POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE |
static String |
POLYMORPHIC_SELF_REFERENCING |
static String |
POLYMORPHIC_WITH_UNKNOWN_KEY |
| Constructor and Description |
|---|
AbstractJsonFactoryTest(String name) |
assertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic static final String BOOLEAN_TYPE_EMPTY
public static final String BOOLEAN_TYPE_EMPTY_OUTPUT
public static final String BOOLEAN_TYPE_TRUE
public static final String BOOLEAN_TYPE_FALSE
public static final String BOOLEAN_TYPE_NULL
public static final String BOOLEAN_TYPE_NULL_OUTPUT
public static final String BOOLEAN_TYPE_WRONG
public static final String DOG
public static final String CENTIPEDE
public static final String DOG_OPTIMIZED
public static final String CENTIPEDE_OPTIMIZED
public static final String DOG_EXTRA_INFO
public static final String CENTIPEDE_EXTRA_INFO
public static final String ANIMAL_WITHOUT_TYPE
public static final String HUMAN
public static final String DOG_EXTRA_INFO_ORDERED
public static final String DOG_WITH_FAMILY
public static final String DOG_WITH_NO_FAMILY
public static final String DOG_WITH_NO_FAMILY_PARSED
public static final String MULTIPLE_ANNOTATIONS_JSON
public static final String POLYMORPHIC_NUMERIC_TYPE_1
public static final String POLYMORPHIC_NUMERIC_TYPE_2
public static final String POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE
public static final String POLYMORPHIC_WITH_UNKNOWN_KEY
public static final String POLYMORPHIC_SELF_REFERENCING
public static final String HUMAN_WITH_PETS
public static final String HUMAN_WITH_PETS_PARSED
public AbstractJsonFactoryTest(String name)
protected abstract JsonFactory newFactory()
public void testParse_emptyGenericJson()
throws Exception
Exceptionpublic void testSkipToKey_missingEmpty()
throws Exception
Exceptionpublic void testSkipToKey_startWithFieldName()
throws Exception
Exceptionpublic void testParser_collectionType()
throws Exception
Exceptionpublic void testParser_hashmapForMapType()
throws Exception
Exceptionpublic void testParser_integerTypeVariableType()
throws Exception
Exceptionpublic void testParser_intArrayTypeVariableType()
throws Exception
Exceptionpublic void testParser_doubleListTypeVariableType()
throws Exception
Exceptionpublic void testParser_floatMapTypeVariableType()
throws Exception
Exceptionpublic void testParser_treemapForTypeVariableType()
throws Exception
Exceptionpublic void testParser_typeVariablesPassAround()
throws Exception
Exceptionpublic void testParser_partialEmptyArray()
throws Exception
Exceptionpublic final void testToPrettyString_entryApproximate()
throws Exception
Exceptionpublic final void testToPrettyString_FeedApproximate()
throws Exception
Exceptionpublic void testParser_nullInputStream()
throws Exception
Exceptionpublic void testObjectParserParse_entry()
throws Exception
Exceptionpublic void testObjectParserParse_stringList()
throws Exception
Exceptionpublic void testToString_withFactory()
public void testFactory()
public void testSkipToKey_multipleKeys()
throws Exception
Exceptionpublic final void testCreateJsonParser_nullCharset()
throws Exception
Exceptionpublic final void testGenerate_infinityOrNanError()
throws Exception
Exceptionpublic void testParser_extendsGenericJson()
throws Exception
Exceptionpublic void testJsonObjectParser_reader()
throws Exception
Exceptionpublic void testJsonObjectParser_inputStream()
throws Exception
Exceptionpublic void testJsonObjectParser_readerWrapped()
throws Exception
Exceptionpublic void testJsonObjectParser_inputStreamWrapped()
throws Exception
Exceptionpublic void testJsonHttpContent_simple()
throws Exception
Exceptionpublic void testJsonHttpContent_wrapped()
throws Exception
Exceptionpublic void testParser_heterogeneousSchemata()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_missingType()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_withObject()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_genericJson()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_withArrays()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_withNullArrays()
throws Exception
Exceptionpublic void testParser_polymorphicClass_tooManyAnnotations()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_numericType()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_numericValueType()
throws Exception
Exceptionpublic void testParser_heterogeneousSchema_illegalValueType()
throws Exception
Exceptionpublic void testParser_polymorphicClass_duplicateTypeKeys()
throws Exception
Exceptionpublic void testParser_polymorphicClass_noMatchingTypeKey()
throws Exception
Exceptionpublic void testParser_polymorphicClass_selfReferencing()
throws Exception
ExceptionCopyright © 2011–2022 Google. All rights reserved.