Class AbstractDataStoreFactoryTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.google.api.client.test.util.store.AbstractDataStoreFactoryTest
-
- All Implemented Interfaces:
junit.framework.Test
@Beta public abstract class AbstractDataStoreFactoryTest extends junit.framework.TestCase
TestsDataStoreFactory.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringBOOLEAN_ID(package private) DataStore<java.lang.Boolean>boolTyped(package private) DataStoreFactorydataStoreprivate static java.lang.StringSTRING_ID(package private) DataStore<java.lang.String>stringTyped
-
Constructor Summary
Constructors Constructor Description AbstractDataStoreFactoryTest()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private static voidassertContentsAnyOrder(java.util.Collection<?> c, java.lang.Object... elts)protected abstract DataStoreFactorynewDataStoreFactory()Returns a new instance of the data store factory to test.voidsetUp()private voidsubtestIdException(java.lang.String id)private voidsubtestIdNoException(java.lang.String id)voidtearDown()voidtestClear()voidtestContainsKeyAndValue()voidtestDelete()voidtestId()voidtestKeySet()voidtestLarge()voidtestSet()voidtestValues()-
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, toString
-
-
-
-
Field Detail
-
STRING_ID
private static final java.lang.String STRING_ID
- See Also:
- Constant Field Values
-
BOOLEAN_ID
private static final java.lang.String BOOLEAN_ID
- See Also:
- Constant Field Values
-
dataStore
DataStoreFactory dataStore
-
stringTyped
DataStore<java.lang.String> stringTyped
-
boolTyped
DataStore<java.lang.Boolean> boolTyped
-
-
Method Detail
-
newDataStoreFactory
protected abstract DataStoreFactory newDataStoreFactory() throws java.lang.Exception
Returns a new instance of the data store factory to test.- Throws:
java.lang.Exception
-
setUp
public void setUp() throws java.lang.Exception- Overrides:
setUpin classjunit.framework.TestCase- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception- Overrides:
tearDownin classjunit.framework.TestCase- Throws:
java.lang.Exception
-
assertContentsAnyOrder
private static void assertContentsAnyOrder(java.util.Collection<?> c, java.lang.Object... elts)
-
testId
public void testId() throws java.lang.Exception- Throws:
java.lang.Exception
-
subtestIdException
private void subtestIdException(java.lang.String id) throws java.lang.Exception- Throws:
java.lang.Exception
-
subtestIdNoException
private void subtestIdNoException(java.lang.String id) throws java.lang.Exception- Throws:
java.lang.Exception
-
testSet
public void testSet() throws java.lang.Exception- Throws:
java.lang.Exception
-
testValues
public void testValues() throws java.lang.Exception- Throws:
java.lang.Exception
-
testKeySet
public void testKeySet() throws java.lang.Exception- Throws:
java.lang.Exception
-
testDelete
public void testDelete() throws java.lang.Exception- Throws:
java.lang.Exception
-
testClear
public void testClear() throws java.lang.Exception- Throws:
java.lang.Exception
-
testLarge
public void testLarge() throws java.lang.Exception- Throws:
java.lang.Exception
-
testContainsKeyAndValue
public void testContainsKeyAndValue() throws java.lang.Exception- Throws:
java.lang.Exception
-
-