org.kuali.rice.krad.data.jpa
Class JpaPersistenceProviderTest
java.lang.Object
org.kuali.rice.test.BaseRiceTestCase
org.kuali.rice.test.RiceTestCase
org.kuali.rice.test.RiceInternalSuiteDataTestCase
org.kuali.rice.test.BaseModuleTestCase
org.kuali.rice.test.BaselineTestCase
org.kuali.rice.krad.test.KRADTestCase
org.kuali.rice.krad.data.jpa.JpaPersistenceProviderTest
- All Implemented Interfaces:
- MethodAware
public class JpaPersistenceProviderTest
- extends KRADTestCase
Tests JPAPersistenceProvider
Methods inherited from class org.kuali.rice.test.RiceTestCase |
configureLogging, dumpMemory, getConfigLocations, getFullTestName, getModuleTestConfigLocation, getRiceMasterDefaultConfigFile, getTestHarnessConfig, getTestHarnessSpringBeansLocation, getTestHarnessSpringResourceLoader, getUserDir, loadPerTestData, logAfterRun, logBeforeRun, report, setBaseDirSystemProperty, setClearTables, setModuleName, startLifecycles, startSuiteDataLoaderLifecycles, stopLifecycles |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
provider
protected PersistenceProvider provider
- The PersistenceProvider being tested
JpaPersistenceProviderTest
public JpaPersistenceProviderTest()
setup
public void setup()
- Obtains PersistenceProvider.
queryFor
protected QueryByCriteria queryFor(Object a)
- Derives a QueryByCriteria for a test object
createLinkedTestObject
protected Object createLinkedTestObject()
- Creates an unsaved test object
createUnlinkedTestObject
protected Object createUnlinkedTestObject()
- Creates an unsaved, unlinked test object
assignPK
protected void assignPK(Object a)
- Assigns the next generated primary key value to the test object
createForQuery
protected Map.Entry<Object,QueryByCriteria> createForQuery()
- Creates a test object and generates a matching query for it
createForQuery
protected Map.Entry<List<Object>,QueryByCriteria.Builder> createForQuery(int count)
- Generates a batch of test objects and returns a single query that will select them all.
The order of the returned list of test objects should match the order of the results returned
by the underlying platform (i.e., if they are returned in a sorted order, then the test object
list should be sorted).
testSimpleSave
public void testSimpleSave()
testSaveLinkedSkipLinking
public void testSaveLinkedSkipLinking()
testSaveUnlinkedSkipLinking
public void testSaveUnlinkedSkipLinking()
testFindMatching
public void testFindMatching()
testFindBySingleKey
public void testFindBySingleKey()
testFindByCompoundKey
public void testFindByCompoundKey()
testFindWithResultsWindow
public void testFindWithResultsWindow()
testDeleteNonExistentEntity
public void testDeleteNonExistentEntity()
- Tests that deletion of a non-existent detached object does not result in a save of the object
via merge.
testHandles
public void testHandles()
createTopLevelObject
protected Object createTopLevelObject()
addLinkedReferences
protected void addLinkedReferences(Object o)
addUnlinkedReferences
protected void addUnlinkedReferences(Object o)
getPropertiesForQuery
protected String[] getPropertiesForQuery()
getIdForLookup
protected Object getIdForLookup(Object o)
getNextTestObjectId
protected String getNextTestObjectId()
setTestObjectPK
protected void setTestObjectPK(Object o,
Object key)
assertTestObjectIdentityEquals
protected void assertTestObjectIdentityEquals(Object oExpected,
Object oActual)
assertTestObjectEquals
protected void assertTestObjectEquals(Object oExpected,
Object oActual)
getPersistenceProvider
protected PersistenceProvider getPersistenceProvider()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.