예제 #1
0
 @Test
 public void translationsAreValidJSON() {
   assertThat(
       "The traslation " + lang + " is wrong",
       ts.getTranslationObject(lang).length(),
       is(not(equalTo(0))));
 }
예제 #2
0
  @Parameters
  public static Collection<Object[]> data() {
    final List<Object[]> data = new ArrayList<Object[]>();

    for (final String lang : ts.getTranslationList().keySet()) {
      final Object[] params = {lang};
      data.add(params);
    }
    return data;
  }
예제 #3
0
 static {
   final String webRoot = System.getProperty("user.dir").concat("/src/main/webapp/"); // TODO
   Settings.getInstance().setRootPath(webRoot);
   ts = TranslationService.getInstance();
 }