org.apache.ojb.broker.sequence
Class NativeIdentifierTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.ojb.broker.sequence.NativeIdentifierTest
All Implemented Interfaces:
junit.framework.Test

public class NativeIdentifierTest
extends junit.framework.TestCase

Test case for SequenceManagerNativeImpl. These test check support for native identity columns. Test case only works for Hsql and Mysql.

Version:
$Id: NativeIdentifierTest.java,v 1.9 2003/10/31 22:21:18 arminw Exp $
Author:
Armin Waibel

Nested Class Summary
static class NativeIdentifierTest.CollectionReference
           
static class NativeIdentifierTest.MainObject
           
static class NativeIdentifierTest.SingleReference
           
 
Constructor Summary
NativeIdentifierTest(java.lang.String s)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testAllInOne()
           
 void testDelete_2()
           
 void testDelete()
           
 void testReferenceInsertUpdate()
           
 void testSimpleInsert()
           
 void testSimpleInsertODMG()
           
 
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

NativeIdentifierTest

public NativeIdentifierTest(java.lang.String s)
Method Detail

main

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

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testSimpleInsert

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

testSimpleInsertODMG

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

testAllInOne

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

testReferenceInsertUpdate

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

testDelete

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

testDelete_2

public void testDelete_2()
                  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