net.sourceforge.jtds.test
Class JtdsObjectFactoryUnitTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.sourceforge.jtds.test.UnitTestBase
                    |
                    +--net.sourceforge.jtds.test.JtdsObjectFactoryUnitTest
All Implemented Interfaces:
junit.framework.Test

public class JtdsObjectFactoryUnitTest
extends UnitTestBase

Unit tests for the JtdsObjectFactory class.

Version:
$Id: JtdsObjectFactoryUnitTest.java,v 1.6 2005/03/04 00:11:11 alin_sinpalean Exp $
Author:
David D. Kilzer, Alin Sinpalean

Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
JtdsObjectFactoryUnitTest(java.lang.String name)
          Constructor.
 
Method Summary
 void testAllProperties()
          Tests that the factory can correctly rebuild a DataSource with all properties set.
 void testNoProperties()
          Tests that the factory can correctly rebuild a DataSource with no properties set (i.e.
 
Methods inherited from class net.sourceforge.jtds.test.UnitTestBase
assertEquals, assertEquals, failNotEquals, format, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeStaticMethod
 
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, registerNatives, wait, wait, wait
 

Constructor Detail

JtdsObjectFactoryUnitTest

public JtdsObjectFactoryUnitTest(java.lang.String name)
Constructor.
Parameters:
name - The name of the test.
Method Detail

testAllProperties

public void testAllProperties()
                       throws java.lang.Exception
Tests that the factory can correctly rebuild a DataSource with all properties set.

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).


Generated on April 15 2005