|
|||||||||
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.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.org.apache.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 |
XXXtestSequenceManager()
Commented out!! testing the SequenceManagement with extents. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, 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 |
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() throws PBFactoryException
PBFactoryException
public void tearDown()
public void testCollectionByQuery()
public void testCollectionRetrieval()
public void testExtentByQuery()
public void testRetrieveObjectByIdentity()
public void testRetrieveReferences()
public void XXXtestSequenceManager() throws java.lang.Exception
SequenceManagerTest
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |