java.lang.Object | +--junit.runner.BaseTestRunnerAll Implemented Interfaces:
static String | Base class for all test runners. |
synchronized void | addError(final Test test, final Throwable t) |
synchronized void | addFailure(final Test test, final AssertionFailedError t) |
void | Clears the status message. |
String | elapsedTimeAsString(long runTime) Returns the formatted string of the elapsed time. |
synchronized void | |
String | extractClassName(String className) Extract the class name from a String in VA/Java style |
static String | getFilteredTrace(Throwable t) Returns a filtered stack trace |
static String | getFilteredTrace(String stack) Filters stack frames from internal JUnit classes |
Returns the loader to be used. | |
static String | getPreference(String key) |
static int | getPreference(String key, int dflt) |
static Properties | |
getTest(String suiteClassName) Returns the Test corresponding to the given suite. | |
static boolean | inVAJava() |
Class | loadSuiteClass(String suiteClassName) Returns the loaded Class for a suite name. |
String | processArguments(String[] args) Processes the command line arguments and returns the name of the suite class to run or null |
void | runFailed(String message) Override to define how to handle a failed loading of a test suite. |
static void | |
void | setLoading(boolean enable) Sets the loading behaviour of the test runner |
void | setPreference(String key, String value) |
static void | setPreferences(Properties preferences) |
static boolean | |
synchronized void | |
void | testEnded(String testName) |
void | testFailed(int status, Test test, Throwable t) |
void | testStarted(String testName) |
static String | truncate(String s) Truncates a String to the maximum length. |
boolean |
public static final String SUITE_METHODNAME
public synchronized void addError(final Test test, final Throwable t)
public synchronized void addFailure(final Test test, final AssertionFailedError t)
protected void clearStatus()
public String elapsedTimeAsString(long runTime)
public synchronized void endTest(Test test)
public String extractClassName(String className)
public static String getFilteredTrace(String stack)
public static String getFilteredTrace(Throwable t)
public TestSuiteLoader getLoader()
public static String getPreference(String key)
public static int getPreference(String key, int dflt)
protected static Properties getPreferences()
public Test getTest(String suiteClassName)
public static boolean inVAJava()
protected Class loadSuiteClass(String suiteClassName)
protected String processArguments(String[] args)
protected void runFailed(String message)
public static void savePreferences()
public void setLoading(boolean enable)
public void setPreference(String key, String value)
protected static void setPreferences(Properties preferences)
protected static boolean showStackRaw()
public synchronized void startTest(Test test)
public void testEnded(String testName)
public void testFailed(int status, Test test, Throwable t)
public void testStarted(String testName)
public static String truncate(String s)
protected boolean useReloadingTestSuiteLoader()