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.String
BOOLEAN_ID
(package private) DataStore<java.lang.Boolean>
boolTyped
(package private) DataStoreFactory
dataStore
private static java.lang.String
STRING_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 void
assertContentsAnyOrder(java.util.Collection<?> c, java.lang.Object... elts)
protected abstract DataStoreFactory
newDataStoreFactory()
Returns a new instance of the data store factory to test.void
setUp()
private void
subtestIdException(java.lang.String id)
private void
subtestIdNoException(java.lang.String id)
void
tearDown()
void
testClear()
void
testContainsKeyAndValue()
void
testDelete()
void
testId()
void
testKeySet()
void
testLarge()
void
testSet()
void
testValues()
-
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:
setUp
in classjunit.framework.TestCase
- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception
- Overrides:
tearDown
in 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
-
-