D
- DAO classT
- Entity type of the DAOK
- Key type of the DAOpublic abstract class AbstractDaoTest<D extends AbstractDao<T,K>,T,K> extends DbTest
Modifier and Type | Field and Description |
---|---|
protected D |
dao |
protected de.greenrobot.dao.InternalUnitTestDaoAccess<T,K> |
daoAccess |
protected java.lang.Class<D> |
daoClass |
protected IdentityScope<K,T> |
identityScopeForDao |
protected Property |
pkColumn |
Constructor and Description |
---|
AbstractDaoTest(java.lang.Class<D> daoClass) |
AbstractDaoTest(java.lang.Class<D> daoClass,
boolean inMemory) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearIdentityScopeIfAny() |
protected void |
logTableDump() |
void |
setIdentityScopeBeforeSetUp(IdentityScope<K,T> identityScope) |
protected void |
setUp() |
protected void |
setUpTableForDao() |
createApplication, createDatabase, getApplication, logTableDump, tearDown, terminateApplication
assertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, scrubClass, setContext, testAndroidTestCaseSetupProperly
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
protected final java.lang.Class<D extends AbstractDao<T,K>> daoClass
protected D extends AbstractDao<T,K> dao
protected Property pkColumn
protected IdentityScope<K,T> identityScopeForDao
public AbstractDaoTest(java.lang.Class<D> daoClass)
public AbstractDaoTest(java.lang.Class<D> daoClass, boolean inMemory)
public void setIdentityScopeBeforeSetUp(IdentityScope<K,T> identityScope)
protected void setUp() throws java.lang.Exception
protected void setUpTableForDao() throws java.lang.Exception
java.lang.Exception
protected void clearIdentityScopeIfAny()
protected void logTableDump()
Available under the Apache License, Version 2.0 - Copyright © 2011-2015 greenrobot.de. All Rights Reserved.