@Test public void provides_emoji_dialect() { GherkinDialect em = new GherkinDialectProvider().getDialect("em", null); assertEquals(1, symbolCount(em.getScenarioKeywords().get(0))); }
@Override public GherkinDialect getDialect(String language, Location location) { JsonValue languageObject = DIALECTS.get(language); if (languageObject == null) { throw new ParserException.NoSuchLanguageException(language, location); } return new GherkinDialect(language, languageObject.asObject()); }
GherkinDialectProvider implements IGherkinDialectProvider { @Override public GherkinDialect getDialect(String language, Location location) { JsonValue languageObject = DIALECTS.get(language); if (languageObject == null) { throw new ParserException.NoSuchLanguageException(language, location); } return new GherkinDialect(language, languageObject.asObject()); } }
GherkinDialectProvider implements IGherkinDialectProvider { @Override public GherkinDialect getDialect(String language, Location location) { JsonValue languageObject = DIALECTS.get(language); if (languageObject == null) { throw new ParserException.NoSuchLanguageException(language, location); } return new GherkinDialect(language, languageObject.asObject()); } GherkinDialectProvider(String defaultDialectName);  GherkinDialectProvider(); }
GherkinDialectProvider implements IGherkinDialectProvider { @Override public GherkinDialect getDialect(String language, Location location) { JsonValue languageObject = DIALECTS.get(language); if (languageObject == null) { throw new ParserException.NoSuchLanguageException(language, location); } return new GherkinDialect(language, languageObject.asObject()); } GherkinDialectProvider(String defaultDialectName);  GherkinDialectProvider(); GherkinDialect getDefaultDialect(); @Override GherkinDialect getDialect(String language, Location location); @Override List<String> getLanguages(); }
GherkinDialectProvider implements IGherkinDialectProvider { @Override public GherkinDialect getDialect(String language, Location location) { JsonValue languageObject = DIALECTS.get(language); if (languageObject == null) { throw new ParserException.NoSuchLanguageException(language, location); } return new GherkinDialect(language, languageObject.asObject()); } GherkinDialectProvider(String defaultDialectName);  GherkinDialectProvider(); GherkinDialect getDefaultDialect(); @Override GherkinDialect getDialect(String language, Location location); @Override List<String> getLanguages(); static final String JSON_PATH; }