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