class Actions.CoreRunner extends Thread
testClassName.
The major task of this class is, to reload testClassName
using a classloader which allows reloading
each test run without restarting the tester application.
The core of the code is copied from JUnitCore.Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private RunNotifier |
notifier
The notifier to run the tests as in JUnitCore.
|
private String |
testClassName
The name of the class to be tested.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
CoreRunner(Actions.CoreRunner other)
Copy constructor.
|
CoreRunner(String testClassName)
Creates a runner running all testcases in the given test class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
pleaseStop() |
void |
run()
Loads the class with name
testClassName
with a TestCaseClassLoader to allow reloading. |
void |
run(Request request) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate final RunNotifier notifier
private final String testClassName
CoreRunner(String testClassName)
CoreRunner(Actions.CoreRunner other)
public void run()
testClassName
with a TestCaseClassLoader to allow reloading.
Then creates a Request filtering it with Actions.filter
defining the tests to be run and runs those tests
invoking run(Request).public void run(Request request)
public void pleaseStop()
Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.