org.apache.commons.dbutils
Class BaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.dbutils.BaseTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ArrayHandlerTest, ArrayListHandlerTest, BasicRowProcessorTest, BeanHandlerTest, BeanListHandlerTest, BeanProcessorTest, ColumnListHandlerTest, KeyedHandlerTest, MapHandlerTest, MapListHandlerTest, ProxyFactoryTest, QueryLoaderTest, ResultSetIteratorTest, ScalarHandlerTest, SqlNullCheckedResultSetTest, StringTrimmedResultSetTest

public class BaseTestCase
extends junit.framework.TestCase

BaseTestCase is the base class for all test cases as well as the "all tests" runner.


Field Summary
protected static int COLS
          The number of columns in the MockResultSet.
protected  ResultSet emptyResultSet
          A ResultSet with 0 rows.
protected static ResultSetMetaData metaData
           
protected static int ROWS
          The number of rows in the MockResultSet.
protected  ResultSet rs
          The ResultSet all test methods will use.
 
Constructor Summary
BaseTestCase()
           
 
Method Summary
protected  ResultSet createMockResultSet()
          Creates a freshly initialized ResultSet.
protected  void setUp()
          This is called before each test method so ResultSet will be fresh each time.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

COLS

protected static final int COLS
The number of columns in the MockResultSet.


metaData

protected static final ResultSetMetaData metaData

ROWS

protected static final int ROWS
The number of rows in the MockResultSet.


rs

protected ResultSet rs
The ResultSet all test methods will use.


emptyResultSet

protected ResultSet emptyResultSet
A ResultSet with 0 rows.

Constructor Detail

BaseTestCase

public BaseTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
This is called before each test method so ResultSet will be fresh each time.

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception
See Also:
TestCase.setUp()

createMockResultSet

protected ResultSet createMockResultSet()
Creates a freshly initialized ResultSet.



Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.