| net.sourceforge.jtds.test.UnitTestBase net.sourceforge.jtds.test.ConnectionJDBC2UnitTest
ConnectionJDBC2UnitTest | public class ConnectionJDBC2UnitTest extends UnitTestBase (Code) | | Unit test for the
ConnectionJDBC2 class.
author: David Kilzer author: Alin Sinpalean version: $Id: ConnectionJDBC2UnitTest.java,v 1.11 2007/07/08 18:08:54 bheineman Exp $ |
ConnectionJDBC2UnitTest | public ConnectionJDBC2UnitTest(String name)(Code) | | Constructor.
Parameters: name - The name of the test. |
testAutoCommit | public void testAutoCommit() throws Exception(Code) | | Test for bug [1296482] setAutoCommit() behaviour.
The behaviour of setAutoCommit() on ConnectionJDBC2 is inconsistent with
the Sun JDBC 3.0 Specification. JDBC 3.0 Specification, section 10.1.1:
"If the value of auto-commit is changed in the middle of a
transaction, the current transaction is committed."
|
testForceCharset1 | public void testForceCharset1() throws Exception(Code) | | Test correct behavior of the charset property.
Values should be stored and retrieved using the requested charset rather
than the server's as long as Unicode is not used.
|
testForceCharset2 | public void testForceCharset2() throws Exception(Code) | | Test correct behavior of the charset property.
Stored procedure output parameters should be decoded using the specified
charset rather than the server's as long as they are non-Unicode.
|
test_unpackProperties_invalidIntegerProperty | public void test_unpackProperties_invalidIntegerProperty()(Code) | | Test that an
java.sql.SQLException is thrown when
parsing invalid integer (and long) properties.
|
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)
|
|
|