|
|||||||||
| 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.odmg.CollectionsTest
Test case handles with collections.
| Nested Class Summary | |
static class |
CollectionsTest.CollectibleA
|
static interface |
CollectionsTest.CollectibleAIF
|
static class |
CollectionsTest.CollectibleB
|
static interface |
CollectionsTest.CollectibleBIF
|
static class |
CollectionsTest.CollectibleC
|
static interface |
CollectionsTest.CollectibleCIF
|
static class |
CollectionsTest.Gatherer
|
| Constructor Summary | |
CollectionsTest(java.lang.String s)
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
setUp()
|
protected void |
tearDown()
|
void |
testAddCollectionElementCrossAPI()
|
void |
testAddCollectionElementWithBackReference()
Create an main object Gatherer with a collection of objects CollectiblesC (CollectiblesC has a reference back to the main object). |
void |
testAddCollectionElementWithoutBackReference()
Create an main object Gatherer with a collection of objects CollectiblesC. |
void |
testRemoveCollectionElementWithoutBackReference_2()
Create an main object Gatherer with a collection of objects CollectiblesC. |
void |
testRemoveCollectionElementWithoutBackReference()
Create an main object Gatherer with a collection of objects CollectiblesC. |
void |
testStoreDeleteCollectionElementWithBackReference()
|
void |
testStoreFetchDeleteCollectionWithBackReference()
|
void |
testUpdateCollection()
Create object with 3 objects in associated collection. |
void |
testUpdateCollectionWithBackReference()
|
void |
testUpdateWhenExchangeObjectsInCollection()
we create two objects with one object in collection: gat1{collC1} and gat2{collC2} then we exchange the collections gat1{collC2} and gat2{collC1} and commit. |
| 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 CollectionsTest(java.lang.String s)
| Method Detail |
public static void main(java.lang.String[] args)
public void setUp()
throws java.lang.Exception
java.lang.Exception
protected void tearDown()
throws java.lang.Exception
java.lang.Exception
public void testRemoveCollectionElementWithoutBackReference()
throws java.lang.Exception
java.lang.Exception
public void testStoreFetchDeleteCollectionWithBackReference()
throws java.lang.Exception
java.lang.Exception
public void testStoreDeleteCollectionElementWithBackReference()
throws java.lang.Exception
java.lang.Exception
public void testUpdateCollectionWithBackReference()
throws java.lang.Exception
java.lang.Exception
public void testUpdateCollection()
throws java.lang.Exception
java.lang.Exception
public void testUpdateWhenExchangeObjectsInCollection()
throws java.lang.Exception
java.lang.Exception
public void testRemoveCollectionElementWithoutBackReference_2()
throws java.lang.Exception
java.lang.Exception
public void testAddCollectionElementWithoutBackReference()
throws java.lang.Exception
java.lang.Exception
public void testAddCollectionElementWithBackReference()
throws java.lang.Exception
java.lang.Exception
public void testAddCollectionElementCrossAPI()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||