org.apache.ojb.odmg
Class ManyToManyTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.ojb.odmg.ManyToManyTest
All Implemented Interfaces:
junit.framework.Test

public class ManyToManyTest
extends junit.framework.TestCase


Field Summary
(package private)  Database m_db
           
(package private)  Implementation m_odmg
           
 
Constructor Summary
ManyToManyTest(java.lang.String name)
          Insert the method's description here.
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
          Insert the method's description here.
 void tearDown()
          Insert the method's description here.
 void testMtoNPolymorphDelete()
          main object gourment has list of food objects, this test check if we delete one food object from the list and lock the main object, do get an updated list
 void testMtoNPolymorphUpdate()
          main object gourment has list of food objects, this test check if we add one food object to the list and lock the main object, do get an updated list
 void testMtoNSeparate_I()
           
 void testMtoNSeparate_II()
           
 void testMtoNTogether()
           
 void testPolymorphMToN()
          this tests if polymorph collections (i.e.
 
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

m_db

Database m_db

m_odmg

Implementation m_odmg
Constructor Detail

ManyToManyTest

public ManyToManyTest(java.lang.String name)
Insert the method's description here. Creation date: (24.12.2000 00:33:40)

Method Detail

main

public static void main(java.lang.String[] args)

setUp

public void setUp()
           throws java.lang.Exception
Insert the method's description here. Creation date: (06.12.2000 21:58:53)

Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Insert the method's description here. Creation date: (06.12.2000 21:59:14)

Throws:
java.lang.Exception

testPolymorphMToN

public void testPolymorphMToN()
                       throws java.lang.Exception
this tests if polymorph collections (i.e. collections of objects implementing a common interface) are treated correctly

Throws:
java.lang.Exception

testMtoNSeparate_I

public void testMtoNSeparate_I()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testMtoNSeparate_II

public void testMtoNSeparate_II()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testMtoNTogether

public void testMtoNTogether()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testMtoNPolymorphUpdate

public void testMtoNPolymorphUpdate()
                             throws java.lang.Exception
main object gourment has list of food objects, this test check if we add one food object to the list and lock the main object, do get an updated list

Throws:
java.lang.Exception

testMtoNPolymorphDelete

public void testMtoNPolymorphDelete()
                             throws java.lang.Exception
main object gourment has list of food objects, this test check if we delete one food object from the list and lock the main object, do get an updated list

Throws:
java.lang.Exception


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14