Class AbstractJsonFactoryTest

  • All Implemented Interfaces:
    junit.framework.Test

    public abstract class AbstractJsonFactoryTest
    extends junit.framework.TestCase
    Abstract test case for testing a JsonFactory.
    Author:
    Yaniv Inbar
    • Constructor Detail

      • AbstractJsonFactoryTest

        public AbstractJsonFactoryTest​(String name)
    • Method Detail

      • newFactory

        protected abstract JsonFactory newFactory()
      • testParse_emptyMap

        public void testParse_emptyMap()
                                throws Exception
        Throws:
        Exception
      • testParse_emptyGenericJson

        public void testParse_emptyGenericJson()
                                        throws Exception
        Throws:
        Exception
      • testParser_partialEmpty

        public void testParser_partialEmpty()
                                     throws Exception
        Throws:
        Exception
      • testParser_partialEntry

        public void testParser_partialEntry()
                                     throws Exception
        Throws:
        Exception
      • testParseEntryAsMap

        public void testParseEntryAsMap()
                                 throws Exception
        Throws:
        Exception
      • testSkipToKey_missingEmpty

        public void testSkipToKey_missingEmpty()
                                        throws Exception
        Throws:
        Exception
      • testSkipToKey_missing

        public void testSkipToKey_missing()
                                   throws Exception
        Throws:
        Exception
      • testSkipToKey_found

        public void testSkipToKey_found()
                                 throws Exception
        Throws:
        Exception
      • testSkipToKey_startWithFieldName

        public void testSkipToKey_startWithFieldName()
                                              throws Exception
        Throws:
        Exception
      • testSkipChildren_string

        public void testSkipChildren_string()
                                     throws Exception
        Throws:
        Exception
      • testSkipChildren_object

        public void testSkipChildren_object()
                                     throws Exception
        Throws:
        Exception
      • testSkipChildren_array

        public void testSkipChildren_array()
                                    throws Exception
        Throws:
        Exception
      • testParser_numberTypes

        public void testParser_numberTypes()
                                    throws Exception
        Throws:
        Exception
      • testToFromString_UTF8

        public void testToFromString_UTF8()
                                   throws Exception
        Throws:
        Exception
      • testParser_anyType

        public void testParser_anyType()
                                throws Exception
        Throws:
        Exception
      • testParser_arrayType

        public void testParser_arrayType()
                                  throws Exception
        Throws:
        Exception
      • testParser_collectionType

        public void testParser_collectionType()
                                       throws Exception
        Throws:
        Exception
      • testParser_mapType

        public void testParser_mapType()
                                throws Exception
        Throws:
        Exception
      • testParser_hashmapForMapType

        public void testParser_hashmapForMapType()
                                          throws Exception
        Throws:
        Exception
      • testParser_wildCardType

        public void testParser_wildCardType()
                                     throws Exception
        Throws:
        Exception
      • testParser_integerTypeVariableType

        public void testParser_integerTypeVariableType()
                                                throws Exception
        Throws:
        Exception
      • testParser_intArrayTypeVariableType

        public void testParser_intArrayTypeVariableType()
                                                 throws Exception
        Throws:
        Exception
      • testParser_doubleListTypeVariableType

        public void testParser_doubleListTypeVariableType()
                                                   throws Exception
        Throws:
        Exception
      • testParser_floatMapTypeVariableType

        public void testParser_floatMapTypeVariableType()
                                                 throws Exception
        Throws:
        Exception
      • testParser_treemapForTypeVariableType

        public void testParser_treemapForTypeVariableType()
                                                   throws Exception
        Throws:
        Exception
      • testParser_nullValue

        public void testParser_nullValue()
                                  throws Exception
        Throws:
        Exception
      • testParser_enumValue

        public void testParser_enumValue()
                                  throws Exception
        Throws:
        Exception
      • testParser_typeVariablesPassAround

        public void testParser_typeVariablesPassAround()
                                                throws Exception
        Throws:
        Exception
      • testParser_stringArray

        public void testParser_stringArray()
                                    throws Exception
        Throws:
        Exception
      • testParser_intArray

        public void testParser_intArray()
                                 throws Exception
        Throws:
        Exception
      • testParser_emptyArray

        public void testParser_emptyArray()
                                   throws Exception
        Throws:
        Exception
      • testParser_partialEmptyArray

        public void testParser_partialEmptyArray()
                                          throws Exception
        Throws:
        Exception
      • testGenerateEntry

        public final void testGenerateEntry()
                                     throws Exception
        Throws:
        Exception
      • testGenerateFeed

        public final void testGenerateFeed()
                                    throws Exception
        Throws:
        Exception
      • testToString_entry

        public final void testToString_entry()
                                      throws Exception
        Throws:
        Exception
      • testToString_Feed

        public final void testToString_Feed()
                                     throws Exception
        Throws:
        Exception
      • testToByteArray_entry

        public final void testToByteArray_entry()
                                         throws Exception
        Throws:
        Exception
      • testToPrettyString_entryApproximate

        public final void testToPrettyString_entryApproximate()
                                                       throws Exception
        Throws:
        Exception
      • testToPrettyString_FeedApproximate

        public final void testToPrettyString_FeedApproximate()
                                                      throws Exception
        Throws:
        Exception
      • testParser_nullInputStream

        public void testParser_nullInputStream()
                                        throws Exception
        Throws:
        Exception
      • testParser_nullString

        public void testParser_nullString()
                                   throws Exception
        Throws:
        Exception
      • testParser_nullReader

        public void testParser_nullReader()
                                   throws Exception
        Throws:
        Exception
      • testObjectParserParse_entry

        public void testObjectParserParse_entry()
                                         throws Exception
        Throws:
        Exception
      • testObjectParserParse_stringList

        public void testObjectParserParse_stringList()
                                              throws Exception
        Throws:
        Exception
      • testToString_withFactory

        public void testToString_withFactory()
      • testFactory

        public void testFactory()
      • testSkipToKey_firstKey

        public void testSkipToKey_firstKey()
                                    throws Exception
        Throws:
        Exception
      • testSkipToKey_lastKey

        public void testSkipToKey_lastKey()
                                   throws Exception
        Throws:
        Exception
      • testSkipToKey_multipleKeys

        public void testSkipToKey_multipleKeys()
                                        throws Exception
        Throws:
        Exception
      • testSkipToKey_noMatch

        public void testSkipToKey_noMatch()
                                   throws Exception
        Throws:
        Exception
      • testParse_array

        public final void testParse_array()
                                   throws Exception
        Throws:
        Exception
      • testParse_class

        public final void testParse_class()
                                   throws Exception
        Throws:
        Exception
      • testCreateJsonParser_nullCharset

        public final void testCreateJsonParser_nullCharset()
                                                    throws Exception
        Throws:
        Exception
      • testGenerate_infinityOrNanError

        public final void testGenerate_infinityOrNanError()
                                                   throws Exception
        Throws:
        Exception
      • testParser_extendsGenericJson

        public void testParser_extendsGenericJson()
                                           throws Exception
        Throws:
        Exception
      • testJsonObjectParser_reader

        public void testJsonObjectParser_reader()
                                         throws Exception
        Throws:
        Exception
      • testJsonObjectParser_inputStream

        public void testJsonObjectParser_inputStream()
                                              throws Exception
        Throws:
        Exception
      • testJsonObjectParser_readerWrapped

        public void testJsonObjectParser_readerWrapped()
                                                throws Exception
        Throws:
        Exception
      • testJsonObjectParser_inputStreamWrapped

        public void testJsonObjectParser_inputStreamWrapped()
                                                     throws Exception
        Throws:
        Exception
      • testJsonHttpContent_simple

        public void testJsonHttpContent_simple()
                                        throws Exception
        Throws:
        Exception
      • testJsonHttpContent_wrapped

        public void testJsonHttpContent_wrapped()
                                         throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchemata

        public void testParser_heterogeneousSchemata()
                                              throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_missingType

        public void testParser_heterogeneousSchema_missingType()
                                                        throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_withObject

        public void testParser_heterogeneousSchema_withObject()
                                                       throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_genericJson

        public void testParser_heterogeneousSchema_genericJson()
                                                        throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_withArrays

        public void testParser_heterogeneousSchema_withArrays()
                                                       throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_withNullArrays

        public void testParser_heterogeneousSchema_withNullArrays()
                                                           throws Exception
        Throws:
        Exception
      • testParser_polymorphicClass_tooManyAnnotations

        public void testParser_polymorphicClass_tooManyAnnotations()
                                                            throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_numericType

        public void testParser_heterogeneousSchema_numericType()
                                                        throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_numericValueType

        public void testParser_heterogeneousSchema_numericValueType()
                                                             throws Exception
        Throws:
        Exception
      • testParser_heterogeneousSchema_illegalValueType

        public void testParser_heterogeneousSchema_illegalValueType()
                                                             throws Exception
        Throws:
        Exception
      • testParser_polymorphicClass_duplicateTypeKeys

        public void testParser_polymorphicClass_duplicateTypeKeys()
                                                           throws Exception
        Throws:
        Exception
      • testParser_polymorphicClass_noMatchingTypeKey

        public void testParser_polymorphicClass_noMatchingTypeKey()
                                                           throws Exception
        Throws:
        Exception
      • testParser_polymorphicClass_selfReferencing

        public void testParser_polymorphicClass_selfReferencing()
                                                         throws Exception
        Throws:
        Exception
      • testParser_polymorphicClass_mapOfPolymorphicClasses

        public void testParser_polymorphicClass_mapOfPolymorphicClasses()
                                                                 throws Exception
        Throws:
        Exception