org.apache.jdo.tck.models.inheritance
Class TestParts

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.jdo.tck.JDO_Test
              extended byorg.apache.jdo.tck.models.inheritance.TestParts
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
FieldWithSameNameInSuperclass, NonPersistentFieldsAreNonPersistentInSubclasses, NonpersistentSuperClass, PersistenceCapableFlexibilityInInheritanceHierarchy, PersistentFieldsArePersistentInSubClasses, TransactionalFieldsAreTransactionalInSubclasses

public abstract class TestParts
extends JDO_Test

The test data is in arrays, making it easy to change values. The Inheritance test classes refer to the data via array index and the checkXXXX() routines carry an index value--indicating the expected value. If those attributes are references and should be other than null, as is the case with thirdObj, then the test code inserts the reference into the data array. Each test class follows the same pattern: 1. Persistent and transient object are created in the first transaction. 2. A second transaction is started, the first persistent object retrieved and checking is done on its attribute values. 3. A rollback is performed and value comparisions are made on the transient instances that were created. 4. A third transation is started and the first persistent object again retrieved and checking is done on its attribute values.


Field Summary
 
Fields inherited from class org.apache.jdo.tck.JDO_Test
debug, HOLLOW, ILLEGAL_STATE, logger, NUM_STATES, PERSISTENT_CLEAN, PERSISTENT_DELETED, PERSISTENT_DIRTY, PERSISTENT_NEW, PERSISTENT_NEW_DELETED, PERSISTENT_NONTRANSACTIONAL, pm, pmf, PMFProperties, PMFPropertiesObject, states, testSucceeded, TRANSIENT, TRANSIENT_CLEAN, TRANSIENT_DIRTY
 
Constructor Summary
TestParts()
           
 
Methods inherited from class org.apache.jdo.tck.JDO_Test
cleanup, cleanupPM, closePMF, currentState, fail, getFailedPersistenceManagers, getPM, getPMF, getStateOfInstance, isApplicationIdentitySupported, isArrayListSupported, isArraySupported, isChangeApplicationIdentitySupported, isDatastoreIdentitySupported, isHashMapSupported, isHashtableSupported, isLinkedListSupported, isListSupported, isMapSupported, isNonDurableIdentitySupported, isNontransactionalReadSupported, isNontransactionalWriteSupported, isNullCollectionSupported, isOptimisticSupported, isRetainValuesSupported, isTransientTransactionalSupported, isTreeMapSupported, isTreeSetSupported, isVectorSupported, loadProperties, mangleObject, printUnsupportedOptionalFeatureNotTested, runBare, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestParts

public TestParts()


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.