link start!
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package junit.framework;
|
||||
|
||||
public interface Protectable {
|
||||
void protect() throws Throwable;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package junit.framework;
|
||||
|
||||
public interface Test {
|
||||
int countTestCases();
|
||||
|
||||
void run(TestResult testResult);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package junit.framework;
|
||||
|
||||
public interface TestListener {
|
||||
void addError(Test test, Throwable th);
|
||||
|
||||
void addFailure(Test test, AssertionFailedError assertionFailedError);
|
||||
|
||||
void endTest(Test test);
|
||||
|
||||
void startTest(Test test);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package junit.runner;
|
||||
|
||||
import java.awt.Component;
|
||||
import junit.framework.TestFailure;
|
||||
|
||||
public interface FailureDetailView {
|
||||
void clear();
|
||||
|
||||
Component getComponent();
|
||||
|
||||
void showFailure(TestFailure testFailure);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package junit.runner;
|
||||
|
||||
import java.util.Enumeration;
|
||||
|
||||
public interface TestCollector {
|
||||
Enumeration collectTests();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package junit.runner;
|
||||
|
||||
public interface TestRunListener {
|
||||
public static final int STATUS_ERROR = 1;
|
||||
public static final int STATUS_FAILURE = 2;
|
||||
|
||||
void testEnded(String str);
|
||||
|
||||
void testFailed(int i, String str, String str2);
|
||||
|
||||
void testRunEnded(long j);
|
||||
|
||||
void testRunStarted(String str, int i);
|
||||
|
||||
void testRunStopped(long j);
|
||||
|
||||
void testStarted(String str);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package junit.runner;
|
||||
|
||||
public interface TestSuiteLoader {
|
||||
Class load(String str) throws ClassNotFoundException;
|
||||
|
||||
Class reload(Class cls) throws ClassNotFoundException;
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 964 B |
Binary file not shown.
|
After Width: | Height: | Size: 883 B |
@@ -0,0 +1,10 @@
|
||||
package junit.swingui;
|
||||
|
||||
import javax.swing.ListModel;
|
||||
import junit.framework.Test;
|
||||
|
||||
public interface TestRunContext {
|
||||
ListModel getFailures();
|
||||
|
||||
void handleTestSelected(Test test);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package junit.swingui;
|
||||
|
||||
import javax.swing.JTabbedPane;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestResult;
|
||||
|
||||
interface TestRunView {
|
||||
void aboutToStart(Test test, TestResult testResult);
|
||||
|
||||
void activate();
|
||||
|
||||
void addTab(JTabbedPane jTabbedPane);
|
||||
|
||||
Test getSelectedTest();
|
||||
|
||||
void revealFailure(Test test);
|
||||
|
||||
void runFinished(Test test, TestResult testResult);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 870 B |
Binary file not shown.
|
After Width: | Height: | Size: 862 B |
Binary file not shown.
|
After Width: | Height: | Size: 888 B |
Binary file not shown.
|
After Width: | Height: | Size: 85 B |
Reference in New Issue
Block a user