org.apache.ojb.odmg
Class RITest

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

public class RITest
extends junit.framework.TestCase

Demo Application that shows basic concepts for Applications using the OJB ODMG implementation as an transactional object server.


Constructor Summary
RITest(java.lang.String name)
           
 
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 testDelete()
           
 void testInsertAfterDelete()
           
 void testStoreFKinPK()
          Test referential integrity with the ODMG-Layer, the foreign key is part of the primary key of the detail table in this case
 void testStoreFKnoPK()
          Test referential integrity with the ODMG-Layer, the foreign key is not a part of the primary key of the detail.
 
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

RITest

public RITest(java.lang.String name)
Method Detail

main

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

setUp

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


tearDown

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


testStoreFKnoPK

public void testStoreFKnoPK()
                     throws java.lang.Exception
Test referential integrity with the ODMG-Layer, the foreign key is not a part of the primary key of the detail.

Throws:
java.lang.Exception

testStoreFKinPK

public void testStoreFKinPK()
                     throws java.lang.Exception
Test referential integrity with the ODMG-Layer, the foreign key is part of the primary key of the detail table in this case

Throws:
java.lang.Exception

testDelete

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

testInsertAfterDelete

public void testInsertAfterDelete()
                           throws java.lang.Exception
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