Home | History | Annotate | Download | only in framework
      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 
     12 	JUnit4TestCaseFacade(Description description) {
     13 		fDescription = description;
     14 	}
     15 
     16 	@Override
     17 	public String toString() {
     18 		return getDescription().toString();
     19 	}
     20 
     21 	public int countTestCases() {
     22 		return 1;
     23 	}
     24 
     25 	public void run(TestResult result) {
     26 		throw new RuntimeException(
     27 				"This test stub created only for informational purposes.");
     28 	}
     29 
     30 	public Description getDescription() {
     31 		return fDescription;
     32 	}
     33 }