carbidecpp20devenv/plugins/org.eclipse.test.source_3.3.0.v20080507/src/org.junit4_4.3.1/junitsrc/junit/framework/JUnit4TestCaseFacade.java
changeset 1 82d1d1de1a01
equal deleted inserted replaced
-1:000000000000 1:82d1d1de1a01
       
     1 /**
       
     2  * 
       
     3  */
       
     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 }