org.apache.jdo.tck.api.persistencemanager.detach
Class DetachTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.jdo.tck.JDO_Test
              extended byorg.apache.jdo.tck.api.persistencemanager.detach.DetachTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DetachAllOnCommit, DetachAttach, DetachAttachDirty, DetachCopy, DetachSerialize, IsDetached, SetDetachAllOnCommit

public abstract class DetachTest
extends JDO_Test


Field Summary
protected static java.lang.String CART_ENTRIES
           
protected static java.lang.String[] CART_FETCH_GROUPS
           
protected  Cart cart1
           
protected  java.lang.Object cart1oid
           
protected  java.lang.Object[] cartClosure
           
protected static java.lang.String CARTENTRY_CART
           
protected static java.lang.String CARTENTRY_PRODUCT
           
protected  CartEntry cartEntry1
           
protected  Cart goldenCart
           
protected  CartEntry goldenCartEntry
           
protected  Product product1
           
 
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
DetachTest()
          Creates a new instance of DetachTest
 
Method Summary
protected  void checkCartValues(java.lang.String location, Cart cart)
           
protected  void checkCartValues(java.lang.String location, Cart cart, boolean persistent)
           
protected  void checkState(java.lang.String location, java.lang.Object obj, boolean persistent)
           
protected  Cart createDetachedInstance(java.lang.String ASSERTION_FAILED)
           
protected  void localSetUp()
          Subclasses may override this method to allocate any data and resources that they need in order to successfully execute this testcase.
protected  void reportDifference(java.lang.String location, long expected, long actual)
           
protected  void reportDifference(java.lang.String location, java.lang.Object expected, java.lang.Object actual)
           
protected  void setCartFetchGroups()
           
 
Methods inherited from class org.apache.jdo.tck.JDO_Test
addTearDownClass, addTearDownClass, addTearDownInstance, addTearDownObjectId, appendMessage, cleanupPM, cleanupPM, closePMF, compareStates, currentState, deleteTearDownClasses, deleteTearDownInstances, dumpSupportedOptions, fail, failOnError, getAllObjects, getFailedPersistenceManagers, getModifiableFields, getPM, getPMF, getPMFProperty, getStateOfInstance, isApplicationIdentitySupported, isArrayListSupported, isArraySupported, isBinaryCompatibilitySupported, isChangeApplicationIdentitySupported, isClassLoadable, isDataStoreConnectionSupported, isDatastoreIdentitySupported, isHashMapSupported, isHashtableSupported, isJRE14orBetter, isLinkedListSupported, isListSupported, isMapSupported, isNonDurableIdentitySupported, isNontransactionalReadSupported, isNontransactionalWriteSupported, isNullCollectionSupported, isOptimisticSupported, isRetainValuesSupported, isSQLSupported, isTestToBePerformed, isTransientTransactionalSupported, isTreeMapSupported, isTreeSetSupported, isUnconstrainedVariablesSupported, isVectorSupported, loadProperties, localTearDown, mangleObject, printNonApplicableIdentityType, printUnsupportedOptionalFeatureNotTested, retrieveMessages, runBare, runsWithApplicationIdentity, 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
 

Field Detail

cart1

protected Cart cart1

cartEntry1

protected CartEntry cartEntry1

product1

protected Product product1

cart1oid

protected java.lang.Object cart1oid

goldenCart

protected Cart goldenCart

goldenCartEntry

protected CartEntry goldenCartEntry

cartClosure

protected java.lang.Object[] cartClosure

CART_ENTRIES

protected static final java.lang.String CART_ENTRIES
See Also:
Constant Field Values

CARTENTRY_CART

protected static final java.lang.String CARTENTRY_CART
See Also:
Constant Field Values

CARTENTRY_PRODUCT

protected static final java.lang.String CARTENTRY_PRODUCT
See Also:
Constant Field Values

CART_FETCH_GROUPS

protected static final java.lang.String[] CART_FETCH_GROUPS
Constructor Detail

DetachTest

public DetachTest()
Creates a new instance of DetachTest

Method Detail

localSetUp

protected void localSetUp()
Description copied from class: JDO_Test
Subclasses may override this method to allocate any data and resources that they need in order to successfully execute this testcase.

Overrides:
localSetUp in class JDO_Test

setCartFetchGroups

protected void setCartFetchGroups()

checkState

protected void checkState(java.lang.String location,
                          java.lang.Object obj,
                          boolean persistent)

reportDifference

protected void reportDifference(java.lang.String location,
                                long expected,
                                long actual)

reportDifference

protected void reportDifference(java.lang.String location,
                                java.lang.Object expected,
                                java.lang.Object actual)

checkCartValues

protected void checkCartValues(java.lang.String location,
                               Cart cart)

checkCartValues

protected void checkCartValues(java.lang.String location,
                               Cart cart,
                               boolean persistent)

createDetachedInstance

protected Cart createDetachedInstance(java.lang.String ASSERTION_FAILED)


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