| Modifier and Type | Class and Description |
|---|---|
private static class |
TestRunner.TestResults
A container to track results from all tests executed.
|
private static class |
TestRunner.TestRunnerExitCodes
ExitCodes set by
TestRunner. |
| Modifier and Type | Field and Description |
|---|---|
private static String |
ANSI_GREEN |
private static String |
ANSI_RED |
private static String |
ANSI_RESET |
private static Driver |
driver |
private static String |
driverUrl |
private String |
jdbcUrl |
private org.junit.runner.JUnitCore |
junitCore |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
TestRunner() |
| Modifier and Type | Method and Description |
|---|---|
(package private) List<Class<?>> |
getAllTestClasses()
Finds all tests to run for the TCK.
|
static Connection |
getConnection()
Returns the
Connection for tests to use. |
(package private) void |
initializeDriver() |
(package private) void |
initializeJUnit()
Sets up JUnit to run the tests for us.
|
static void |
main(String[] args) |
void |
run() |
(package private) void |
runSingleTest(TestRunner.TestResults globalResults,
Class<?> testClass)
Runs a single test class, adding its results to
globalResults. |
private static final org.slf4j.Logger LOG
private static final String ANSI_RESET
private static final String ANSI_RED
private static final String ANSI_GREEN
private static Driver driver
private static String driverUrl
private String jdbcUrl
private org.junit.runner.JUnitCore junitCore
public static Connection getConnection() throws SQLException
Connection for tests to use.SQLExceptionList<Class<?>> getAllTestClasses()
void initializeDriver()
void initializeJUnit()
void runSingleTest(TestRunner.TestResults globalResults, Class<?> testClass)
globalResults.globalResults - A global record of test results.testClass - The test class to run.public static void main(String[] args)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.