|
|||||||||
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.CollectionTest
Test case for collection handling. Main class Gatherer have five collections of type CollectibleBase, CollectibleB, CollectibleC, CollectibleD, CollectibleDD Class hierarchy: [CollectibleBaseIF <--] CollectibleBase <-- CollectibleB <-- CollectibleC <-- CollectibleCC | | CollectibleD <-- CollectibleDD CollectibleCCC in repository interface CollectibleBaseIF was declared with five extents (CollectibleBase, CollectibleB, CollectibleC, CollectibleD, CollectibleDD) CollectibleBase auto-retrieve, auto-update, auto-delete all true proxy false CollectibleB auto-retrieve, auto-update set true, auto-delete false proxy true CollectibleC auto-retrieve, auto-update, auto-delete set true, proxy true CollectibleC has a reference back to the Gatherer object (auto-retrieve, auto-update, auto-delete set false to avoid circular object creation) CollectibleCC auto-retrieve true, auto-update true, auto-delete set true, proxy false CollectibleCCC auto-retrieve false, auto-update true, auto-delete set true, proxy false CollectibleD auto-retrieve, auto-update, auto-delete all true proxy false CollectibleDD auto-retrieve, auto-update, auto-delete all true proxy true TODO: Need some refactoring and more structured tests of different auto_xyz/proxy settings
Nested Class Summary | |
static class |
CollectionTest.Book
|
static class |
CollectionTest.BookShelf
|
static class |
CollectionTest.BookShelfItem
|
static class |
CollectionTest.CollectibleB
|
static class |
CollectionTest.CollectibleBase
|
static interface |
CollectionTest.CollectibleBaseIF
|
static interface |
CollectionTest.CollectibleBIF
|
static class |
CollectionTest.CollectibleC
|
static class |
CollectionTest.CollectibleCC
|
static class |
CollectionTest.CollectibleCCC
|
static interface |
CollectionTest.CollectibleCIF
|
static class |
CollectionTest.CollectibleD
|
static class |
CollectionTest.CollectibleDD
|
static interface |
CollectionTest.CollectibleDDIF
|
static interface |
CollectionTest.CollectibleDIF
|
static class |
CollectionTest.CollectionClassDummy
|
static class |
CollectionTest.DVD
|
static class |
CollectionTest.Gatherer
|
Constructor Summary | |
CollectionTest()
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
setUp()
|
void |
tearDown()
|
void |
testAddNewObjectsToExistingCollection()
Add new reference objects to an existing collection reference (1:n) of a main object. |
void |
testDeleteCollection()
generate main object with collections and store main object to make all persistent |
void |
testDeleteMainObjectWithOneToNRelation()
generate main object with collections and store main object to make all persistent |
void |
testOneBookShelfQueryByCollection()
|
void |
testOneBookShelfQueryByIterator()
|
void |
testReadProxyCollection()
|
void |
testStoreCollectionObjectsWithBackReference()
generate main object with collections and store main object to make all persistent. |
void |
testStoreDeleteSimpleCollections_2()
generate main object with collections and store main object to make all persistent using ojbConcreteClass feature to map different objects to same table |
void |
testStoreDeleteSimpleCollections()
generate main object with collections and store main object to make all persistent |
void |
testStoreReadOfUserDefinedCollectionClass_2()
|
void |
testStoreReadOfUserDefinedCollectionClass()
|
void |
testStoreSimpleCollections()
|
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 |
Constructor Detail |
public CollectionTest()
Method Detail |
public static void main(java.lang.String[] args)
public void setUp() throws java.lang.Exception
java.lang.Exception
public void tearDown()
public void testReadProxyCollection() throws java.lang.Exception
java.lang.Exception
public void testStoreReadOfUserDefinedCollectionClass()
public void testStoreReadOfUserDefinedCollectionClass_2()
public void testStoreDeleteSimpleCollections()
public void testDeleteCollection()
public void testDeleteMainObjectWithOneToNRelation()
public void testStoreDeleteSimpleCollections_2()
public void testStoreSimpleCollections()
public void testAddNewObjectsToExistingCollection()
public void testStoreCollectionObjectsWithBackReference()
testStoreSimpleCollections()
but now the
collection objects have a reference back to main object.
Curious but this test does not pass
public void testOneBookShelfQueryByCollection() throws java.lang.Exception
java.lang.Exception
public void testOneBookShelfQueryByIterator() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |