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.12 2007/07/12 21:20:03 bheineman Exp $
Author:
David D. Kilzer, Alin Sinpalean

Inner Class Summary
static class JtdsObjectFactoryUnitTest.Test_JtdsObjectFactory_getObjectInstance_DefaultValues
          Class used to test JtdsObjectFactory.getObjectInstance(Object, Name, Context, Hashtable).
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
JtdsObjectFactoryUnitTest(java.lang.String name)
          Constructor.
 
Method Summary
static junit.framework.Test suite()
          Construct a test suite for this class.
 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, failNotEquals, format, invokeConstructor, invokeGetInstanceField, invokeInstanceMethod, invokeSetInstanceField, invokeStaticMethod, ucFirst
 
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

suite

public static junit.framework.Test suite()
Construct a test suite for this class.

The test suite includes the tests in this class, and adds tests from DefaultPropertiesTestLibrary after creating an anonymous DefaultPropertiesTester object.

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


Generated on August 22 2007