| com.triactive.jdo.test.DatabaseTestCase com.triactive.jdo.test.PersistenceTestCase com.triactive.jdo.test.PersistenceManagerImplFullTest
PersistenceManagerImplFullTest | public class PersistenceManagerImplFullTest extends PersistenceTestCase (Code) | | This class is a JUnit test class for unit testing
com.triactive.jdo.PersistenceManagerImpl .
|
Method Summary | |
public void | cleanup() | public static void | main(String args) | static void | setPrimitiveValues(Primitive p, boolean b, byte y, char c, int i, short s, long l, float f, double d, String fstr, String nstr, String hstr, java.util.Date dt1, java.sql.Date dt2, java.sql.Timestamp tm) | public void | setUp() | public void | tearDown() | public void | testDeletePersistent() | public void | testDeletePersistentExceptions() | public void | testExtentSubclasses() | public void | testFCOReferencedObjectsPersistence() | public void | testInheritedFieldsPersisted() | public void | testInstanceCallbacks() | public void | testInverseFCOCollectionFieldPersistence1() Test that FCOs added to a Collection field of an inverse Collection are
persisted when the owning PC is persisted. | public void | testInverseFCOCollectionFieldPersistence2() | public void | testInverseFCOCollectionFieldPersistence3() | public void | testInverseFCOCollectionFieldPersistence4() | public void | testJavaIdentity() | public void | testMakeCollectionFieldsPersistent() | public void | testMakePersistent() Tests storage of various datatypes using the makePersistent method. | public void | testMakeTransient() | public void | testMakeTransientAll() | public void | testMakeTransientExceptions() | public void | testNormalCollectionFieldPersistence1() This test was written as a result of a bug that was found. | public void | testNormalFCOCollectionFieldPersistence1() Test that FCOs added to a Collection field are persisted when the owning
PC is persisted. | public void | testNormalFCOCollectionFieldPersistence2() | public void | testNormalFCOCollectionFieldPersistence3() | public void | testNormalFCOCollectionFieldPersistence4() | public void | testPCFieldAccess() | public void | testQueryPM() | public void | testStateTransitions() | public void | testTransientObjectCollections() Tests that objects can be added to a Collection owned by a persistent
object made transient. | public void | testUpdatePersistentFields() | public void | testUpdatePersistentFieldsExceptions() |
PersistenceManagerImplFullTest | public PersistenceManagerImplFullTest(String name)(Code) | | Used by the JUnit framework to construct tests.
Parameters: name - Name of the TestCase. |
cleanup | public void cleanup()(Code) | | Delete all data from all test tables
|
setPrimitiveValues | static void setPrimitiveValues(Primitive p, boolean b, byte y, char c, int i, short s, long l, float f, double d, String fstr, String nstr, String hstr, java.util.Date dt1, java.sql.Date dt2, java.sql.Timestamp tm)(Code) | | |
testDeletePersistent | public void testDeletePersistent() throws Exception(Code) | | Simple test of deletePersistent method
|
testDeletePersistentExceptions | public void testDeletePersistentExceptions() throws Exception(Code) | | Tests attempts to delete a transient object
|
testExtentSubclasses | public void testExtentSubclasses() throws Exception(Code) | | |
testFCOReferencedObjectsPersistence | public void testFCOReferencedObjectsPersistence()(Code) | | Test that persisting a PC will also persist all FCOs that are referenced
by that PC
|
testInheritedFieldsPersisted | public void testInheritedFieldsPersisted()(Code) | | Test that inherited fields are persisted
|
testInstanceCallbacks | public void testInstanceCallbacks()(Code) | | Tests the InstanceCallback interface methods
|
testInverseFCOCollectionFieldPersistence1 | public void testInverseFCOCollectionFieldPersistence1()(Code) | | Test that FCOs added to a Collection field of an inverse Collection are
persisted when the owning PC is persisted.
|
testInverseFCOCollectionFieldPersistence2 | public void testInverseFCOCollectionFieldPersistence2()(Code) | | Test that when inverse FCOs are persisted, the owning PC is persisted
also
|
testInverseFCOCollectionFieldPersistence3 | public void testInverseFCOCollectionFieldPersistence3()(Code) | | Test that deleting an object that is a member of an inverse Collection field
also removes it from the Collection
|
testInverseFCOCollectionFieldPersistence4 | public void testInverseFCOCollectionFieldPersistence4()(Code) | | Test that setting the inverse reference of an object implicitly adds it
to the inverse collection of the "owning" object
|
testJavaIdentity | public void testJavaIdentity()(Code) | | Test that getObjectId() returns the same value when called on a newly
persistent PC as when called on a query result that should return that same
persistent object
|
testMakeCollectionFieldsPersistent | public void testMakeCollectionFieldsPersistent() throws Exception(Code) | | Test that updates of collection and inverse collection fields update
the underlying collection
|
testMakePersistent | public void testMakePersistent() throws Exception(Code) | | Tests storage of various datatypes using the makePersistent method.
|
testMakeTransient | public void testMakeTransient() throws Exception(Code) | | Simple test of makeTransient()
|
testMakeTransientAll | public void testMakeTransientAll() throws Exception(Code) | | Simple test of makeTransientAll()
|
testMakeTransientExceptions | public void testMakeTransientExceptions() throws Exception(Code) | | Tests attempts to call makeTransient outside a transaction
|
testNormalCollectionFieldPersistence1 | public void testNormalCollectionFieldPersistence1()(Code) | | This test was written as a result of a bug that was found. Test
persisting an object with a collection field, add objects to the
collection, make the owning object transient, and then persist it again.
|
testNormalFCOCollectionFieldPersistence1 | public void testNormalFCOCollectionFieldPersistence1()(Code) | | Test that FCOs added to a Collection field are persisted when the owning
PC is persisted.
|
testNormalFCOCollectionFieldPersistence2 | public void testNormalFCOCollectionFieldPersistence2()(Code) | | Test that deleting an object that is a member of a Collection field
throws an exception
|
testNormalFCOCollectionFieldPersistence3 | public void testNormalFCOCollectionFieldPersistence3()(Code) | | Test that removing a member of a normal Collection field does NOT delete
the object that was removed
|
testNormalFCOCollectionFieldPersistence4 | public void testNormalFCOCollectionFieldPersistence4()(Code) | | Test adding and removing elements from Collections whose members are
defined as a non-PC superclass or interface
|
testPCFieldAccess | public void testPCFieldAccess() throws Exception(Code) | | Test that transient fields are accessible both inside and outside transactiosns
|
testQueryPM | public void testQueryPM()(Code) | | Tests that the persistence manager used to persist an object is the same
as returned by jdoGetPersistenceManager()
|
testStateTransitions | public void testStateTransitions() throws Exception(Code) | | |
testTransientObjectCollections | public void testTransientObjectCollections()(Code) | | Tests that objects can be added to a Collection owned by a persistent
object made transient.
|
testUpdatePersistentFields | public void testUpdatePersistentFields() throws Exception(Code) | | Simple test of transactional PC field updates
|
testUpdatePersistentFieldsExceptions | public void testUpdatePersistentFieldsExceptions() throws Exception(Code) | | Tests attempts to update PC fields on a P-new-del or P-del PC object
|
|
|