Skip to content

Commit 5908ead

Browse files
committed
Deprecate constructors and run methods of TestCase
1 parent 442922b commit 5908ead

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

core/src/main/java/cucumber/api/TestCase.java

+28
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,40 @@ public class TestCase {
1515
private final List<TestStep> testSteps;
1616
private final boolean dryRun;
1717

18+
/**
19+
* Creates a new instance of a test case.
20+
*
21+
* @param testSteps of the test case
22+
* @param pickleEvent the pickle executed by this test case
23+
* @deprecated not part of the public api
24+
*/
25+
@Deprecated
26+
public TestCase(List<TestStep> testSteps, PickleEvent pickleEvent) {
27+
this(testSteps, pickleEvent, false);
28+
}
29+
30+
/**
31+
* Creates a new instance of a test case.
32+
*
33+
* @param testSteps of the test case
34+
* @param pickleEvent the pickle executed by this test case
35+
* @param dryRun skip execution of the test steps
36+
* @deprecated not part of the public api
37+
*/
38+
@Deprecated
1839
public TestCase(List<TestStep> testSteps, PickleEvent pickleEvent, boolean dryRun) {
1940
this.testSteps = testSteps;
2041
this.pickleEvent = pickleEvent;
2142
this.dryRun = dryRun;
2243
}
2344

45+
/**
46+
* Executes the test case.
47+
*
48+
* @param bus to which events should be broadcast
49+
* @deprecated not part of the public api
50+
*/
51+
@Deprecated
2452
public void run(EventBus bus) {
2553
boolean skipNextStep = this.dryRun;
2654
Long startTime = bus.getTime();

0 commit comments

Comments
 (0)