jhorstmann / zuchini

A reimplementation of gherkin and cucumber for java based on antlr4 and junit
11 stars 3 forks source link

Include method signatures of all matching methods in exception message #17

Open whiskeysierra opened 7 years ago

whiskeysierra commented 7 years ago

The StatementBuilder throws an exception that could be more helpful:

if (methods.size() > 1) {
    throw new IllegalStateException("Multiple matching methods for [" + description + "]");
}