Class ScenarioTestInstance
java.lang.Object
fr.fidorial.testing.ScenarioTestInstance
A test method annotated with
ScenarioTest, as discovered by the runner.- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionScenarioTestInstance(Method method, String group, int timeoutTicks, boolean required) Wraps a test method. -
Method Summary
-
Constructor Details
-
ScenarioTestInstance
Wraps a test method.- Parameters:
method- the static method taking aScenarioTestHelpergroup- the group the test belongs totimeoutTicks- the number of ticks after which the test failsrequired- whether a failure fails the whole run- Since:
- 0.1.0
-
-
Method Details
-
id
Returns the identifier of the test,<class>/<method>.- Returns:
- the identifier of the test,
<class>/<method> - Since:
- 0.1.0
-
group
Returns the group the test belongs to.- Returns:
- the group the test belongs to
- Since:
- 0.1.0
-
timeoutTicks
public int timeoutTicks()Returns the number of ticks after which the test fails.- Returns:
- the number of ticks after which the test fails
- Since:
- 0.1.0
-
required
public boolean required()Returnstrueif a failure fails the whole run.- Returns:
trueif a failure fails the whole run- Since:
- 0.1.0
-