Esempio n. 1
0
  public static void checkLangLabelsSetFull(LangLabelsSet ll) {
    assertEquals("Total Size", 2, ll.getLangLabel().size());

    checkLabel(
        ll.getLangLabel().get(0),
        "LL_USERNAME",
        new String[] {"Username", "Nom d'utilisateur", "Имя"});
    checkLabel(
        ll.getLangLabel().get(1),
        "LL_PASSWORD",
        new String[] {"Password", "Mot de passe", "Пароль"});
  }
Esempio n. 2
0
  public static void checkLangLabelsSetCombined(LangLabelsSet ll) {
    assertEquals("Total Size", 3, ll.getLangLabel().size());

    checkLabel(
        ll.getLangLabel().get(0),
        "LL_USERNAME",
        new String[] {"Username", "Nom d'utilisateur", "Имя"});
    checkLabel(
        ll.getLangLabel().get(1),
        "LL_PASSWORD",
        new String[] {"Password", "Mot de passe", "Пароль"});
    checkLabel(
        ll.getLangLabel().get(2), "LL_LETS_GO", new String[] {"Let's go", "Allons-y", "Поехали"});
  }
Esempio n. 3
0
  private void testLangsDef(LangLabelsSet ls) {

    String langs = ls.getLangList();
    assertNotNull(langs);
    assertEquals("Language set doesn't match", _tlangs.length, langs.split(",").length);
  }
Esempio n. 4
0
  public static void checkLangLabelsSetPartial(LangLabelsSet ll) {
    assertEquals("Total Size", 1, ll.getLangLabel().size());

    checkLabel(
        ll.getLangLabel().get(0), "LL_LETS_GO", new String[] {"Let's go", "Allons-y", "Поехали"});
  }