org.opensubsystems
Class GenericDatabaseTests

java.lang.Object
  extended by org.opensubsystems.GenericDatabaseTests
Direct Known Subclasses:
DB2Tests, HsqlDBTests, MaxDBTests, MSSQLTests, MySQLTests, OracleTests, PostgreSQLTests, SapDBTests, SybaseTests

public class GenericDatabaseTests
extends java.lang.Object

This class collects all generic database tests, which are then executed for a specific database.

Version:
$Id: GenericDatabaseTests.java,v 1.15 2007/01/28 06:54:55 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.8 2005/02/12 23:14:05 bastafidli

Constructor Summary
protected GenericDatabaseTests()
          Private constructor since this class cannot be instantiated
 
Method Summary
protected static void addGenericTests(junit.framework.TestSuite suite)
          Add all tests which should be executed for some specific database
protected static void addGenericTestsFromTestSuite(junit.framework.TestSuite suiteToAddTo, java.lang.String strSuiteClassToAddFrom)
          Add tests from a suite specified by a class name to a specified suite.
static junit.framework.Test suite()
          Create suite of all tests which should be run for this database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericDatabaseTests

protected GenericDatabaseTests()
Private constructor since this class cannot be instantiated

Method Detail

suite

public static junit.framework.Test suite()
Create suite of all tests which should be run for this database.

Returns:
Test - suite of tests to run for this database

addGenericTests

protected static void addGenericTests(junit.framework.TestSuite suite)
Add all tests which should be executed for some specific database

Parameters:
suite - - suite to add tests to

addGenericTestsFromTestSuite

protected static void addGenericTestsFromTestSuite(junit.framework.TestSuite suiteToAddTo,
                                                   java.lang.String strSuiteClassToAddFrom)
Add tests from a suite specified by a class name to a specified suite.

Parameters:
suiteToAddTo - - suite to add tests to
strSuiteClassToAddFrom - - class for a suite to add tests from


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