Known Direct Subclasses
|
Class Overview
Base class for all test runners.
This class was born live on stage in Sardinia during XP2000.
Summary
[Expand]
Inherited Methods |
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
From interface junit.framework.TestListener
|
Constants
public
static
final
String
SUITE_METHODNAME
Public Constructors
Public Methods
public
String
elapsedTimeAsString
(long runTime)
Returns the formatted string of the elapsed time.
public
synchronized
void
endTest
(Test test)
public
String
extractClassName
(String className)
Extract the class name from a String
public
static
String
getFilteredTrace
(Throwable t)
Returns a filtered stack trace
public
static
String
getFilteredTrace
(String stack)
Filters stack frames from internal JUnit classes
Returns the loader to be used.
public
static
int
getPreference
(String key, int dflt)
public
Test
getTest
(String suiteClassName)
Returns the Test corresponding to the given suite. This is
a template method, subclasses override runFailed(), clearStatus().
public
static
boolean
inVAJava
()
public
static
void
savePreferences
()
public
void
setLoading
(boolean enable)
Sets the loading behaviour of the test runner
public
synchronized
void
startTest
(Test test)
public
abstract
void
testEnded
(String testName)
public
abstract
void
testFailed
(int status, Test test, Throwable t)
public
abstract
void
testStarted
(String testName)
public
static
String
truncate
(String s)
Truncates a String to the maximum length.
Protected Methods
protected
void
clearStatus
()
Clears the status message.
protected
Class
loadSuiteClass
(String suiteClassName)
Returns the loaded Class for a suite name.
protected
String
processArguments
(String[] args)
Processes the command line arguments and
returns the name of the suite class to run or null
protected
abstract
void
runFailed
(String message)
Override to define how to handle a failed loading of
a test suite.
protected
static
void
setPreferences
(Properties preferences)
protected
static
boolean
showStackRaw
()
protected
boolean
useReloadingTestSuiteLoader
()