org.apache.jdo.tck.extents
Class InstancesDeletedPriorToIterationNotReturned

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.jdo.tck.JDO_Test
              extended byorg.apache.jdo.tck.extents.ExtentTest
                  extended byorg.apache.jdo.tck.extents.InstancesDeletedPriorToIterationNotReturned
All Implemented Interfaces:
junit.framework.Test

public class InstancesDeletedPriorToIterationNotReturned
extends org.apache.jdo.tck.extents.ExtentTest

Title: Instances Deleted Prior to Iteration not Returned
Keywords: extent
Assertion ID: A15.3-3.
Assertion Description: If instances were deleted in the transaction prior to the execution of Extent.iterator(), the returned Iterator will not contain the instances.


Field Summary
protected  Company company
           
protected  java.lang.Object companyOID
           
protected  java.lang.Class extentClass
           
 
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
InstancesDeletedPriorToIterationNotReturned()
           
 
Method Summary
protected  Employee addEmployee()
           
protected  void beginTransaction()
           
protected  void checkPM()
           
protected  void commitTransaction()
           
protected  int countIterator(java.util.Iterator it)
           
protected  void deleteEmployee(Employee e)
           
protected  java.lang.Object getCompanyOID()
           
protected  javax.jdo.Extent getExtent()
           
protected  javax.jdo.PersistenceManager getPM()
          Get the PersistenceManager instance for the implementation under test.
 javax.jdo.PersistenceManagerFactory getPMF()
          Get the PersistenceManagerFactory instance for the implementation under test.
protected  void initDB()
           
protected  void localSetUp()
          Subclasses may override this method to allocate any data and resources that they need in order to successfully execute this testcase.
static void main(java.lang.String[] args)
          The main is called when the class is directly executed from the command line.
protected  int printIterator(java.util.Iterator it)
           
protected  void rollbackTransaction()
           
 void test()
           
 
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, 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

extentClass

protected java.lang.Class extentClass

company

protected Company company

companyOID

protected java.lang.Object companyOID
Constructor Detail

InstancesDeletedPriorToIterationNotReturned

public InstancesDeletedPriorToIterationNotReturned()
Method Detail

main

public static void main(java.lang.String[] args)
The main is called when the class is directly executed from the command line.

Parameters:
args - The arguments passed to the program.

test

public void test()

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
See Also:
JDO_Test.localSetUp()

checkPM

protected void checkPM()

initDB

protected void initDB()

addEmployee

protected Employee addEmployee()

deleteEmployee

protected void deleteEmployee(Employee e)

countIterator

protected int countIterator(java.util.Iterator it)

printIterator

protected int printIterator(java.util.Iterator it)

getExtent

protected javax.jdo.Extent getExtent()

getCompanyOID

protected java.lang.Object getCompanyOID()

getPM

protected javax.jdo.PersistenceManager getPM()
Description copied from class: JDO_Test
Get the PersistenceManager instance for the implementation under test.

Overrides:
getPM in class JDO_Test

getPMF

public javax.jdo.PersistenceManagerFactory getPMF()
Description copied from class: JDO_Test
Get the PersistenceManagerFactory instance for the implementation under test.

Overrides:
getPMF in class JDO_Test
Returns:
field pmf if it is not null, else sets field pmf to a new instance and returns that instance.

beginTransaction

protected void beginTransaction()

commitTransaction

protected void commitTransaction()

rollbackTransaction

protected void rollbackTransaction()


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