| java.lang.Object org.apache.derbyTesting.functionTests.util.TestRoutines
TestRoutines | public class TestRoutines (Code) | | Utility methods for tests routines, in order to bring some consistency to test output.
Any routines added here should be general purpose in nature, not specific to
a single test.
Add a public static method for the test and then add its creation as a procedure
or function in installRoutines.
|
Method Summary | |
public static int | hasSecurityManager() TESTROUTINE.HAS_SECURITY_MANAGER()
Return 0 is no security manager is installed, 1 if one is. | public static void | installRoutines() A single procedure to create all the routines in this file. | public static void | installRoutines(Connection conn) Easy way to install all the routines from a Java test program. | public static String | readFile(String fileName, String encoding) TESTROUTINE.READ_FILE(FILE_NAME VARCHAR(60), ENCODING VARCHAR(60)) RETURNS VARCHAR(32000)
Read a file using the passed in encoding display its contents
as ASCII with unicode esacpes.. | public static void | setSystemProperty(String key, String value) | public static void | sleep(long ms) TESTROUTINE.SLEEP(IN TIME_MS BIGINT)
Sleep for a number of milli-seconds. |
hasSecurityManager | public static int hasSecurityManager()(Code) | | TESTROUTINE.HAS_SECURITY_MANAGER()
Return 0 is no security manager is installed, 1 if one is.
|
installRoutines | public static void installRoutines() throws SQLException(Code) | | A single procedure to create all the routines in this file.
The script to run this is in testRoutines.sql
|
installRoutines | public static void installRoutines(Connection conn) throws SQLException(Code) | | Easy way to install all the routines from a Java test program.
Just call with a valid connection.
org.apache.derbyTesting.functionTests.util.TestRoutines.installRoutines(conn);
|
setSystemProperty | public static void setSystemProperty(String key, String value)(Code) | | TESTROUTINE.SET_SYSTEM_PROPERTY(IN PROPERTY_KEY VARCHAR(32000), IN PROPERTY_VALUE VARCHAR(32000))
Set a system property
|
sleep | public static void sleep(long ms) throws InterruptedException(Code) | | TESTROUTINE.SLEEP(IN TIME_MS BIGINT)
Sleep for a number of milli-seconds.
|
|
|