com.google.api.client.testing.json
Class AbstractJsonFactoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.google.api.client.testing.json.AbstractJsonFactoryTest
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractJsonFactoryTest
extends junit.framework.TestCase

Abstract test case for testing a JsonFactory.

Since:
1.7
Author:
Yaniv Inbar

Nested Class Summary
static class AbstractJsonFactoryTest.A
           
static class AbstractJsonFactoryTest.AnyType
           
static class AbstractJsonFactoryTest.ArrayType
           
static class AbstractJsonFactoryTest.CollectionOfCollectionType
           
static class AbstractJsonFactoryTest.DoubleListTypeVariableType
           
static class AbstractJsonFactoryTest.E
           
static class AbstractJsonFactoryTest.Entry
           
static class AbstractJsonFactoryTest.EnumValue
           
static class AbstractJsonFactoryTest.Feed
           
static class AbstractJsonFactoryTest.FloatMapTypeVariableType
           
static class AbstractJsonFactoryTest.IntArrayTypeVariableType
           
static class AbstractJsonFactoryTest.IntegerTypeVariableType
           
static class AbstractJsonFactoryTest.MapOfMapType
           
static class AbstractJsonFactoryTest.NumberTypes
           
static class AbstractJsonFactoryTest.NumberTypesAsString
           
static class AbstractJsonFactoryTest.StringNullValue
           
static class AbstractJsonFactoryTest.TypeVariablesPassedAround
           
static class AbstractJsonFactoryTest.TypeVariableType<T>
           
static class AbstractJsonFactoryTest.WildCardTypes
           
static class AbstractJsonFactoryTest.X<XT>
           
static class AbstractJsonFactoryTest.Y<YT>
           
static class AbstractJsonFactoryTest.Z<ZT>
           
 
Constructor Summary
AbstractJsonFactoryTest(String name)
           
 
Method Summary
protected abstract  JsonFactory newFactory()
           
 void testCurrentToken()
           
 void testGenerateEntry()
           
 void testGenerateFeed()
           
 void testNextToken()
           
 void testParse_empty()
           
 void testParse_emptyGenericJson()
           
 void testParse_emptyMap()
           
 void testParse()
           
 void testParseEntry()
           
 void testParseEntryAsMap()
           
 void testParseFeed()
           
 void testParser_anyType()
           
 void testParser_arrayType()
           
 void testParser_bool()
           
 void testParser_collectionType()
           
 void testParser_doubleListTypeVariableType()
           
 void testParser_emptyArray()
           
 void testParser_enumValue()
           
 void testParser_floatMapTypeVariableType()
           
 void testParser_hashmapForMapType()
           
 void testParser_intArray()
           
 void testParser_intArrayTypeVariableType()
           
 void testParser_integerTypeVariableType()
           
 void testParser_mapType()
           
 void testParser_null()
           
 void testParser_nullValue()
           
 void testParser_num()
           
 void testParser_numberTypes()
           
 void testParser_partialEmpty()
           
 void testParser_partialEmptyArray()
           
 void testParser_partialEntry()
           
 void testParser_string()
           
 void testParser_stringArray()
           
 void testParser_treemapForTypeVariableType()
           
 void testParser_typeVariablesPassAround()
           
 void testParser_wildCardType()
           
 void testSkipChildren_array()
           
 void testSkipChildren_object()
           
 void testSkipChildren_string()
           
 void testSkipToKey_found()
           
 void testSkipToKey_missing()
           
 void testSkipToKey_missingEmpty()
           
 void testSkipToKey_startWithFieldName()
           
 void testToByteArray_entry()
           
 void testToFromString_UTF8()
           
 void testToFromString()
           
 void testToPrettyString_entryApproximate()
           
 void testToPrettyString_FeedApproximate()
           
 void testToString_entry()
           
 void testToString_Feed()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractJsonFactoryTest

public AbstractJsonFactoryTest(String name)
Method Detail

newFactory

protected abstract JsonFactory newFactory()

testParse_empty

public void testParse_empty()
                     throws IOException
Throws:
IOException

testParse_emptyMap

public void testParse_emptyMap()
                        throws IOException
Throws:
IOException

testParse_emptyGenericJson

