cucumber.runtime.HookDefinition Maven / Gradle / Ivy
package cucumber.runtime;
import cucumber.api.Scenario;
import gherkin.pickles.PickleTag;
import java.util.Collection;
public interface HookDefinition {
/**
* The source line where the step definition is defined.
* Example: foo/bar/Zap.brainfuck:42
*
* @param detail true if extra detailed location information should be included.
*/
String getLocation(boolean detail);
void execute(Scenario scenario) throws Throwable;
boolean matches(Collection tags);
int getOrder();
/**
* @return true if this instance is scoped to a single scenario, or false if it can be reused across scenarios.
*/
boolean isScenarioScoped();
}