org.apache.jdo.tck.extents
Class IteratorHasNextFalseAfterExtentClose

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.IteratorHasNextFalseAfterExtentClose
All Implemented Interfaces:
junit.framework.Test

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

Title: Iterator HasNext returns False after Extent.close
Keywords: extent
Assertion ID: A15.3-9.
Assertion Description: After a call to Extent.close(Iterator i), the parameter Iterator will return false to hasNext().


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
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
IteratorHasNextFalseAfterExtentClose()
           
 
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()
           
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
cleanup, cleanupPM, closePMF, currentState, fail, getFailedPersistenceManagers, 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
 
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

IteratorHasNextFalseAfterExtentClose

public IteratorHasNextFalseAfterExtentClose()
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()

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

beginTransaction

protected void beginTransaction()

commitTransaction

protected void commitTransaction()

rollbackTransaction

protected void rollbackTransaction()


Copyright © 2005 Apache Software Foundation. All Rights Reserved.