@Test void asLocaleTest() throws Exception { assertEquals("de", Languages.asLocale("de").getLanguage()); assertEquals("en", Languages.asLocale("en").getLanguage()); assertNull(Languages.asLocale(null)); assertNotNull(Languages.asLocale(null, true)); assertEquals(Locale.ROOT, Languages.asLocale(null, true)); }
public static Locale asLocale(String language) { return asLocale(language, false); }
Languages { public static Locale asLocale(String language) { return asLocale(language, false); } }
Languages { public static Locale asLocale(String language) { return asLocale(language, false); }  }
Languages { public static Locale asLocale(String language) { return asLocale(language, false); }  static Locale asLocale(String language); static Locale asLocale(String language, boolean rootAsDefault); static String asString(Locale locale); }
Languages { public static Locale asLocale(String language) { return asLocale(language, false); }  static Locale asLocale(String language); static Locale asLocale(String language, boolean rootAsDefault); static String asString(Locale locale);  }