private final File testDirectory;
private final File testJava;
private final String testClass;
- private final Class<? extends TestRunner> runnerClass;
+ private final Class<? extends Runner> runnerClass;
private final File runnerJava;
private final Classpath runnerClasspath;
private final String qualifiedName;
private final String description;
- private Classpath testClasspath;
+ private boolean testCompiled;
private File userDir = new File(System.getProperty("user.dir"));
private ExpectedResult expectedResult = ExpectedResult.SUCCESS;
public TestRun(File testDirectory, File testJava, String testClass,
String suiteName, String testName, String qualifiedName,
- String description, Class<? extends TestRunner> runnerClass,
+ String description, Class<? extends Runner> runnerClass,
File runnerJava, Classpath runnerClasspath) {
this.qualifiedName = qualifiedName;
this.suiteName = suiteName;
}
/**
- * Initializes the path to the jar file or directory containing test
- * classes.
+ * Set when the test is successfully compiled.
*/
- public void setTestClasspath(Classpath classpath) {
- this.testClasspath = classpath;
+ public void setTestCompiled(boolean testCompiled) {
+ this.testCompiled = testCompiled;
}
- public Classpath getTestClasspath() {
- return testClasspath;
+ public boolean getTestCompiled() {
+ return testCompiled;
}
/**
* classpath prepared and have not yet been assigned a result.
*/
public boolean isRunnable() {
- return testClasspath != null && result == null;
+ return testCompiled && result == null;
}
public void setResult(Result result, Throwable e) {
return outputLines;
}
- public Class<? extends TestRunner> getRunnerClass() {
+ public Class<? extends Runner> getRunnerClass() {
return runnerClass;
}