java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.hsqldb.test.TestSqlPersistent
- All Implemented Interfaces:
- junit.framework.Test
- public class TestSqlPersistent
- extends junit.framework.TestCase
Test sql statements via jdbc against a persistent database
| Fields inherited from class junit.framework.TestCase |
|
|
Method Summary |
static void |
main(java.lang.String[] argv)
|
protected void |
setUp()
Sets up the fixture, for example, open a network connection. |
protected void |
tearDown()
Tears down the fixture, for example, close a network connection. |
void |
testInsertObject()
demonstration of bug fix #482109 - inserting Integers
and Strings with preparedStatement.insertObject() did not work;
String, Integer and Array types are inserted and retrieved
demonstration of retrieving values using different getXXX methods |
| 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 |
url
java.lang.String url
user
java.lang.String user
password
java.lang.String password
sStatement
java.sql.Statement sStatement
cConnection
java.sql.Connection cConnection
TestSqlPersistent
public TestSqlPersistent(java.lang.String name)
setUp
protected void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
testInsertObject
public void testInsertObject()
- demonstration of bug fix #482109 - inserting Integers
and Strings with preparedStatement.insertObject() did not work;
String, Integer and Array types are inserted and retrieved
demonstration of retrieving values using different getXXX methods
tearDown
protected void tearDown()
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
main
public static void main(java.lang.String[] argv)