derbyClientServerDecorator(Class suite) Return a decorator for the passed in tests that sets the
configuration for the client to be Derby's JDBC client
and to start the network server at setUp and shut it
down at tearDown.
getDataSourcePropertiesForDatabase(String databaseName, String connAttrs) Generate properties which can be set on a DataSource
in order to connect to a database using the specified connection
attributes.
Obtain a new configuration identical to the passed in
one except for the default user and password.
Parameters: copy - Configuration to copy. Parameters: user - New default user Parameters: password - New default password.
Method Detail
changeUserDecorator
public static Test changeUserDecorator(Test test, String user, String password)(Code)
Install the default security manager setup,
for the current configuration.
throws: PrivilegedActionException -
derbyClientServerDecorator
public static Test derbyClientServerDecorator(Class suite) throws Exception(Code)
Return a decorator for the passed in tests that sets the
configuration for the client to be Derby's JDBC client
and to start the network server at setUp and shut it
down at tearDown.
The database configuration (name etc.) is based upon
the previous configuration.
The previous TestConfiguration is restored at tearDown.
Parameters: tests - throws: Exception -
Get a connection to a database using the specified connection
attributes.
Parameters: databaseName - database to connect to Parameters: connAttrs - connection attributes connection to database. throws: SQLException -
Generate properties which can be set on a DataSource
in order to connect to a database using the specified connection
attributes.
Parameters: databaseName - database to connect to Parameters: connAttrs - connection attributes
Get a connection to the default database using the specified connection
attributes.
Parameters: connAttrs - connection attributes connection to database. throws: SQLException -
Generate properties which can be set on a
DataSource in order to connect to the default
database. If the database does not exist, it will be created.
a Properties object containing servername, port number, database name and other attributes needed toconnect to the default database
Get a folder already created where a test can
write its failure information. The name of the folder,
relative to ${user.dir} is:
fail/client/testclass/testname
client - value of JDBCClient.getName() for the test's configuration
Return true if we classes are being loaded from jar files. For the time
being, this simply tests that the JVMInfo class (common to the client and
the server) comes out of a jar file.
Open a connection to a database.
If the database does not exist, it will be created.
A default username and password will be used for the connection.
Parameters: databaseName - database to connect to connection to database.
Open connection to the default database.
If the database does not exist, it will be created.
A default username and password will be used for the connection.
connection to default database.
runningInDerbyHarness
public static boolean runningInDerbyHarness()(Code)
Is this JUnit test being run by the old harness.
Temp method to ease the switch over by allowing
suites to alter their behaviour based upon the
need to still run under the old harness.