@@ -17,11 +17,24 @@ public abstract class TestStep {
17
17
"org.junit.AssumptionViolatedException" ,
18
18
"org.junit.internal.AssumptionViolatedException"
19
19
};
20
+
20
21
static {
21
22
Arrays .sort (ASSUMPTION_VIOLATED_EXCEPTIONS );
22
23
}
24
+
25
+ /**
26
+ * @deprecated not part of the public api
27
+ */
28
+ @ Deprecated
23
29
protected final DefinitionMatch definitionMatch ;
24
30
31
+ /**
32
+ * Creates a new test step from the matching step definition
33
+ *
34
+ * @param definitionMatch the matching step definition
35
+ * @deprecated not part of the public api
36
+ */
37
+ @ Deprecated
25
38
public TestStep (DefinitionMatch definitionMatch ) {
26
39
this .definitionMatch = definitionMatch ;
27
40
}
@@ -52,6 +65,15 @@ public List<cucumber.runtime.Argument> getDefinitionArgument() {
52
65
53
66
public abstract HookType getHookType ();
54
67
68
+ /**
69
+ * @param bus to which events should be broadcast
70
+ * @param language in which the step is defined
71
+ * @param scenario of which this step is part
72
+ * @param skipSteps if this step should be skipped
73
+ * @return result of running this step
74
+ * @deprecated not part of the public api
75
+ */
76
+ @ Deprecated
55
77
public Result run (EventBus bus , String language , Scenario scenario , boolean skipSteps ) {
56
78
Long startTime = bus .getTime ();
57
79
bus .send (new TestStepStarted (startTime , this ));
@@ -69,10 +91,12 @@ public Result run(EventBus bus, String language, Scenario scenario, boolean skip
69
91
return result ;
70
92
}
71
93
94
+ @ Deprecated
72
95
protected Result .Type nonExceptionStatus (boolean skipSteps ) {
73
96
return skipSteps ? Result .Type .SKIPPED : Result .Type .PASSED ;
74
97
}
75
98
99
+ @ Deprecated
76
100
protected Result .Type executeStep (String language , Scenario scenario , boolean skipSteps ) throws Throwable {
77
101
if (!skipSteps ) {
78
102
definitionMatch .runStep (language , scenario );
0 commit comments