aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/junit/framework/JUnit4TestCaseFacade.java
blob: fd4382231619b23fd5d681b9e91f1b81c63e5677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
 * 
 */
package junit.framework;

import org.junit.runner.Describable;
import org.junit.runner.Description;

public class JUnit4TestCaseFacade implements Test, Describable {
	private final Description fDescription;

	JUnit4TestCaseFacade(Description description) {
		fDescription = description;
	}

	@Override
	public String toString() {
		return getDescription().toString();
	}

	public int countTestCases() {
		return 1;
	}

	public void run(TestResult result) {
		throw new RuntimeException(
				"This test stub created only for informational purposes.");
	}

	public Description getDescription() {
		return fDescription;
	}
}