@Test public void getMarkupLanguages() { MarkupLanguageProvider provider = new TestLanguageProvider(); assertNotNull(provider.getMarkupLanguages()); assertEquals(1, provider.getMarkupLanguages().size()); assertEquals("Test", provider.getMarkupLanguages().iterator().next().getName()); }
public final Set<MarkupLanguage> getMarkupLanguages() { Set<MarkupLanguage> languages = ImmutableSet .copyOf(Objects.requireNonNull(loadMarkupLanguages(), "loadMarkupLanguages() must not return null")); assertLanguageNames(languages); return languages; }
MarkupLanguageProvider { public final Set<MarkupLanguage> getMarkupLanguages() { Set<MarkupLanguage> languages = ImmutableSet .copyOf(Objects.requireNonNull(loadMarkupLanguages(), "loadMarkupLanguages() must not return null")); assertLanguageNames(languages); return languages; } }
MarkupLanguageProvider { public final Set<MarkupLanguage> getMarkupLanguages() { Set<MarkupLanguage> languages = ImmutableSet .copyOf(Objects.requireNonNull(loadMarkupLanguages(), "loadMarkupLanguages() must not return null")); assertLanguageNames(languages); return languages; }  }
MarkupLanguageProvider { public final Set<MarkupLanguage> getMarkupLanguages() { Set<MarkupLanguage> languages = ImmutableSet .copyOf(Objects.requireNonNull(loadMarkupLanguages(), "loadMarkupLanguages() must not return null")); assertLanguageNames(languages); return languages; }  final Set<MarkupLanguage> getMarkupLanguages(); }
MarkupLanguageProvider { public final Set<MarkupLanguage> getMarkupLanguages() { Set<MarkupLanguage> languages = ImmutableSet .copyOf(Objects.requireNonNull(loadMarkupLanguages(), "loadMarkupLanguages() must not return null")); assertLanguageNames(languages); return languages; }  final Set<MarkupLanguage> getMarkupLanguages();  }