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, toString
public 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
Exception
public void testSkipToKey_missingEmpty() throws Exception
Exception
public void testSkipToKey_startWithFieldName() throws Exception
Exception
public void testParser_collectionType() throws Exception
Exception
public void testParser_hashmapForMapType() throws Exception
Exception
public void testParser_integerTypeVariableType() throws Exception
Exception
public void testParser_intArrayTypeVariableType() throws Exception
Exception
public void testParser_doubleListTypeVariableType() throws Exception
Exception
public void testParser_floatMapTypeVariableType() throws Exception
Exception
public void testParser_treemapForTypeVariableType() throws Exception
Exception
public void testParser_typeVariablesPassAround() throws Exception
Exception
public void testParser_partialEmptyArray() throws Exception
Exception
public final void testToPrettyString_entryApproximate() throws Exception
Exception
public final void testToPrettyString_FeedApproximate() throws Exception
Exception
public void testParser_nullInputStream() throws Exception
Exception
public void testObjectParserParse_entry() throws Exception
Exception
public void testObjectParserParse_stringList() throws Exception
Exception
public void testToString_withFactory()
public void testFactory()
public void testSkipToKey_multipleKeys() throws Exception
Exception
public final void testCreateJsonParser_nullCharset() throws Exception
Exception
public final void testGenerate_infinityOrNanError() throws Exception
Exception
public void testParser_extendsGenericJson() throws Exception
Exception
public void testJsonObjectParser_reader() throws Exception
Exception
public void testJsonObjectParser_inputStream() throws Exception
Exception
public void testJsonObjectParser_readerWrapped() throws Exception
Exception
public void testJsonObjectParser_inputStreamWrapped() throws Exception
Exception
public void testJsonHttpContent_simple() throws Exception
Exception
public void testJsonHttpContent_wrapped() throws Exception
Exception
public void testParser_heterogeneousSchemata() throws Exception
Exception
public void testParser_heterogeneousSchema_missingType() throws Exception
Exception
public void testParser_heterogeneousSchema_withObject() throws Exception
Exception
public void testParser_heterogeneousSchema_genericJson() throws Exception
Exception
public void testParser_heterogeneousSchema_withArrays() throws Exception
Exception
public void testParser_heterogeneousSchema_withNullArrays() throws Exception
Exception
public void testParser_polymorphicClass_tooManyAnnotations() throws Exception
Exception
public void testParser_heterogeneousSchema_numericType() throws Exception
Exception
public void testParser_heterogeneousSchema_numericValueType() throws Exception
Exception
public void testParser_heterogeneousSchema_illegalValueType() throws Exception
Exception
public void testParser_polymorphicClass_duplicateTypeKeys() throws Exception
Exception
public void testParser_polymorphicClass_noMatchingTypeKey() throws Exception
Exception
public void testParser_polymorphicClass_selfReferencing() throws Exception
Exception
Copyright © 2011–2023 Google. All rights reserved.