|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jcoderz.commons.TestCase
org.jcoderz.commons.ServerTestCase
org.jcoderz.commons.util.DbUtilServerTest
public class DbUtilServerTest
Tests the LimitedBatchSizePreparedStatement in the DbUtil class.
| Constructor Summary | |
|---|---|
DbUtilServerTest()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testBatchWithExecute()
Add a batch to a prepared statement and then call execute
instead of executeBatch. |
void |
testBatchWithExecuteLbsStatement()
Add a batch to a prepared statement and then call execute
instead of executeBatch. |
void |
testClearBatch()
Run addBatch, clearBatch and then executeBatch, check that no rows are created. |
void |
testClearBatchLbsStatement()
Run addBatch, clearBatch and then executeBatch, check that no rows are created. |
void |
testDuplicateBatchUpdate()
Test what happens when we call executeBatch without having a SQL statement in the prepared statement. |
void |
testDuplicateBatchUpdateLbsStatement()
|
| Methods inherited from class org.jcoderz.commons.ServerTestCase |
|---|
createTestSession, getTestServletUrl, getWeblogicDomainDir, runBare, runBareAtServer |
| Methods inherited from class org.jcoderz.commons.TestCase |
|---|
getBaseDir, getHostName, getSuite, hasTestCases |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DbUtilServerTest()
| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class TestCaseException
public void testDuplicateBatchUpdate()
throws Exception
Exception - if the testcase fails
public void testDuplicateBatchUpdateLbsStatement()
throws Exception
Exception
public void testBatchWithExecute()
throws Exception
execute
instead of executeBatch.
Exception - if the testcase fails
public void testBatchWithExecuteLbsStatement()
throws Exception
execute
instead of executeBatch.
Exception - if the testcase fails
public void testClearBatch()
throws Exception
Exception - if the testcase fails
public void testClearBatchLbsStatement()
throws Exception
Exception - if the testcase fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||