|
|||||||||||
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.api.persistencemanager.getobject.GetObjectsById
Title: Test GetObjectsById
Keywords: getObjectsById getObjectById
Assertion IDs: 12.5.6-17
Assertion Description:
12.5.6-17 [Collection getObjectsById (Collection oids);
Object[] getObjectsById (Object[] oids);
Collection getObjectsById (Collection oids, boolean validate);
Object[] getObjectsById (Object[] oids, boolean validate);
The getObjectsById method attempts to find instances in the cache
with the specified JDO identities. The elements of the oids parameter
object might have been returned by earlier calls to getObjectId
or getTransactionalObjectId, or might have been constructed by
the application. If a method with no validate parameter is used,
the method behaves exactly as the correspond ing method with
the validate flag set to true. If the Object[] form of the method
is used, the returned objects correspond by position with
the object ids in the oids parameter. If the Collection form
of the method is used, the iterator over the returned Collection
returns instances in the same order as the oids returned by
an iterator over the parameter Collection. The cardinality of
the return value is the same as the cardinality of
the oids parameter. ]
Field Summary |
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 | |
GetObjectsById()
|
Method Summary | |
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. |
void |
testArray()
|
void |
testArrayFalse()
|
void |
testArrayTrue()
|
void |
testCollection()
|
void |
testCollectionFalse()
|
void |
testCollectionTrue()
|
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 |
Constructor Detail |
public GetObjectsById()
Method Detail |
public static void main(java.lang.String[] args)
main
is called when the class
is directly executed from the command line.
args
- The arguments passed to the program.protected void localSetUp()
JDO_Test
localSetUp
in class JDO_Test
JDO_Test.localSetUp()
public void testCollection()
public void testCollectionTrue()
public void testCollectionFalse()
public void testArray()
public void testArrayTrue()
public void testArrayFalse()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |