Package com.google.api.client.test.json
Class AbstractJsonFactoryTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.google.api.client.test.json.AbstractJsonFactoryTest
- All Implemented Interfaces:
junit.framework.Test
public abstract class AbstractJsonFactoryTest
extends junit.framework.TestCase
Abstract test case for testing a
JsonFactory
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static enum
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
(package private) static final String
(package private) static final String
private static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
(package private) static final String
(package private) static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
(package private) static final String
private static final String
private static final String
private static final String
(package private) static final String
(package private) static final String
(package private) static final String
static final String
static final String
static final String
(package private) static final String
(package private) static final String
(package private) static final String
private static final String
private static final String
private static final String
(package private) static final String
static final String
private static final String
(package private) static final String
private static final String
(package private) static final String
(package private) static final String
static final String
static final String
static final String
static final String
static final String
(package private) static final String
(package private) static final String
(package private) static final String
private static final String
(package private) static final String
private static final String
private static final String
(package private) static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JsonParser
createParser
(String json) Returns a JsonParser which parses the specified string.protected abstract JsonFactory
void
subtestParse_void
(String value) final void
void
void
final void
final void
final void
final void
testGson()
void
void
void
void
void
void
void
void
void
void
final void
void
final void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
private void
testParser_heterogeneousSchemata_Helper
(String dogJson, String centipedeJson) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
final void
void
void
final void
final void
final void
final void
void
Methods inherited from class junit.framework.TestCase
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
-
Field Details
-
EMPTY
- See Also:
-
JSON_THREE_ELEMENTS
- See Also:
-
EMPTY_OBJECT
- See Also:
-
JSON_ENTRY
- See Also:
-
JSON_FEED
- See Also:
-
CONTAINED_MAP
- See Also:
-
NUMBER_TYPES
- See Also:
-
NUMBER_TYPES_AS_STRING
- See Also:
-
UTF8_VALUE
- See Also:
-
UTF8_JSON
- See Also:
-
ANY_TYPE
- See Also:
-
ARRAY_TYPE
- See Also:
-
COLLECTION_TYPE
- See Also:
-
MAP_TYPE
- See Also:
-
WILDCARD_TYPE
- See Also:
-
INTEGER_TYPE_VARIABLE_TYPE
- See Also:
-
INT_ARRAY_TYPE_VARIABLE_TYPE
- See Also:
-
DOUBLE_LIST_TYPE_VARIABLE_TYPE
- See Also:
-
FLOAT_MAP_TYPE_VARIABLE_TYPE
- See Also:
-
NULL_VALUE
- See Also:
-
ENUM_VALUE
- See Also:
-
TYPE_VARS
- See Also:
-
STRING_ARRAY
- See Also:
-
INT_ARRAY
- See Also:
-
EMPTY_ARRAY
- See Also:
-
NUMBER_TOP_VALUE
- See Also:
-
STRING_TOP_VALUE
- See Also:
-
NULL_TOP_VALUE
- See Also:
-
BOOL_TOP_VALUE
- See Also:
-
EXTENDS_JSON
- See Also:
-
SIMPLE
- See Also:
-
SIMPLE_WRAPPED
- See Also:
-
BOOLEAN_TYPE_EMPTY
- See Also:
-
BOOLEAN_TYPE_EMPTY_OUTPUT
- See Also:
-
BOOLEAN_TYPE_TRUE
- See Also:
-
BOOLEAN_TYPE_FALSE
- See Also:
-
BOOLEAN_TYPE_NULL
- See Also:
-
BOOLEAN_TYPE_NULL_OUTPUT
- See Also:
-
BOOLEAN_TYPE_WRONG
- See Also:
-
DOG
- See Also:
-
CENTIPEDE
- See Also:
-
DOG_OPTIMIZED
- See Also:
-
CENTIPEDE_OPTIMIZED
- See Also:
-
DOG_EXTRA_INFO
- See Also:
-
CENTIPEDE_EXTRA_INFO
- See Also:
-
ANIMAL_WITHOUT_TYPE
- See Also:
-
HUMAN
- See Also:
-
DOG_EXTRA_INFO_ORDERED
- See Also:
-
DOG_WITH_FAMILY
- See Also:
-
DOG_WITH_NO_FAMILY
- See Also:
-
DOG_WITH_NO_FAMILY_PARSED
- See Also:
-
MULTIPLE_ANNOTATIONS_JSON
- See Also:
-
POLYMORPHIC_NUMERIC_TYPE_1
- See Also:
-
POLYMORPHIC_NUMERIC_TYPE_2
- See Also:
-
POLYMORPHIC_NUMERIC_UNSPECIFIED_TYPE
- See Also:
-
POLYMORPHIC_WITH_UNKNOWN_KEY
- See Also:
-
POLYMORPHIC_SELF_REFERENCING
- See Also:
-
HUMAN_WITH_PETS
- See Also:
-
HUMAN_WITH_PETS_PARSED
- See Also:
-
-
Constructor Details
-
AbstractJsonFactoryTest
-
-
Method Details
-
newFactory
-
testParse_empty
- Throws:
Exception
-
testParse_emptyMap
- Throws:
Exception
-
testParse_emptyGenericJson
- Throws:
Exception
-
testParser_partialEmpty
- Throws:
Exception
-
testParseEntry
- Throws:
Exception
-
testParser_partialEntry
- Throws:
Exception
-
testParseFeed
- Throws:
Exception
-
testParseEntryAsMap
- Throws:
Exception
-
testSkipToKey_missingEmpty
- Throws:
Exception
-
testSkipToKey_missing
- Throws:
Exception
-
testSkipToKey_found
- Throws:
Exception
-
testSkipToKey_startWithFieldName
- Throws:
Exception
-
testSkipChildren_string
- Throws:
Exception
-
testSkipChildren_object
- Throws:
Exception
-
testSkipChildren_array
- Throws:
Exception
-
testNextToken
- Throws:
Exception
-
testCurrentToken
- Throws:
Exception
-
testParse
- Throws:
Exception
-
testParser_numberTypes
- Throws:
Exception
-
testToFromString
- Throws:
Exception
-
testToFromString_UTF8
- Throws:
Exception
-
testParser_anyType
- Throws:
Exception
-
testParser_arrayType
- Throws:
Exception
-
testParser_collectionType
- Throws:
Exception
-
testParser_mapType
- Throws:
Exception
-
testParser_hashmapForMapType
- Throws:
Exception
-
testParser_wildCardType
- Throws:
Exception
-
testParser_integerTypeVariableType
- Throws:
Exception
-
testParser_intArrayTypeVariableType
- Throws:
Exception
-
testParser_doubleListTypeVariableType
- Throws:
Exception
-
testParser_floatMapTypeVariableType
- Throws:
Exception
-
testParser_treemapForTypeVariableType
- Throws:
Exception
-
testParser_nullValue
- Throws:
Exception
-
testParser_enumValue
- Throws:
Exception
-
testParser_typeVariablesPassAround
- Throws:
Exception
-
testParser_stringArray
- Throws:
Exception
-
testParser_intArray
- Throws:
Exception
-
testParser_emptyArray
- Throws:
Exception
-
testParser_partialEmptyArray
- Throws:
Exception
-
testParser_num
- Throws:
Exception
-
testParser_string
- Throws:
Exception
-
testParser_null
- Throws:
Exception
-
testParser_bool
- Throws:
Exception
-
testGenerateEntry
- Throws:
Exception
-
testGenerateFeed
- Throws:
Exception
-
testToString_entry
- Throws:
Exception
-
testToString_Feed
- Throws:
Exception
-
testToByteArray_entry
- Throws:
Exception
-
testToPrettyString_entryApproximate
- Throws:
Exception
-
testToPrettyString_FeedApproximate
- Throws:
Exception
-
testParser_nullInputStream
- Throws:
Exception
-
testParser_nullString
- Throws:
Exception
-
testParser_nullReader
- Throws:
Exception
-
testObjectParserParse_entry
- Throws:
Exception
-
testObjectParserParse_stringList
- Throws:
Exception
-
testToString_withFactory
public void testToString_withFactory() -
testFactory
public void testFactory() -
createParser
Returns a JsonParser which parses the specified string.- Throws:
Exception
-
testSkipToKey_firstKey
- Throws:
Exception
-
testSkipToKey_lastKey
- Throws:
Exception
-
testSkipToKey_multipleKeys
- Throws:
Exception
-
testSkipToKey_noMatch
- Throws:
Exception
-
testGson
- Throws:
Exception
-
testParse_array
- Throws:
Exception
-
testParse_class
- Throws:
Exception
-
testCreateJsonParser_nullCharset
- Throws:
Exception
-
testGenerate_infinityOrNanError
- Throws:
Exception
-
testParser_extendsGenericJson
- Throws:
Exception
-
testJsonObjectParser_reader
- Throws:
Exception
-
testJsonObjectParser_inputStream
- Throws:
Exception
-
testJsonObjectParser_readerWrapped
- Throws:
Exception
-
testJsonObjectParser_inputStreamWrapped
- Throws:
Exception
-
testJsonHttpContent_simple
- Throws:
Exception
-
testJsonHttpContent_wrapped
- Throws:
Exception
-
testParse_void
- Throws:
Exception
-
subtestParse_void
- Throws:
Exception
-
testParse_boolean
- Throws:
Exception
-
testParser_heterogeneousSchemata
- Throws:
Exception
-
testParser_heterogeneousSchemata_Helper
private void testParser_heterogeneousSchemata_Helper(String dogJson, String centipedeJson) throws Exception - Throws:
Exception
-
testParser_heterogeneousSchema_missingType
- Throws:
Exception
-
testParser_heterogeneousSchema_withObject
- Throws:
Exception
-
testParser_heterogeneousSchema_genericJson
- Throws:
Exception
-
testParser_heterogeneousSchema_withArrays
- Throws:
Exception
-
testParser_heterogeneousSchema_withNullArrays
- Throws:
Exception
-
testParser_polymorphicClass_tooManyAnnotations
- Throws:
Exception
-
testParser_heterogeneousSchema_numericType
- Throws:
Exception
-
testParser_heterogeneousSchema_numericValueType
- Throws:
Exception
-
testParser_heterogeneousSchema_illegalValueType
- Throws:
Exception
-
testParser_polymorphicClass_duplicateTypeKeys
- Throws:
Exception
-
testParser_polymorphicClass_noMatchingTypeKey
- Throws:
Exception
-
testParser_polymorphicClass_selfReferencing
- Throws:
Exception
-
testParser_polymorphicClass_mapOfPolymorphicClasses
- Throws:
Exception
-