org.opensubsystems.core.persist.db
Class DatabaseFactoryClassFactoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.opensubsystems.core.persist.db.DatabaseFactoryClassFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class DatabaseFactoryClassFactoryTest
extends junit.framework.TestCase

Tests for factory which can create database factory classes based on other classes based on name modification.

Version:
$Id: DatabaseFactoryClassFactoryTest.java,v 1.6 2007/01/07 06:14:20 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Constructor Summary
DatabaseFactoryClassFactoryTest(java.lang.String arg0)
          Constructor for DatabaseFactoryClassFactoryTest.
 
Method Summary
protected  void setUp()
          Set up environment for the test case.
protected  void tearDown()
          Restore original environment after the test case.
 void testCreateInstanceWithClass()
          Test createNewInstance method with Class parameter
 void testCreateInstanceWithClassAndDefault()
          Test createNewInstance method with Class parameter and default class
 void testCreateInstanceWithString()
          Test createNewInstance method with Strig parameter
 void testCreateInstanceWithStringAndDefault()
          Test createNewInstance method with String parameter and default class
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseFactoryClassFactoryTest

public DatabaseFactoryClassFactoryTest(java.lang.String arg0)
Constructor for DatabaseFactoryClassFactoryTest.

Parameters:
arg0 - - name of the test
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Set up environment for the test case.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception - - an error has occured during setting up test

tearDown

protected void tearDown()
                 throws java.lang.Exception
Restore original environment after the test case.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception - - an error has occured during tearing down up test

testCreateInstanceWithClass

public void testCreateInstanceWithClass()
                                 throws java.lang.Exception
Test createNewInstance method with Class parameter

Throws:
java.lang.Exception - - and error has occured

testCreateInstanceWithClassAndDefault

public void testCreateInstanceWithClassAndDefault()
                                           throws java.lang.Exception
Test createNewInstance method with Class parameter and default class

Throws:
java.lang.Exception - - and error has occured

testCreateInstanceWithString

public void testCreateInstanceWithString()
                                  throws java.lang.Exception
Test createNewInstance method with Strig parameter

Throws:
java.lang.Exception - - and error has occured

testCreateInstanceWithStringAndDefault

public void testCreateInstanceWithStringAndDefault()
                                            throws java.lang.Exception
Test createNewInstance method with String parameter and default class

Throws:
java.lang.Exception - - and error has occured


Copyright © 2003 - 2006 OpenSubsystems s.r.o.