| net.sourceforge.jtds.test.UnitTestBase net.sourceforge.jtds.test.JtdsObjectFactoryUnitTest
JtdsObjectFactoryUnitTest | public class JtdsObjectFactoryUnitTest extends UnitTestBase (Code) | | Unit tests for the
JtdsObjectFactory class.
author: David D. Kilzer author: Alin Sinpalean version: $Id: JtdsObjectFactoryUnitTest.java,v 1.12 2007/07/12 21:20:03 bheineman Exp $ |
Method Summary | |
public static Test | suite() Construct a test suite for this class. | public void | testNoProperties() Tests that the factory can correctly rebuild a DataSource with no
properties set (i.e. |
JtdsObjectFactoryUnitTest | public JtdsObjectFactoryUnitTest(String name)(Code) | | Constructor.
Parameters: name - The name of the test. |
testNoProperties | public void testNoProperties() throws Exception(Code) | | 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 net.sourceforge.jtds.test.UnitTestBase | protected void assertEquals(String message, Object[] expected, Object[] actual)(Code)(Java Doc) public static Object invokeConstructor(Class klass, Class[] classes, Object[] objects)(Code)(Java Doc) public static Object invokeGetInstanceField(Object instance, String fieldName)(Code)(Java Doc) public static Object invokeInstanceMethod(Object instance, String methodName, Class[] classes, Object[] objects)(Code)(Java Doc) public static void invokeSetInstanceField(Object instance, String fieldName, Object fieldValue)(Code)(Java Doc) public static Object invokeStaticMethod(Class klass, String methodName, Class[] classes, Object[] objects)(Code)(Java Doc) protected static String ucFirst(String s)(Code)(Java Doc)
|
|
|