public void testParse_emptyGenericJson()
                                throws IOException
Throws:
IOException

testParser_partialEmpty

public void testParser_partialEmpty()
                             throws IOException
Throws:
IOException

testParseEntry

public void testParseEntry()
                    throws Exception
Throws:
Exception

testParser_partialEntry

public void testParser_partialEntry()
                             throws IOException
Throws:
IOException

testParseFeed

public void testParseFeed()
                   throws Exception
Throws:
Exception

testParseEntryAsMap

public void testParseEntryAsMap()
                         throws IOException
Throws:
IOException

testSkipToKey_missingEmpty

public void testSkipToKey_missingEmpty()
                                throws IOException
Throws:
IOException

testSkipToKey_missing

public void testSkipToKey_missing()
                           throws IOException
Throws:
IOException

testSkipToKey_found

public void testSkipToKey_found()
                         throws IOException
Throws:
IOException

testSkipToKey_startWithFieldName

public void testSkipToKey_startWithFieldName()
                                      throws IOException
Throws:
IOException

testSkipChildren_string

public void testSkipChildren_string()
                             throws IOException
Throws:
IOException

testSkipChildren_object

public void testSkipChildren_object()
                             throws IOException
Throws:
IOException

testSkipChildren_array

public void testSkipChildren_array()
                            throws IOException
Throws:
IOException

testNextToken

public void testNextToken()
                   throws IOException
Throws:
IOException

testCurrentToken

public void testCurrentToken()
                      throws IOException
Throws:
IOException

testParse

public void testParse()
               throws IOException
Throws:
IOException

testParser_numberTypes

public void testParser_numberTypes()
                            throws IOException
Throws:
IOException

testToFromString

public void testToFromString()
                      throws IOException
Throws:
IOException

testToFromString_UTF8

public void testToFromString_UTF8()
                           throws IOException
Throws:
IOException

testParser_anyType

public void testParser_anyType()
                        throws IOException
Throws:
IOException

testParser_arrayType

public void testParser_arrayType()
                          throws IOException
Throws:
IOException

testParser_collectionType

public void testParser_collectionType()
                               throws IOException
Throws:
IOException

testParser_mapType

public void testParser_mapType()
                        throws IOException
Throws:
IOException

testParser_hashmapForMapType

public void testParser_hashmapForMapType()
                                  throws IOException
Throws:
IOException

testParser_wildCardType

public void testParser_wildCardType()
                             throws IOException
Throws:
IOException

testParser_integerTypeVariableType

public void testParser_integerTypeVariableType()
                                        throws IOException
Throws:
IOException

testParser_intArrayTypeVariableType

public void testParser_intArrayTypeVariableType()
                                         throws IOException
Throws:
IOException

testParser_doubleListTypeVariableType

public void testParser_doubleListTypeVariableType()
                                           throws IOException
Throws:
IOException

testParser_floatMapTypeVariableType

public void testParser_floatMapTypeVariableType()
                                         throws IOException
Throws:
IOException

testParser_treemapForTypeVariableType

public void testParser_treemapForTypeVariableType()
                                           throws IOException
Throws:
IOException

testParser_nullValue

public void testParser_nullValue()
                          throws IOException
Throws:
IOException

testParser_enumValue

public void testParser_enumValue()
                          throws IOException
Throws:
IOException

testParser_typeVariablesPassAround

public void testParser_typeVariablesPassAround()
                                        throws IOException
Throws:
IOException

testParser_stringArray

public void testParser_stringArray()
                            throws IOException
Throws:
IOException

testParser_intArray

public void testParser_intArray()
                         throws IOException
Throws:
IOException

testParser_emptyArray

public void testParser_emptyArray()
                           throws IOException
Throws:
IOException

testParser_partialEmptyArray

public void testParser_partialEmptyArray()
                                  throws IOException
Throws:
IOException

testParser_num

public void testParser_num()
                    throws IOException
Throws:
IOException

testParser_string

public void testParser_string()
                       throws IOException
Throws:
IOException

testParser_null

public void testParser_null()
                     throws IOException
Throws:
IOException

testParser_bool

public void testParser_bool()
                     throws IOException
Throws:
IOException

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


Copyright © 2011-2012 Google. All Rights Reserved.