|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.jdo.tck.JDO_Test
org.apache.jdo.tck.lifecycle.NontransactionalWriteTest
Title: Test NontransactionalWrite abstract base class
Keywords: NontransactionalWrite
Assertion ID:
Assertion Description:
Field Summary | |
protected int |
conflictXValue
|
protected int |
newXValue
|
protected java.lang.Object |
oid
The ObjectId of the pc instance, set by method createAndModifyInstance. |
protected int |
originalXValue
The original value of the X field of the pc instance, set by method createAndModifyInstance. |
Fields inherited from class org.apache.jdo.tck.JDO_Test |
APPLICATION_IDENTITY, cleanupData, closePMFAfterEachTest, DATASTORE_IDENTITY, debug, DETACHED_CLEAN, DETACHED_DIRTY, HOLLOW, identitytype, ILLEGAL_STATE, logger, messages, NL, NUM_STATES, PERSISTENT_CLEAN, PERSISTENT_DELETED, PERSISTENT_DIRTY, PERSISTENT_NEW, PERSISTENT_NEW_DELETED, PERSISTENT_NONTRANSACTIONAL, PERSISTENT_NONTRANSACTIONAL_DIRTY, pm, pmf, PMFProperties, PMFPropertiesObject, states, testSucceeded, TRANSIENT, TRANSIENT_CLEAN, TRANSIENT_DIRTY |
Constructor Summary | |
NontransactionalWriteTest()
|
Method Summary | |
protected void |
beginAndCommitTransaction(boolean optimistic)
Begin and commit a transaction using the persistence manager that manages the nontransactional dirty instance. |
protected void |
beginAndCommitTransactionFails(java.lang.String location,
boolean optimistic)
Begin and commit a transaction using the persistence manager that manages the nontransactional dirty instance. |
protected void |
beginAndRollbackTransaction(boolean optimistic)
Begin and rollback a transaction using the persistence manager that manages the nontransactional dirty instance. |
protected boolean |
checkNontransactionalFeaturesSupported(boolean optimistic)
Check that all Nontransactional features are supported. |
protected boolean |
checkNontransactionalReadSupported()
Check if NontransactionalRead is supported, and log a debug message if it is not. |
protected boolean |
checkNontransactionalWriteSupported()
Check if NontransactionalWrite is supported, and log a debug message if it is not. |
protected boolean |
checkOptimisticSupported()
Check if Optimistic is supported, and log a debug message if it is not. |
protected boolean |
checkRetainValuesSupported()
Check if RetainValues is supported, and log a debug message if it is not. |
protected void |
checkXValue(java.lang.String location,
int expectedXValue)
Check the x value of the persistent instance referenced by the oid. |
protected void |
conflictingUpdate()
Perform a conflicting transaction that updates the same field as the nontransactional dirty instance. |
protected VersionedPCPoint |
createAndModifyVersionedPCPoint()
Create a new VersionedPCPoint instance,modify its X value, and store its oid in the test class oid. |
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 |
Field Detail |
protected java.lang.Object oid
protected int originalXValue
protected int newXValue
protected int conflictXValue
Constructor Detail |
public NontransactionalWriteTest()
Method Detail |
protected VersionedPCPoint createAndModifyVersionedPCPoint()
protected void beginAndRollbackTransaction(boolean optimistic)
optimistic
- use optimistic transactionprotected void beginAndCommitTransaction(boolean optimistic)
optimistic
- use optimistic transactionprotected void beginAndCommitTransactionFails(java.lang.String location, boolean optimistic)
optimistic
- use optimistic transactionprotected void checkXValue(java.lang.String location, int expectedXValue)
protected void conflictingUpdate()
protected boolean checkNontransactionalFeaturesSupported(boolean optimistic)
optimistic
- check for whether Optimistic is supported as well.protected boolean checkNontransactionalWriteSupported()
protected boolean checkNontransactionalReadSupported()
protected boolean checkOptimisticSupported()
protected boolean checkRetainValuesSupported()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |