JtdsObjectFactoryUnitTest (jTDS API)
Keywords: net.sourceforge.jtds.test.JtdsObjectFactoryUnitTest class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Nested Class Summary
`static class` | `JtdsObjectFactoryUnitTest.Test_JtdsObjectFactory_getObjectInstance_DefaultValues` Class used to test `JtdsObjectFactory.getObjectInstance(Object, Name, Context, Hashtable)`.

Field Summary

Fields inherited from class junit.framework.TestCase
``

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. all values should be null and no NPE should be thrown).

Methods inherited from class net.sourceforge.jtds.test.UnitTestBase
`assertEquals, 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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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).

  Throws:
    `java.lang.Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Generated on December 30 2009