org.apache.ojb.odmg
Class AutoIncrementWithRelatedObjectTest

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

public class AutoIncrementWithRelatedObjectTest
extends junit.framework.TestCase

Author:
MBaird mattbaird@yahoo.com Equivalent to the PB test of the same name, but redone using ODMG api. works for HSQLDB fails for MSSQL :(
See Also:
AutoIncrementWithRelatedObjectTest

Constructor Summary
AutoIncrementWithRelatedObjectTest(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 testCreateWithoutRelatedObject()
          since java defaults the value of an int to 0, there might be a problem storing an object that uses int's as foreign keys.
 void testCreateWithRelatedObject()
          do the create with a related object to prove it works in ODMG mode.
 
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

AutoIncrementWithRelatedObjectTest

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

testCreateWithoutRelatedObject

public void testCreateWithoutRelatedObject()
                                    throws java.lang.Exception
since java defaults the value of an int to 0, there might be a problem storing an object that uses int's as foreign keys. If this doesn't work, it means we can't use int's as foreign keys in ODMG. :(

Throws:
java.lang.Exception

testCreateWithRelatedObject

public void testCreateWithRelatedObject()
                                 throws java.lang.Exception
do the create with a related object to prove it works in ODMG mode.

Throws:
java.lang.Exception

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)



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