KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > framework > JUnit4TestCaseFacade


1 /**
2  *
3  */

4 package junit.framework;
5
6 import org.junit.runner.Description;
7
8 public class JUnit4TestCaseFacade implements Test {
9     private final Description fDescription;
10
11     JUnit4TestCaseFacade(Description description) {
12         fDescription = description;
13     }
14
15     @Override JavaDoc
16     public String JavaDoc toString() {
17         return getDescription().toString();
18     }
19
20     public int countTestCases() {
21         return 1;
22     }
23
24     public void run(TestResult result) {
25         throw new RuntimeException JavaDoc(
26                 "This test stub created only for informational purposes.");
27     }
28
29     public Description getDescription() {
30         return fDescription;
31     }
32 }
Popular Tags