org.apache.ojb.odmg
Class BidirectionalAssociationTest

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

public class BidirectionalAssociationTest
extends junit.framework.TestCase

tests a bidirectional association A<-->B

See Also:
for equivalent test in PB API

Constructor Summary
BidirectionalAssociationTest(java.lang.String name)
          Insert the method's description here.
 
Method Summary
static void main(java.lang.String[] args)
           
 void NOTWORKINGtestCreateWithoutUpdate()
          this test doesn't work as OJB won't do the insert then execute the update.
 void NOTWORKINGtestGetA()
          no clue why this isn't working.
 void setUp()
           
 void tearDown()
          Insert the method's description here.
 void testCreateWithUpdate()
          test that we can create 2 objects that have a bidirectional association in ODMG API
 void testDeleteA()
          test deleting an object participating in a bidirectional associative relationship.
 void testDeleteB()
          test deleting an object participating in a bidirectional associative relationship.
 void testGetB()
           
 void testUpdate()
          nothing to update yet.
 
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

BidirectionalAssociationTest

public BidirectionalAssociationTest(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)

testCreateWithUpdate

public void testCreateWithUpdate()
                          throws ODMGException
test that we can create 2 objects that have a bidirectional association in ODMG API

Throws:
ODMGException

NOTWORKINGtestCreateWithoutUpdate

public void NOTWORKINGtestCreateWithoutUpdate()
                                       throws ODMGException
this test doesn't work as OJB won't do the insert then execute the update.

Throws:
ODMGException

NOTWORKINGtestGetA

public void NOTWORKINGtestGetA()
                        throws java.lang.Exception
no clue why this isn't working.

Throws:
java.lang.Exception

testGetB

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

testUpdate

public void testUpdate()
nothing to update yet.


testDeleteA

public void testDeleteA()
                 throws java.lang.Exception
test deleting an object participating in a bidirectional associative relationship. Will throw if it can't delete.

Throws:
java.lang.Exception

testDeleteB

public void testDeleteB()
                 throws java.lang.Exception
test deleting an object participating in a bidirectional associative relationship. Will throw if it can't delete.

Throws:
java.lang.Exception

setUp

public void setUp()

tearDown

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



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