1 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  16 public String 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 ( 26 "This test stub created only for informational purposes."); 27 } 28 29 public Description getDescription() { 30 return fDescription; 31 } 32 } | Popular Tags |