SPT RWT Application API

com.sptci.rwt
Class QueryExecutorTest

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

public class QueryExecutorTest
extends TestCase

Unit test for the QueryExecutor class.

© Copyright 2007 Sans Pareil Technologies, Inc.

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

Constructor Summary
QueryExecutorTest()
           
 
Method Summary
private  Rows delete()
          Delete the test record added to table.
private  Rows insert()
          Insert the test record to table.
static Test suite()
           
 void testDelete()
          Test executing a delete statement.
 void testInsert()
          Test executing an insert statement.
 void testMaxRows()
          Test restricting rows of result set
 void testPaging()
          Test paging of result set
 void testSelect()
          Test executing a select statement.
 void testTotalRows()
          Test fetching the total rows in a result set.
 void testUpdate()
          Test executing an update 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
 

Constructor Detail

QueryExecutorTest

public QueryExecutorTest()
Method Detail

suite

public static Test suite()

testInsert

public void testInsert()
                throws Exception
Test executing an insert statement.

Throws:
Exception

testSelect

public void testSelect()
                throws Exception
Test executing a select statement.

Throws:
Exception

testUpdate

public void testUpdate()
                throws Exception
Test executing an update statement.

Throws:
Exception

testPaging

public void testPaging()
                throws Exception
Test paging of result set

Throws:
Exception

testMaxRows

public void testMaxRows()
                 throws Exception
Test restricting rows of result set

Throws:
Exception

testTotalRows

public void testTotalRows()
                   throws Exception
Test fetching the total rows in a result set.

Throws:
Exception

testDelete

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

Throws:
Exception

insert

private Rows insert()
             throws Exception
Insert the test record to table.

Throws:
Exception

delete

private Rows delete()
             throws Exception
Delete the test record added to table.

Throws:
Exception

SPT RWT Application API