org.apache.commons.dbutils.wrappers
Class SqlNullCheckedResultSetTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.dbutils.BaseTestCase
              extended by org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSetTest
All Implemented Interfaces:
junit.framework.Test

public class SqlNullCheckedResultSetTest
extends BaseTestCase

Test cases for SqlNullCheckedResultSet class.


Field Summary
 
Fields inherited from class org.apache.commons.dbutils.BaseTestCase
COLS, emptyResultSet, metaData, ROWS
 
Constructor Summary
SqlNullCheckedResultSetTest()
           
 
Method Summary
 void setUp()
          Sets up instance variables required by this test case.
 void testGetAsciiStream()
          Tests the getAsciiStream implementation.
 void testGetBigDecimal()
          Tests the getBigDecimal implementation.
 void testGetBinaryStream()
          Tests the getBinaryStream implementation.
 void testGetBlob()
          Tests the getBlob implementation.
 void testGetBoolean()
          Tests the getBoolean implementation.
 void testGetByte()
          Tests the getByte implementation.
 void testGetBytes()
          Tests the getByte implementation.
 void testGetCharacterStream()
          Tests the getCharacterStream implementation.
 void testGetClob()
          Tests the getClob implementation.
 void testGetDate()
          Tests the getDate implementation.
 void testGetDouble()
          Tests the getDouble implementation.
 void testGetFloat()
          Tests the getFloat implementation.
 void testGetInt()
          Tests the getInt implementation.
 void testGetLong()
          Tests the getLong implementation.
 void testGetObject()
          Tests the getObject implementation.
 void testGetRef()
          Tests the getRef implementation.
 void testGetShort()
          Tests the getShort implementation.
 void testGetString()
          Tests the getString implementation.
 void testGetTime()
          Tests the getTime implementation.
 void testGetTimestamp()
          Tests the getTimestamp implementation.
 void testSetNullAsciiStream()
          Tests the setNullAsciiStream implementation.
 void testSetNullBigDecimal()
          Tests the setNullBigDecimal implementation.
 void testSetNullBinaryStream()
          Tests the setNullBinaryStream implementation.
 void testSetNullBlob()
          Tests the setNullBlob implementation.
 void testSetNullBoolean()
          Tests the setNullBoolean implementation.
 void testSetNullByte()
          Tests the setNullByte implementation.
 void testSetNullBytes()
          Tests the setNullByte implementation.
 void testSetNullCharacterStream()
          Tests the setNullCharacterStream implementation.
 void testSetNullClob()
          Tests the setNullClob implementation.
 void testSetNullDate()
          Tests the setNullDate implementation.
 void testSetNullDouble()
          Tests the setNullDouble implementation.
 void testSetNullFloat()
          Tests the setNullFloat implementation.
 void testSetNullInt()
          Tests the setNullInt implementation.
 void testSetNullLong()
          Tests the setNullLong implementation.
 void testSetNullObject()
          Tests the setNullObject implementation.
 void testSetNullRef()
          Tests the setNullRef implementation.
 void testSetNullShort()
          Tests the setNullShort implementation.
 void testSetNullString()
          Tests the setNullString implementation.
 void testSetNullTime()
          Tests the setNullTime implementation.
 void testSetNullTimestamp()
          Tests the setNullTimestamp implementation.
 void testURL()
          Tests the getURL and setNullURL implementations.
 
Methods inherited from class org.apache.commons.dbutils.BaseTestCase
createMockResultSet
 
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
 

Constructor Detail

SqlNullCheckedResultSetTest

public SqlNullCheckedResultSetTest()
Method Detail

setUp

public void setUp()
           throws Exception
Sets up instance variables required by this test case.

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

testGetAsciiStream

public void testGetAsciiStream()
                        throws SQLException
Tests the getAsciiStream implementation.

Throws:
SQLException

testGetBigDecimal

public void testGetBigDecimal()
                       throws SQLException
Tests the getBigDecimal implementation.

Throws:
SQLException

testGetBinaryStream

public void testGetBinaryStream()
                         throws SQLException
Tests the getBinaryStream implementation.

Throws:
SQLException

testGetBlob

public void testGetBlob()
                 throws SQLException
Tests the getBlob implementation.

Throws:
SQLException

testGetBoolean

public void testGetBoolean()
                    throws SQLException
Tests the getBoolean implementation.

Throws:
SQLException

testGetByte

public void testGetByte()
                 throws SQLException
Tests the getByte implementation.

Throws:
SQLException

testGetBytes

public void testGetBytes()
                  throws SQLException
Tests the getByte implementation.

Throws:
SQLException

testGetCharacterStream

public void testGetCharacterStream()
                            throws SQLException
