|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--net.sourceforge.jtds.test.TestBase | +--net.sourceforge.jtds.test.DatabaseTestCase | +--net.sourceforge.jtds.test.BatchTest
Simple test suite to exercise batch execution.
Field Summary | |
private static int |
EXECUTE_FAILED
|
private static int |
SUCCESS_NO_INFO
|
Fields inherited from class net.sourceforge.jtds.test.DatabaseTestCase |
typemap |
Fields inherited from class net.sourceforge.jtds.test.TestBase |
con, CONNECTION_PROPERTIES, props |
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary | |
BatchTest(java.lang.String name)
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
testBatch()
Test batched statements. |
void |
testBatchEsc()
Test for bug [1180169] JDBC escapes not allowed with Sybase addBatch. |
void |
testCallStmtBatch()
Test batched callable statements. |
void |
testCallStmtBatch2()
Test batched callable statements where the call includes literal parameters which prevent the use of RPC calls. |
void |
testLargeBatch()
Test large batch behavior. |
void |
testNoCount()
The first statement in this batch does not return an update count. |
void |
testPrepStmtBatch()
Test batched prepared statements. |
void |
testResultSetError()
This test should generate an error as the second statement in the batch returns a result set. |
Methods inherited from class net.sourceforge.jtds.test.DatabaseTestCase |
compareBytes, dropFunction, dropProcedure, dropProcedure, dropTable, getLongString, getLongString, getType, getTypemap |
Methods inherited from class net.sourceforge.jtds.test.TestBase |
compareInputStreams, compareReaders, connect, disconnect, dump, dumpRow, getConnection, getConnection, loadProperties, makeObjects, makeTestTables, setUp, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
|
Field Detail |
private static int SUCCESS_NO_INFO
private static int EXECUTE_FAILED
Constructor Detail |
public BatchTest(java.lang.String name)
Method Detail |
public void testResultSetError() throws java.lang.Exception
public void testNoCount() throws java.lang.Exception
public void testBatch() throws java.lang.Exception
public void testPrepStmtBatch() throws java.lang.Exception
public void testCallStmtBatch() throws java.lang.Exception
public void testCallStmtBatch2() throws java.lang.Exception
public void testLargeBatch() throws java.lang.Exception
public void testBatchEsc() throws java.lang.Exception
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |