Package org.greenrobot.greendao.test
Class AbstractDaoTestLongPk<D extends AbstractDao<T,java.lang.Long>,T>
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- android.test.AndroidTestCase
-
- org.greenrobot.greendao.test.DbTest
-
- org.greenrobot.greendao.test.AbstractDaoTest<D,T,K>
-
- org.greenrobot.greendao.test.AbstractDaoTestSinglePk<D,T,java.lang.Long>
-
- org.greenrobot.greendao.test.AbstractDaoTestLongPk<D,T>
-
- Type Parameters:
D- DAO classT- Entity type of the DAO
- All Implemented Interfaces:
junit.framework.Test
public abstract class AbstractDaoTestLongPk<D extends AbstractDao<T,java.lang.Long>,T> extends AbstractDaoTestSinglePk<D,T,java.lang.Long>
Base class for DAOs having a long/Long as a PK, which is quite common.
-
-
Field Summary
-
Fields inherited from class org.greenrobot.greendao.test.AbstractDaoTestSinglePk
usedPks
-
Fields inherited from class org.greenrobot.greendao.test.AbstractDaoTest
dao, daoAccess, daoClass, identityScopeForDao
-
-
Constructor Summary
Constructors Constructor Description AbstractDaoTestLongPk(java.lang.Class<D> daoClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.LongcreateRandomPk()K does not have to be collision free, check nextPk for collision free PKs.voidtestAssignPk()-
Methods inherited from class org.greenrobot.greendao.test.AbstractDaoTestSinglePk
checkKeyIsNullable, createEntity, createEntityWithRandomPk, nextPk, queryWithDummyColumnsInFront, runLoadPkTest, setUp, testCount, testDelete, testDeleteAll, testDeleteByKeyInTx, testDeleteInTx, testInsertAndLoad, testInsertInTx, testInsertOrReplaceInTx, testInsertOrReplaceTwice, testInsertTwice, testLoadAll, testLoadPk, testLoadPkWithOffset, testQuery, testReadWithOffset, testRowId, testSave, testSaveInTx, testUpdate
-
Methods inherited from class org.greenrobot.greendao.test.AbstractDaoTest
clearIdentityScopeIfAny, logTableDump, setIdentityScopeBeforeSetUp, setUpTableForDao
-
Methods inherited from class org.greenrobot.greendao.test.DbTest
createApplication, createDatabase, getApplication, logTableDump, tearDown, terminateApplication
-
Methods inherited from class android.test.AndroidTestCase
assertActivityRequiresPermission, assertReadingContentUriRequiresPermission, assertWritingContentUriRequiresPermission, getContext, scrubClass, setContext, testAndroidTestCaseSetupProperly
-
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
-
-
-
-
Constructor Detail
-
AbstractDaoTestLongPk
public AbstractDaoTestLongPk(java.lang.Class<D> daoClass)
-
-
Method Detail
-
createRandomPk
protected java.lang.Long createRandomPk()
K does not have to be collision free, check nextPk for collision free PKs.- Specified by:
createRandomPkin classAbstractDaoTestSinglePk<D extends AbstractDao<T,java.lang.Long>,T,java.lang.Long>
-
testAssignPk
public void testAssignPk()
-
-