Tests the getCharacterStream implementation.

Throws:
SQLException

testGetClob

public void testGetClob()
                 throws SQLException
Tests the getClob implementation.

Throws:
SQLException

testGetDate

public void testGetDate()
                 throws SQLException
Tests the getDate implementation.

Throws:
SQLException

testGetDouble

public void testGetDouble()
                   throws SQLException
Tests the getDouble implementation.

Throws:
SQLException

testGetFloat

public void testGetFloat()
                  throws SQLException
Tests the getFloat implementation.

Throws:
SQLException

testGetInt

public void testGetInt()
                throws SQLException
Tests the getInt implementation.

Throws:
SQLException

testGetLong

public void testGetLong()
                 throws SQLException
Tests the getLong implementation.

Throws:
SQLException

testGetObject

public void testGetObject()
                   throws SQLException
Tests the getObject implementation.

Throws:
SQLException

testGetRef

public void testGetRef()
                throws SQLException
Tests the getRef implementation.

Throws:
SQLException

testGetShort

public void testGetShort()
                  throws SQLException
Tests the getShort implementation.

Throws:
SQLException

testGetString

public void testGetString()
                   throws SQLException
Tests the getString implementation.

Throws:
SQLException

testGetTime

public void testGetTime()
                 throws SQLException
Tests the getTime implementation.

Throws:
SQLException

testGetTimestamp

public void testGetTimestamp()
                      throws SQLException
Tests the getTimestamp implementation.

Throws:
SQLException

testURL

public void testURL()
             throws SQLException,
                    MalformedURLException,
                    IllegalAccessException,
                    IllegalArgumentException,
                    InvocationTargetException
Tests the getURL and setNullURL implementations. Uses reflection to allow for building under JDK 1.3.

Throws:
SQLException
MalformedURLException
IllegalAccessException
IllegalArgumentException
InvocationTargetException

testSetNullAsciiStream

public void testSetNullAsciiStream()
                            throws SQLException
Tests the setNullAsciiStream implementation.

Throws:
SQLException

testSetNullBigDecimal

public void testSetNullBigDecimal()
                           throws SQLException
Tests the setNullBigDecimal implementation.

Throws:
SQLException

testSetNullBinaryStream

public void testSetNullBinaryStream()
                             throws SQLException
Tests the setNullBinaryStream implementation.

Throws:
SQLException

testSetNullBlob

public void testSetNullBlob()
                     throws SQLException
Tests the setNullBlob implementation.

Throws:
SQLException

testSetNullBoolean

public void testSetNullBoolean()
                        throws SQLException
Tests the setNullBoolean implementation.

Throws:
SQLException

testSetNullByte

public void testSetNullByte()
                     throws SQLException
Tests the setNullByte implementation.

Throws:
SQLException

testSetNullBytes

public void testSetNullBytes()
                      throws SQLException
Tests the setNullByte implementation.

Throws:
SQLException

testSetNullCharacterStream

public void testSetNullCharacterStream()
                                throws SQLException
Tests the setNullCharacterStream implementation.

Throws:
SQLException

testSetNullClob

public void testSetNullClob()
                     throws SQLException
Tests the setNullClob implementation.

Throws:
SQLException

testSetNullDate

public void testSetNullDate()
                     throws SQLException
Tests the setNullDate implementation.

Throws:
SQLException

testSetNullDouble

public void testSetNullDouble()
                       throws SQLException
Tests the setNullDouble implementation.

Throws:
SQLException

testSetNullFloat

public void testSetNullFloat()
                      throws SQLException
Tests the setNullFloat implementation.

Throws:
SQLException

testSetNullInt

public void testSetNullInt()
                    throws SQLException
Tests the setNullInt implementation.

Throws:
SQLException

testSetNullLong

public void testSetNullLong()
                     throws SQLException
Tests the setNullLong implementation.

Throws:
SQLException

testSetNullObject

public void testSetNullObject()
                       throws SQLException
Tests the setNullObject implementation.

Throws:
SQLException

testSetNullShort

public void testSetNullShort()
                      throws SQLException
Tests the setNullShort implementation.

Throws:
SQLException

testSetNullString

public void testSetNullString()
                       throws SQLException
Tests the setNullString implementation.

Throws:
SQLException

testSetNullRef

public void testSetNullRef()
                    throws SQLException
Tests the setNullRef implementation.

Throws:
SQLException

testSetNullTime

public void testSetNullTime()
                     throws SQLException
Tests the setNullTime implementation.

Throws:
SQLException

testSetNullTimestamp

public void testSetNullTimestamp()
                          throws SQLException
Tests the setNullTimestamp implementation.

Throws:
SQLException


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