SPT RWT Application API

com.sptci.rwt
Class BatchQueryExecutorTest

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

public class BatchQueryExecutorTest
extends TestCase

Unit test for the BatchQueryExecutor class.

© Copyright 2007 Sans Pareil Technologies, Inc.

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

Field Summary
(package private) static int total
           
 
Constructor Summary
BatchQueryExecutorTest()
           
 
Method Summary
(package private) static List<Rows> delete()
          Delete the inserted rows from the table.
(package private) static List<Rows> insert()
          Insert test records into the table.
static Test suite()
           
 void testInsert()
          Test executing insert statements.
 void testMaxSize()
          Test specifying maxRows to restrict result set size.
 void testNumberOfRows()
          Test the TableTypeAnalyser.getNumberOfRows(com.sptci.rwt.TableTypeMetaData) method.
 void testSelect()
          Test executing select statements.
 void testUpdate()
          Test executing update statements.
 void testZDelete()
          Test executing a delete statement.
 
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

total

static final int total
See Also:
Constant Field Values
Constructor Detail

BatchQueryExecutorTest

public BatchQueryExecutorTest()
Method Detail

suite

public static Test suite()

testInsert

public void testInsert()
                throws Exception
Test executing insert statements.

Throws:
Exception

testSelect

public void testSelect()
                throws Exception
Test executing select statements.

Throws:
Exception

testUpdate

public void testUpdate()
                throws Exception
Test executing update statements.

Throws:
Exception

testMaxSize

public void testMaxSize()
                 throws Exception
Test specifying maxRows to restrict result set size.

Throws:
Exception

testNumberOfRows

public void testNumberOfRows()
                      throws Exception
Test the TableTypeAnalyser.getNumberOfRows(com.sptci.rwt.TableTypeMetaData) method.

Throws:
Exception

testZDelete

public void testZDelete()
                 throws Exception
Test executing a delete statement.

Throws:
Exception

insert

static List<Rows> insert()
                  throws Exception
Insert test records into the table.

Throws:
Exception

delete

static List<Rows> delete()
                  throws Exception
Delete the inserted rows from the table.

Throws:
Exception

SPT RWT Application API