TestSynth
A test that generates random SQL statements against a number of databases
and compares the results.
| Methods |
| static void |
main(String... a)
Run just this test.
|
| static void |
main(String... a) throws Exception
Run just this test.
Parameters:
a - ignored
|
| int |
getMode()
|
| int |
getMode()
|
| TestBase |
init(TestAll conf)
|
| TestBase |
init(TestAll conf) throws Exception
|
| boolean |
is(int isType)
Check whether this database is of the specified type.
|
| boolean |
is(int isType)
Check whether this database is of the specified type.
Parameters:
isType - the database type
Returns:
true if it is
|
| void |
log(int id, String s)
Print this message if the log is enabled.
|
| void |
log(int id, String s)
Print this message if the log is enabled.
Parameters:
id - the id
s - the message
|
| RandomGen |
random()
Get the random number generator.
|
| RandomGen |
random()
Get the random number generator.
Returns:
the random number generator
|
| String |
randomIdentifier()
Get a random identifier.
|
| String |
randomIdentifier()
Get a random identifier.
Returns:
the random identifier
|
| Table |
randomTable()
Get a random table.
|
| Table |
randomTable()
Get a random table.
Returns:
the table
|
| void |
test()
|
| void |
test() throws Exception
|
H2
= 0
A H2 database connection.
H2_MEM
= 1
An in-memory H2 database connection.
HSQLDB
= 2
An HSQLDB database connection.
MYSQL
= 3
A MySQL database connection.
POSTGRESQL
= 4
A PostgreSQL database connection.