SPT RWT Application API

com.sptci.rwt
Class CreateTestObjects

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.sptci.rwt.CreateTestObjects
All Implemented Interfaces:
Test

public class CreateTestObjects
extends TestCase

Unit test setup class for creating test database objects to use in the unit test suite. This also functions as a rudimentary test for the BatchQueryExecutor class.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: CreateTestObjects.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-09-25

Field Summary
(package private) static String functionName
           
(package private) static String indexName
           
(package private) static ConnectionManager manager
           
(package private) static ConnectionParameters parameters
           
(package private) static String refTableName
           
(package private) static String sequenceName
           
(package private) static String tableName
           
(package private) static String triggerName
           
(package private) static String viewName
           
 
Constructor Summary
CreateTestObjects()
           
 
Method Summary
protected  void createTable()
          Create a test table to ensure that there is at least one table for testing analysers.
protected  ConnectionParameters getParameters()
          Fetch the connection parameters from the build properties file
static Test suite()
           
 void testCreate()
          Test creating tables using BatchQueryExecutor.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parameters

static ConnectionParameters parameters

manager

static ConnectionManager manager

tableName

static final String tableName

refTableName

static final String refTableName

viewName

static final String viewName

functionName

static final String functionName

triggerName

static final String triggerName

sequenceName

static final String sequenceName

indexName

static final String indexName
Constructor Detail

CreateTestObjects

public CreateTestObjects()
Method Detail

suite

public static Test suite()

testCreate

public void testCreate()
                throws Exception
Test creating tables using BatchQueryExecutor.

Throws:
Exception

getParameters

protected ConnectionParameters getParameters()
Fetch the connection parameters from the build properties file


createTable

protected void createTable()
                    throws Exception
Create a test table to ensure that there is at least one table for testing analysers.

Throws:
Exception

SPT RWT Application API