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