|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--test.ojb.broker.PolymorphicExtents
This TestClass tests OJB facilities to work with polymorphism.
Field Summary | |
(package private) PersistenceBroker |
broker
|
Constructor Summary | |
PolymorphicExtents(java.lang.String name)
Insert the method's description here. |
Method Summary | |
protected Article |
createArticle(int id)
Insert the method's description here. |
static void |
main(java.lang.String[] args)
|
void |
setUp()
Insert the method's description here. |
void |
tearDown()
Insert the method's description here. |
void |
testCollectionByQuery()
TestThreadsNLocks query support for polymorphic extents |
void |
testCollectionRetrieval()
try to retrieve a polymorphic collection attribute (ProductGroup.allArticlesInGroup contains items of type TestThreadsNLocks.ojb.broker.Article which forms an extent) ProductGroup 5 contain items from table Artikel, BOOKS and CDS |
void |
testExtentByQuery()
TestThreadsNLocks EXTENT lookup: a collection with ALL objects in the Article extent |
void |
testRetrieveObjectByIdentity()
TestThreadsNLocks to lookup items from extent classes |
void |
testRetrieveReferences()
try to load polymorphic references (OrderPosition.article is of type InterfaceArticle) |
void |
testSequenceManager()
testing the SequenceManagement with extents. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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 |
PersistenceBroker broker
Constructor Detail |
public PolymorphicExtents(java.lang.String name)
Method Detail |
public static void main(java.lang.String[] args)
protected Article createArticle(int id)
id
- intpublic void setUp()
setUp
in class junit.framework.TestCase
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testCollectionByQuery()
public void testCollectionRetrieval()
public void testExtentByQuery()
public void testRetrieveObjectByIdentity()
public void testRetrieveReferences()
public void testSequenceManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |