Interface TestExecutionDecider
-
public interface TestExecutionDecider
Override the execution of the Before/Test/After phase of the Test framework.- Author:
- Stefan Miklosovic
-
-
Field Summary
Fields Modifier and Type Field Description static TestExecutionDecider
EXECUTE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutionDecision
decide(Method testMethod)
This method will be called individually for each event(before/test/after), but should return the same result for each to behave consistently.int
precedence()
Higher the precedence is, sooner this decider will be treated.
-
-
-
Field Detail
-
EXECUTE
static final TestExecutionDecider EXECUTE
-
-
Method Detail
-
decide
ExecutionDecision decide(Method testMethod)
This method will be called individually for each event(before/test/after), but should return the same result for each to behave consistently.- Parameters:
testMethod
- test method to resolve a test execution on. This is always the @Test method regardless of the current phase before or after.- Returns:
- execution decision telling if a test method is going to be executed or not
-
precedence
int precedence()
Higher the precedence is, sooner this decider will be treated.- Returns:
- precedence of this decider
-
-