001package junit.framework;
002
003import org.junit.runner.Describable;
004import org.junit.runner.Description;
005
006public class JUnit4TestCaseFacade implements Test, Describable {
007    private final Description fDescription;
008
009    JUnit4TestCaseFacade(Description description) {
010        fDescription = description;
011    }
012
013    @Override
014    public String toString() {
015        return getDescription().toString();
016    }
017
018    public int countTestCases() {
019        return 1;
020    }
021
022    public void run(TestResult result) {
023        throw new RuntimeException(
024                "This test stub created only for informational purposes.");
025    }
026
027    public Description getDescription() {
028        return fDescription;
029    }
030}