| java.lang.Object org.hsqldb.test.TestUtil org.hsqldb.test.TestSelf
TestSelf | class TestSelf extends TestUtil (Code) | | Main test class, containing several JDBC and script based tests to
verify correct operation of the engine.
The tests consist of the following:
Tests can be added by writing new scripts in the standard format described
in TestSelf.txt and naming the script in the correct format,
TestSelfXXXX.txt , where XXXX is the description of the new
test.
The database can be shutdown at the end of each script (using the
SHUTDOWN command). This allows a test to be divided into two or more
scripts in order to test the persistence mechanism for both objects
created via DDL or data stored in the database. An example of this
is the set of supplied scripts, TestSelfCreate.txt ,
TestSelfModify.txt and TestSelfVerify.txt .
(fredt@users)
author: Thomas Mueller (Hypersonic SQL Group) version: 1.7.2 since: Hypersonic SQL |
Field Summary | |
static byte[] | b1 | static byte[] | b2 |
Method Summary | |
static void | delete(String file) | static void | deleteDatabase(String path) | public static void | main(String[] argv) | static void | printStatus(String s, int i, int max, long start) | static void | readTabProfileTest(Statement sStatement) | static void | test(int max, boolean persistent) | static void | test(String url, String user, String password, boolean persistent) | static void | testMainScript(Connection cConnection, boolean persistent) | static void | testMarotest(Connection cConnection, boolean persistent) | static void | testPerformance(String url, String user, String password, int max, boolean persistent) | static void | testPersistence() | static void | testTabProfile(Connection cConnection, boolean persistent) |
main | public static void main(String[] argv)(Code) | | This test in invoked from the command line using:
TestSelf [records [-m]]
-m means run the tests in-memory only
Parameters: argv - |
printStatus | static void printStatus(String s, int i, int max, long start)(Code) | | Method declaration
Parameters: s - Parameters: i - Parameters: max - Parameters: start - |
test | static void test(int max, boolean persistent)(Code) | | Method declaration
Parameters: max - Parameters: persistent - |
testMainScript | static void testMainScript(Connection cConnection, boolean persistent)(Code) | | |
testMarotest | static void testMarotest(Connection cConnection, boolean persistent)(Code) | | |
testPersistence | static void testPersistence()(Code) | | |
testTabProfile | static void testTabProfile(Connection cConnection, boolean persistent)(Code) | | |
|
|