示例#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", "Пароль"});
  }
示例#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", "Поехали"});
  }
示例#3
0
  private void testLangsDef(LangLabelsSet ls) {

    String langs = ls.getLangList();
    assertNotNull(langs);
    assertEquals("Language set doesn't match", _tlangs.length, langs.split(",").length);
  }
示例#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", "Поехали"});
  }