com.objectwave.persist.objectConstruction
Class ProcessResultSet.Test

java.lang.Object
  |
  +--com.objectwave.test.UnitTestBaseImpl
        |
        +--com.objectwave.persist.objectConstruction.ProcessResultSet.Test
All Implemented Interfaces:
UnitTest
Enclosing class:
ProcessResultSet

public static class ProcessResultSet.Test
extends UnitTestBaseImpl

Unit tests. Although there are now 11 tests for this class, this is probably at least 12 test shy of extensive testing. There are MANY minute variants that can effect the build process, I've barely scratched the surface. Feel free to add tests as needed.

Version:
$Id: ProcessResultSet.java,v 1.1.1.1 2001/02/13 23:18:41 dhoag Exp $
Author:
dhoag

Field Summary
 
Fields inherited from class com.objectwave.test.UnitTestBaseImpl
testContext
 
Constructor Summary
ProcessResultSet.Test()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the Test class
 void testBrokerName()
          A unit test for JUnit
 void testBuildExtendedForeign()
          Just like the other tests, but the objects are using RDBExtendedPersistenceAdapter.
 void testBuildObject()
          A unit test for JUnit
 void testBuildObject2()
          A unit test for JUnit
 void testBuildObjectForeignProxy()
          Query: Person Map : Person -> Employee
 void testBuildObjectInstance()
          Query: Employee -> Person Map : Person -> Employee, Employee -# Person
 void testBuildObjectInstanceProxy()
          Query: Employee Map : Employee -# Person
 void testBuildObjectInstanceProxy2()
          Change the map to have no column name for the instance relation.
 void testBuildObjectPersistentInstance()
          Query: Employee ->Persistent Person Map : Person ->Employee, Employee -# Person
 void testBuildObjectWithForeign()
          Query: Person -> Employee.
 void testBuildObjectWithForeign2()
          Change the map of Employee to have no column name for the instance relation.
 void testBuildObjectWithPersistentForeign()
          Query: Person ->A Persistent Employee.
 void testNotSingleton()
          A unit test for JUnit
 
Methods inherited from class com.objectwave.test.UnitTestBaseImpl
createTest, removeFile, setUp, tearDown, writeFile, writeFileResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessResultSet.Test

public ProcessResultSet.Test()
Method Detail

main

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

Parameters:
args - The command line arguments

testBuildObjectPersistentInstance

public void testBuildObjectPersistentInstance()
                                       throws java.lang.InstantiationException,
                                              java.lang.IllegalAccessException
Query: Employee ->Persistent Person Map : Person ->Employee, Employee -# Person

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObjectWithPersistentForeign

public void testBuildObjectWithPersistentForeign()
                                          throws java.lang.InstantiationException,
                                                 java.lang.IllegalAccessException
Query: Person ->A Persistent Employee. Map : Person ->Employee, Employee -# Person

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildExtendedForeign

public void testBuildExtendedForeign()
                              throws java.lang.InstantiationException,
                                     java.lang.IllegalAccessException
Just like the other tests, but the objects are using RDBExtendedPersistenceAdapter.

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObjectWithForeign2

public void testBuildObjectWithForeign2()
                                 throws java.lang.InstantiationException,
                                        java.lang.IllegalAccessException
Change the map of Employee to have no column name for the instance relation. Query: Person ->Employee. Map : Person ->Employee, Employee - Person

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObjectInstanceProxy2

public void testBuildObjectInstanceProxy2()
                                   throws java.lang.InstantiationException,
                                          java.lang.IllegalAccessException
Change the map to have no column name for the instance relation. Query: Employee Map : Employee - Person

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObjectInstance

public void testBuildObjectInstance()
                             throws java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Query: Employee -> Person Map : Person -> Employee, Employee -# Person

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObjectInstanceProxy

public void testBuildObjectInstanceProxy()
                                  throws java.lang.InstantiationException,
                                         java.lang.IllegalAccessException
Query: Employee Map : Employee -# Person

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObjectForeignProxy

public void testBuildObjectForeignProxy()
                                 throws java.lang.InstantiationException,
                                        java.lang.IllegalAccessException
Query: Person Map : Person -> Employee

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObjectWithForeign

public void testBuildObjectWithForeign()
                                throws java.lang.InstantiationException,
                                       java.lang.IllegalAccessException
Query: Person -> Employee. Map : Person -> Employee, Employee -# Person

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBrokerName

public void testBrokerName()
                    throws java.lang.InstantiationException,
                           java.lang.IllegalAccessException
A unit test for JUnit

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testBuildObject

public void testBuildObject()
                     throws java.lang.InstantiationException,
                            java.lang.IllegalAccessException
A unit test for JUnit

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

testNotSingleton

public void testNotSingleton()
A unit test for JUnit


testBuildObject2

public void testBuildObject2()
                      throws java.lang.InstantiationException,
                             java.lang.IllegalAccessException
A unit test for JUnit

Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException