use of gherkin.I18n in project cucumber-jvm by cucumber.
the class UndefinedStepsTrackerTest method snippets_are_generated_for_correct_locale.
@Test
public void snippets_are_generated_for_correct_locale() throws Exception {
Backend backend = new TestBackend();
UndefinedStepsTracker tracker = new UndefinedStepsTracker();
tracker.addUndefinedStep(new Step(null, "Если ", "Б", 1, null, null), new I18n("ru"));
assertEquals("[Если ^Б$]", tracker.getSnippets(asList(backend), functionNameGenerator).toString());
}
Aggregations