@Test public void testGetLanguages() { final LanguageServiceImpl languageServiceImpl = new LanguageServiceImpl( "ru,uk,zh,zh_TW,es,mk,fr,bg,sw,ar,vi,fi,no,tr,pt-BR,en", "en", "en", this.clientSessionProvider); final List<Language> availableLanguages = languageServiceImpl.getAvailableLanguages(); assertTrue(availableLanguages.size() > 10); for (final Language language : availableLanguages) { if ("fr".equals(language.getCode())) { assertTrue(language.getOriginalLanguageName().equals("Fran\u00e7ais")); break; } } }
@Override public List<Language> getAvailableLanguages() { return getLanguagesForSession(); }
LanguageServiceImpl implements LanguageService { @Override public List<Language> getAvailableLanguages() { return getLanguagesForSession(); } }
LanguageServiceImpl implements LanguageService { @Override public List<Language> getAvailableLanguages() { return getLanguagesForSession(); } @Inject  LanguageServiceImpl(
            @Named("app.languages.available") final String languageCodes,
            @Named("app.languages.completed") final String completedLanguages,
            @Named("app.languages.partial") final String partialLanguages,
            final Provider<ClientSession> clientSessionProvider); }
LanguageServiceImpl implements LanguageService { @Override public List<Language> getAvailableLanguages() { return getLanguagesForSession(); } @Inject  LanguageServiceImpl(
            @Named("app.languages.available") final String languageCodes,
            @Named("app.languages.completed") final String completedLanguages,
            @Named("app.languages.partial") final String partialLanguages,
            final Provider<ClientSession> clientSessionProvider); @Override List<Language> getAvailableLanguages(); @Override boolean isSupported(final String langParam, final String country); @Override boolean isCompleted(final String langParam); }
LanguageServiceImpl implements LanguageService { @Override public List<Language> getAvailableLanguages() { return getLanguagesForSession(); } @Inject  LanguageServiceImpl(
            @Named("app.languages.available") final String languageCodes,
            @Named("app.languages.completed") final String completedLanguages,
            @Named("app.languages.partial") final String partialLanguages,
            final Provider<ClientSession> clientSessionProvider); @Override List<Language> getAvailableLanguages(); @Override boolean isSupported(final String langParam, final String country); @Override boolean isCompleted(final String langParam);  }