01: /**
02: *
03: */package junit.framework;
04:
05: import org.junit.runner.Description;
06:
07: public class JUnit4TestCaseFacade implements Test {
08: private final Description fDescription;
09:
10: JUnit4TestCaseFacade(Description description) {
11: fDescription = description;
12: }
13:
14: @Override
15: public String toString() {
16: return getDescription().toString();
17: }
18:
19: public int countTestCases() {
20: return 1;
21: }
22:
23: public void run(TestResult result) {
24: throw new RuntimeException(
25: "This test stub created only for informational purposes.");
26: }
27:
28: public Description getDescription() {
29: return fDescription;
30: }
31: }
|