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

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

public abstract class AbstractJsonParserTest
extends junit.framework.TestCase

Abstract test case for JsonParser.

Since:
1.4
Author:
Yaniv Inbar

Nested Class Summary
static class AbstractJsonParserTest.A
           
static class AbstractJsonParserTest.AnyType
           
static class AbstractJsonParserTest.ArrayType
           
static class AbstractJsonParserTest.CollectionOfCollectionType
           
static class AbstractJsonParserTest.DoubleListTypeVariableType
           
static class AbstractJsonParserTest.E
           
static class AbstractJsonParserTest.Entry
           
static class AbstractJsonParserTest.EnumValue
           
static class AbstractJsonParserTest.Feed
           
static class AbstractJsonParserTest.FloatMapTypeVariableType
           
static class AbstractJsonParserTest.IntArrayTypeVariableType
           
static class AbstractJsonParserTest.IntegerTypeVariableType
           
static class AbstractJsonParserTest.MapOfMapType
           
static class AbstractJsonParserTest.NumberTypes
           
static class AbstractJsonParserTest.NumberTypesAsString
           
static class AbstractJsonParserTest.StringNullValue
           
static class AbstractJsonParserTest.TypeVariablesPassedAround
           
static class AbstractJsonParserTest.TypeVariableType<T>
           
static class AbstractJsonParserTest.WildCardTypes
           
static class AbstractJsonParserTest.X<XT>
           
static class AbstractJsonParserTest.Y<YT>
           
static class AbstractJsonParserTest.Z<ZT>
           
 
Constructor Summary
AbstractJsonParserTest(String name)
           
 
Method Summary
protected abstract  JsonFactory newFactory()
           
 void testCurrentToken()
           
 void testNextToken()
           
 void testParse_emptyGenericJson()
           
 void testParse_emptyMap()
           
 void testParse()
           
 void testParseEntry()
           
 void testParseEntryAsMap()
           
 void testParseFeed()
           
 void testParser_anyType()
           
 void testParser_arrayType()
           
 void testParser_collectionType()
           
 void testParser_doubleListTypeVariableType()
           
 void testParser_enumValue()
           
 void testParser_floatMapTypeVariableType()
           
 void testParser_hashmapForMapType()
           
 void testParser_intArrayTypeVariableType()
           
 void testParser_integerTypeVariableType()
           
 void testParser_mapType()
           
 void testParser_nullValue()
           
 void testParser_numberTypes()
           
 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 testToFromString()
           
 
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

AbstractJsonParserTest

public AbstractJsonParserTest(String name)
Method Detail

newFactory

protected abstract JsonFactory newFactory()

testParse_emptyMap

public void testParse_emptyMap()
                        throws IOException
Throws:
IOException

testParse_emptyGenericJson

public void testParse_emptyGenericJson()
                                throws IOException
Throws:
IOException

testParseEntry

public void testParseEntry()
                    throws Exception
Throws:
Exception

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

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


Copyright © 2010-2011 Google. All Rights Reserved.