Permalink
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 427 Bytes
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));
}
}