cucumber.runtime.DuplicateStepDefinitionException Maven / Gradle / Ivy
package cucumber.runtime;
public class DuplicateStepDefinitionException extends CucumberException {
public DuplicateStepDefinitionException(StepDefinition a, StepDefinition b) {
super(createMessage(a, b));
}
private static String createMessage(StepDefinition a, StepDefinition b) {
return String.format("Duplicate step definitions in %s and %s", a.getLocation(true), b.getLocation(true));
}
}