Method Summary |
|
public static Test | changeUserDecorator(Test test, String user, String password) |
boolean | defaultSecurityManagerSetup() Install the default security manager setup,
for the current configuration. |
public static Test | 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. |
public Connection | getConnection(String databaseName, String connAttrs) Get a connection to a database using the specified connection
attributes. |
public static TestConfiguration | getCurrent() Get this Thread's current configuraiton for running
the tests. |
public static Properties | 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. |
public String | getDatabaseName() Return the default database name. |
public Connection | getDefaultConnection(String connAttrs) Get a connection to the default database using the specified connection
attributes. |
public static Properties | getDefaultDataSourceProperties() Generate properties which can be set on a
DataSource in order to connect to the default
database. |
File | getFailureFolder(TestCase test) Get a folder already created where a test can
write its failure information. |
public String | getHostName() Return the host name for the network server. |
public JDBCClient | getJDBCClient() Get configured JDBCClient object. |
public String | getJDBCUrl() Return the jdbc url for connecting to the default database. |
public String | getJDBCUrl(String databaseName) Return the jdbc url for a connecting to the database.
Parameters: databaseName - name of database. |
public int | getPort() Get port number for network server. |
public String | getUserName() Return the user name. |
public String | getUserPassword() Return the user password. |
public boolean | isSingleLegXA() |
public boolean | isVerbose() Return verbose flag. |
public static boolean | loadingFromJars()
Return true if we classes are being loaded from jar files. |
public Connection | openConnection(String databaseName) Open a connection to a database. |
public Connection | openDefaultConnection() Open connection to the default database. |
public static boolean | runningInDerbyHarness() Is this JUnit test being run by the old harness. |
static void | setCurrent(TestConfiguration config) WORK IN PROGRESS
Set this Thread's current configuration for running tests. |
public void | setVerbosity(boolean isChatty) Set the verbosity, i.e., whether debug statements print. |