org.apache.jdo.tck.api.persistencemanager.fetchplan
Class AbstractFetchPlanTest

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.fetchplan.AbstractFetchPlanTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
FetchPlanMakeTransient, FetchPlanQuery, FetchPlanRefresh, FetchPlanRetrieve

public class AbstractFetchPlanTest
extends JDO_Test

This class is an abstract superclass for the fetch plan tests. It contains methods useful for testing the behavior of the fetch plan.


Field Summary
protected  java.lang.String[] bothGroup
           
protected  java.lang.String[] defaultGroup
          The String arrays used for setting fetch groups.
protected  PCPoint lowerRight
           
protected  java.lang.String[] lowerRightGroup
           
protected  java.lang.Object lowerRightoid
           
protected  PCRect pcrect
           
protected  java.lang.Object pcrectoid
           
protected  PCPoint upperLeft
          The persistent instances used in the test.
protected  java.lang.String[] upperLeftGroup
           
protected  java.lang.Object upperLeftoid
          The oids of the persistent instances used in the test.
 
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
AbstractFetchPlanTest()
           
 
Method Summary
protected  void checkBothLoaded(java.lang.String location, PCRect pcrect)
           
protected  void checkGroups(java.lang.String location, javax.jdo.FetchPlan fetchPlan, java.lang.String[] groups)
           
protected  void checkLowerRightLoaded(java.lang.String location, PCRect pcrect)
           
protected  void checkUpperLeftLoaded(java.lang.String location, PCRect pcrect)
           
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 setBothGroup()
          Set the default plus both fields as the fetch group.
protected  void setDefaultGroup()
          Set the default plus upper left field as the fetch group.
protected  void setLowerRightGroup()
          Set the default plus lower right field as the fetch group.
protected  void setUpperLeftGroup()
          Set the default plus upper left field as the fetch group.
 
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

upperLeft

protected PCPoint upperLeft
The persistent instances used in the test.


lowerRight

protected PCPoint lowerRight

pcrect

protected PCRect pcrect

upperLeftoid

protected java.lang.Object upperLeftoid
The oids of the persistent instances used in the test.


lowerRightoid

protected java.lang.Object lowerRightoid

pcrectoid

protected java.lang.Object pcrectoid

defaultGroup

protected java.lang.String[] defaultGroup
The String arrays used for setting fetch groups.


upperLeftGroup

protected java.lang.String[] upperLeftGroup

lowerRightGroup

protected java.lang.String[] lowerRightGroup

bothGroup

protected java.lang.String[] bothGroup
Constructor Detail

AbstractFetchPlanTest

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

setDefaultGroup

protected void setDefaultGroup()
Set the default plus upper left field as the fetch group.


setUpperLeftGroup

protected void setUpperLeftGroup()
Set the default plus upper left field as the fetch group.


setLowerRightGroup

protected void setLowerRightGroup()
Set the default plus lower right field as the fetch group.


setBothGroup

protected void setBothGroup()
Set the default plus both fields as the fetch group.


checkBothLoaded

protected void checkBothLoaded(java.lang.String location,
                               PCRect pcrect)

checkUpperLeftLoaded

protected void checkUpperLeftLoaded(java.lang.String location,
                                    PCRect pcrect)

checkLowerRightLoaded

protected void checkLowerRightLoaded(java.lang.String location,
                                     PCRect pcrect)

checkGroups

protected void checkGroups(java.lang.String location,
                           javax.jdo.FetchPlan fetchPlan,
                           java.lang.String[] groups)


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