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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    Higher the precedence is, sooner this decider will be treated.
  • Field Details

  • Method Details

    • 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