com.objectwave.persist.bcel.examples
Class ExtensiveTest

java.lang.Object
  |
  +--com.objectwave.test.UnitTestBaseImpl
        |
        +--com.objectwave.persist.bcel.examples.ExtensiveTest
All Implemented Interfaces:
UnitTest

public class ExtensiveTest
extends UnitTestBaseImpl

Exercise many aspects of the transparent persistence solution.

Version:
$Id: ExtensiveTest.java,v 1.2 2002/08/24 15:05:03 dave_hoag Exp $
Author:
dave_hoag

Field Summary
 
Fields inherited from class com.objectwave.test.UnitTestBaseImpl
testContext
 
Constructor Summary
ExtensiveTest()
           
 
Method Summary
protected  void buildDatabase(HypersonicBroker broker)
           
protected  void dropDatabase(HypersonicBroker broker)
           
static void main(java.lang.String[] args)
          The main program for the ExtensiveTest class
 void setUp(java.lang.String str, TestContext context)
          The JUnit setup method
protected  Employee setupSmallCompany()
          Popuplate the database with a small company.
 void tearDown(TestContext context)
          The teardown method for JUnit
 Employee testCollectionProxy()
          A unit test for JUnit
 void testNativeArray()
           
 
Methods inherited from class com.objectwave.test.UnitTestBaseImpl
createTest, removeFile, writeFile, writeFileResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensiveTest

public ExtensiveTest()
Method Detail

setUp

public void setUp(java.lang.String str,
                  TestContext context)
           throws java.lang.Exception
The JUnit setup method

Specified by:
setUp in interface UnitTest
Overrides:
setUp in class UnitTestBaseImpl
Parameters:
str - The new Up value
context - The new Up value
Throws:
java.lang.Exception

tearDown

public void tearDown(TestContext context)
The teardown method for JUnit

Specified by:
tearDown in interface UnitTest
Overrides:
tearDown in class UnitTestBaseImpl
Parameters:
context -

dropDatabase

protected void dropDatabase(HypersonicBroker broker)
                     throws java.lang.Exception
Parameters:
broker -
Throws:
java.lang.Exception

buildDatabase

protected void buildDatabase(HypersonicBroker broker)
                      throws java.lang.Exception
Parameters:
broker -
Throws:
java.lang.Exception

setupSmallCompany

protected Employee setupSmallCompany()
                              throws java.lang.Exception
Popuplate the database with a small company. NOTE: I'm not updating the actual collections - just updating the data in the database. You wouldn't want to use any of these instances in an application since the collections would not reflect the contents of the DB.

java.lang.Exception

testCollectionProxy

public Employee testCollectionProxy()
                             throws java.lang.Exception
A unit test for JUnit

Throws:
java.lang.Exception

testNativeArray

public void testNativeArray()
                     throws java.lang.Exception
java.lang.Exception

main

public static void main(java.lang.String[] args)
The main program for the ExtensiveTest class

Parameters:
args - The command line arguments