public class MaxCore
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private MaxHistory |
history |
private static java.lang.String |
MALFORMED_JUNIT_3_TEST_CLASS_PREFIX |
| Modifier | Constructor and Description |
|---|---|
private |
MaxCore(java.io.File storedResults) |
| Modifier and Type | Method and Description |
|---|---|
private Runner |
buildRunner(Description each) |
private Request |
constructLeafRequest(java.util.List<Description> leaves) |
private void |
findLeaves(Description parent,
Description description,
java.util.List<Description> results) |
private java.util.List<Description> |
findLeaves(Request request) |
static MaxCore |
forFolder(java.lang.String folderName)
Deprecated.
use storedLocally()
|
private java.lang.Class<?> |
getMalformedTestClass(Description each) |
Result |
run(java.lang.Class<?> testClass)
Run all the tests in
class. |
Result |
run(Request request)
Run all the tests contained in
request. |
Result |
run(Request request,
JUnitCore core)
Run all the tests contained in
request. |
java.util.List<Description> |
sortedLeavesForTest(Request request) |
Request |
sortRequest(Request request) |
static MaxCore |
storedLocally(java.io.File storedResults)
Create a new MaxCore from a serialized file stored at storedResults
|
private static final java.lang.String MALFORMED_JUNIT_3_TEST_CLASS_PREFIX
private final MaxHistory history
@Deprecated public static MaxCore forFolder(java.lang.String folderName)
public static MaxCore storedLocally(java.io.File storedResults)
public Result run(java.lang.Class<?> testClass)
class.Result describing the details of the test run and the failed tests.public Result run(Request request)
request.request - the request describing testsResult describing the details of the test run and the failed tests.public Result run(Request request, JUnitCore core)
request.
This variant should be used if core has attached listeners that this
run should notify.request - the request describing testscore - a JUnitCore to delegate to.Result describing the details of the test run and the failed tests.public Request sortRequest(Request request)
private Request constructLeafRequest(java.util.List<Description> leaves)
private Runner buildRunner(Description each)
private java.lang.Class<?> getMalformedTestClass(Description each)
public java.util.List<Description> sortedLeavesForTest(Request request)
request - a request to runprivate java.util.List<Description> findLeaves(Request request)
private void findLeaves(Description parent, Description description, java.util.List<Description> results)