|
|||||||||
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.MtoNMapping
This TestClass tests OJB facilities to work with polymorphism.
Field Summary | |
(package private) PersistenceBroker |
broker
|
Constructor Summary | |
MtoNMapping(java.lang.String name)
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
setUp()
|
void |
tearDown()
|
void |
testDeleteUnidirectional()
delete all projects of a person |
void |
testDeletion()
test deleting objects from an m:n association |
void |
testInsertAndDelete()
Add a new Project, delete an existing Project |
void |
testInsertion()
test inserting new objects to m:n association |
void |
testInsertWithIndirectionTable_1()
Add two new persons and one new project. |
void |
testInsertWithIndirectionTable_2()
Add two new persons and one new project. |
void |
testInsertWithIndirectionTable_3()
Add two new persons to existing project. |
void |
testLoadingWithAssociationClass()
test a manually build association via the association class Role |
void |
testMNLoading()
test loading of m:n mapped object nets |
void |
testMNLoadingPrefetch()
test loading of m:n mapped object nets with prefetch |
void |
testMNLoadingUnidirectional()
test loading of m:n unidirectionally mapped objects |
void |
testPolymorphMToN()
this tests if polymorph collections (i.e. |
void |
testPolymorphMToNDelete()
|
void |
testPolymorphMToNUpdate()
|
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 MtoNMapping(java.lang.String name)
Method Detail |
public static void main(java.lang.String[] args)
public void setUp()
public void tearDown()
public void testPolymorphMToN()
public void testPolymorphMToNUpdate()
public void testPolymorphMToNDelete()
public void testMNLoading() throws java.lang.Exception
java.lang.Exception
public void testMNLoadingPrefetch() throws java.lang.Exception
java.lang.Exception
public void testMNLoadingUnidirectional() throws java.lang.Exception
java.lang.Exception
public void testLoadingWithAssociationClass() throws java.lang.Exception
java.lang.Exception
public void testInsertion() throws java.lang.Exception
java.lang.Exception
public void testInsertAndDelete() throws java.lang.Exception
java.lang.Exception
public void testInsertWithIndirectionTable_1() throws java.lang.Exception
java.lang.Exception
public void testInsertWithIndirectionTable_2() throws java.lang.Exception
java.lang.Exception
public void testInsertWithIndirectionTable_3() throws java.lang.Exception
java.lang.Exception
public void testDeletion() throws java.lang.Exception
java.lang.Exception
public void testDeleteUnidirectional() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |