net.sourceforge.sqlunit.test
Class TypesTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.sqlunit.test.TypesTest
All Implemented Interfaces:
junit.framework.Test

public class TypesTest
extends junit.framework.TestCase

Tests for the new flexible data typing system.

Version:
$Revision: 1.9 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
TypesTest(java.lang.String name)
          Boilerplate constructor.
 
Method Summary
static void main(java.lang.String[] argv)
          Boilerplate main method.
static junit.framework.Test suite()
          Boilerplate suite() method.
 void testBeanOpsArrayType()
          Testing Array operations.
 void testBeanOpsBigDecimalType()
          Testing BigDecimal operations.
 void testBeanOpsBinaryType()
          Testing BinaryType operations.
 void testBeanOpsBlobType()
          Testing Blob operations.
 void testBeanOpsBooleanType()
          Testing Boolean operations.
 void testBeanOpsByteArrayType()
          Testing ByteArrayType operations.
 void testBeanOpsByteType()
          Testing ByteType operations.
 void testBeanOpsClobType()
          Testing Clob operations.
 void testBeanOpsDateType()
          Testing Date operations.
 void testBeanOpsDoubleType()
          Testing Double operations.
 void testBeanOpsFloatType()
          Testing Float operations.
 void testBeanOpsIntegerType()
          Testing Integer operations.
 void testBeanOpsJavaObjectType()
          Testing JavaObjectType operations.
 void testBeanOpsLongType()
          Testing LongType operations.
 void testBeanOpsOracleCursorType()
          Testing OracleCursorType operations.
 void testBeanOpsOtherType()
          Testing OtherType operations.
 void testBeanOpsShortType()
          Testing ShortType operations.
 void testBeanOpsStringType()
          Testing StringType operations.
 void testBeanOpsTextType()
          Testing Text type operations.
 void testBeanOpsTimestampType()
          Testing TimestampType operations.
 void testBeanOpsTimeType()
          Testing TimeType operations.
 void testBeanOpsUnsupportedType()
          Testing that UnsupportedType does throw exceptions.
 void testCheckAllSupportedTypeNames()
          Bulk testing all type lookups.
 void testGetInstanceOfAllSupportedTypeNamesById()
          Bulk testing all type lookups by id.
 void testGetInstanceOfMySqlLongVarchar()
          Testing type override lookup.
 void testGetInstanceOfNumeric()
          Testing basic type lookup.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypesTest

public TypesTest(java.lang.String name)
Boilerplate constructor.

Parameters:
name - the name of this test class.
Method Detail

main

public static void main(java.lang.String[] argv)
Boilerplate main method.

Parameters:
argv - the arguments (none).

suite

public static junit.framework.Test suite()
Boilerplate suite() method.

Returns:
a Test object.

testGetInstanceOfNumeric

public final void testGetInstanceOfNumeric()
                                    throws java.lang.Exception
Testing basic type lookup.

Throws:
java.lang.Exception - if there was a problem.

testGetInstanceOfMySqlLongVarchar

public final void testGetInstanceOfMySqlLongVarchar()
                                             throws java.lang.Exception
Testing type override lookup.

Throws:
java.lang.Exception - if there was a problem.

testCheckAllSupportedTypeNames

public final void testCheckAllSupportedTypeNames()
                                          throws java.lang.Exception
Bulk testing all type lookups.

Throws:
java.lang.Exception - if there was a problem.

testGetInstanceOfAllSupportedTypeNamesById

public final void testGetInstanceOfAllSupportedTypeNamesById()
                                                      throws java.lang.Exception
Bulk testing all type lookups by id.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsArrayType

public final void testBeanOpsArrayType()
                                throws java.lang.Exception
Testing Array operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsBigDecimalType

public final void testBeanOpsBigDecimalType()
                                     throws java.lang.Exception
Testing BigDecimal operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsBlobType

public final void testBeanOpsBlobType()
                               throws java.lang.Exception
Testing Blob operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsBooleanType

public final void testBeanOpsBooleanType()
                                  throws java.lang.Exception
Testing Boolean operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsByteType

public final void testBeanOpsByteType()
                               throws java.lang.Exception
Testing ByteType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsClobType

public final void testBeanOpsClobType()
                               throws java.lang.Exception
Testing Clob operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsDateType

public final void testBeanOpsDateType()
                               throws java.lang.Exception
Testing Date operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsDoubleType

public final void testBeanOpsDoubleType()
                                 throws java.lang.Exception
Testing Double operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsFloatType

public final void testBeanOpsFloatType()
                                throws java.lang.Exception
Testing Float operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsIntegerType

public final void testBeanOpsIntegerType()
                                  throws java.lang.Exception
Testing Integer operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsJavaObjectType

public final void testBeanOpsJavaObjectType()
                                     throws java.lang.Exception
Testing JavaObjectType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsLongType

public final void testBeanOpsLongType()
                               throws java.lang.Exception
Testing LongType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsOracleCursorType

public final void testBeanOpsOracleCursorType()
                                       throws java.lang.Exception
Testing OracleCursorType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsOtherType

public final void testBeanOpsOtherType()
                                throws java.lang.Exception
Testing OtherType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsShortType

public final void testBeanOpsShortType()
                                throws java.lang.Exception
Testing ShortType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsStringType

public final void testBeanOpsStringType()
                                 throws java.lang.Exception
Testing StringType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsTimestampType

public final void testBeanOpsTimestampType()
                                    throws java.lang.Exception
Testing TimestampType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsTimeType

public final void testBeanOpsTimeType()
                               throws java.lang.Exception
Testing TimeType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsUnsupportedType

public final void testBeanOpsUnsupportedType()
                                      throws java.lang.Exception
Testing that UnsupportedType does throw exceptions.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsByteArrayType

public final void testBeanOpsByteArrayType()
                                    throws java.lang.Exception
Testing ByteArrayType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsBinaryType

public final void testBeanOpsBinaryType()
                                 throws java.lang.Exception
Testing BinaryType operations.

Throws:
java.lang.Exception - if there was a problem.

testBeanOpsTextType

public final void testBeanOpsTextType()
                               throws java.lang.Exception
Testing Text type operations.

Throws:
java.lang.Exception - if there was a problem.