net.sourceforge.jtds.jdbcx
Class JtdsObjectFactoryTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bynet.sourceforge.jtds.jdbc.TestBase
              extended bynet.sourceforge.jtds.jdbc.DatabaseTestCase
                  extended bynet.sourceforge.jtds.jdbc.UnitTestBase
                      extended bynet.sourceforge.jtds.jdbcx.JtdsObjectFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class JtdsObjectFactoryTest
extends UnitTestBase

Unit tests for the JtdsObjectFactory class.

Author:
Alin Sinpalean, David D. Kilzer, Holger Rehn

Field Summary
 
Fields inherited from class net.sourceforge.jtds.jdbc.DatabaseTestCase
 
Fields inherited from class net.sourceforge.jtds.jdbc.TestBase
props
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JtdsObjectFactoryTest(java.lang.String name)
          Constructor.
 
Method Summary
private  void checkDefaults(JtdsDataSource ds)
           
static junit.framework.Test suite()
           
 void testGetterSetter()
           
 void testNoProperties()
          Tests that the factory can correctly rebuild a DataSource with no properties set (i.e. all values should be null and no NPE should be thrown).
 
Methods inherited from class net.sourceforge.jtds.jdbc.UnitTestBase
assertEquals, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeSetInstanceField, invokeStaticMethod, ucFirst
 
Methods inherited from class net.sourceforge.jtds.jdbc.DatabaseTestCase
getLongString, getLongString, getType, getTypemap
 
Methods inherited from class net.sourceforge.jtds.jdbc.TestBase
compareInputStreams, compareReaders, connect, dropDatabase, dropFunction, dropProcedure, dropTable, dropTrigger, dropType, dropView, dump, dump, dumpAll, dumpKeys, dumpRow, dumpRow, getConnection, getConnection, makeObjects, makeTestTables, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JtdsObjectFactoryTest

public JtdsObjectFactoryTest(java.lang.String name)
Constructor.

Parameters:
name - The name of the test.
Method Detail

suite

public static junit.framework.Test suite()
Returns:
The test suite to run.

testNoProperties

public void testNoProperties()
                      throws java.lang.Exception
Tests that the factory can correctly rebuild a DataSource with no properties set (i.e. all values should be null and no NPE should be thrown).

Throws:
java.lang.Exception

testGetterSetter

public void testGetterSetter()
                      throws java.lang.Exception
Throws:
java.lang.Exception

checkDefaults

private void checkDefaults(JtdsDataSource ds)


Generated on October 27 2012