com.objectwave.persist.broker
Class BasicTestBroker

java.lang.Object
  |
  +--com.objectwave.test.UnitTestBaseImpl
        |
        +--com.objectwave.persist.broker.BasicTestBroker
All Implemented Interfaces:
UnitTest
Direct Known Subclasses:
FileBroker.Test, HypersonicBroker.Test, ObjectPoolBroker.Test

public class BasicTestBroker
extends UnitTestBaseImpl

Generic test suite to exercise a broker instance. If no brokerImpl is specified or manually set, it defaults to using the FileBroker.

Version:
$Id: BasicTestBroker.java,v 1.5 2002/03/23 13:42:10 dave_hoag Exp $
Author:
dhoag

Field Summary
 Broker broker
           
 
Fields inherited from class com.objectwave.test.UnitTestBaseImpl
testContext
 
Constructor Summary
BasicTestBroker()
          Constructor for the BasicTestBroker object
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the Test class
 void setUp(java.lang.String str, TestContext context)
          The JUnit setup method
 void tearDown(TestContext context)
          The teardown method for JUnit
 void testCollectionProxy()
          A unit test for JUnit
 void testConstrainingFk()
          A unit test for JUnit
 void testConstrainingInstance()
          A unit test for JUnit
 void testCrossFieldConstraint()
          A unit test for JUnit
 void testDelete()
          A unit test for JUnit
 void testDualInsert()
          A unit test for JUnit
 void testFkProxy()
          A unit test for JUnit
 void testInstanceProxy()
          A unit test for JUnit
 void testListFind()
          A unit test for JUnit
 void testResave()
          A unit test for JUnit
 void testSimpleFind()
          A unit test for JUnit
 void testSimpleSave()
          A unit test for JUnit
 void testSimpleSaveList()
          A unit test for JUnit
 void testTargetFileName()
          A unit test for JUnit
 
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
 

Field Detail

broker

public Broker broker
Constructor Detail

BasicTestBroker

public BasicTestBroker()
Constructor for the BasicTestBroker object

Method Detail

main

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

Parameters:
args - The command line arguments

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 - Description of Parameter

testTargetFileName

public void testTargetFileName()
A unit test for JUnit


testConstrainingInstance

public void testConstrainingInstance()
                              throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testCrossFieldConstraint

public void testCrossFieldConstraint()
                              throws QueryException
A unit test for JUnit

Throws:
QueryException

testConstrainingFk

public void testConstrainingFk()
                        throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testDualInsert

public void testDualInsert()
                    throws QueryException,
                           java.lang.Exception
A unit test for JUnit

Throws:
QueryException
java.lang.Exception

testInstanceProxy

public void testInstanceProxy()
                       throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testFkProxy

public void testFkProxy()
                 throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testListFind

public void testListFind()
                  throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testSimpleFind

public void testSimpleFind()
                    throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testDelete

public void testDelete()
                throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testSimpleSaveList

public void testSimpleSaveList()
                        throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testResave

public void testResave()
                throws QueryException
A unit test for JUnit

Throws:
QueryException

testSimpleSave

public void testSimpleSave()
                    throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception

testCollectionProxy

public void testCollectionProxy()
                         throws QueryException
A unit test for JUnit

Throws:
QueryException - Description of Exception