@Test public void translationsAreValidJSON() { assertThat( "The traslation " + lang + " is wrong", ts.getTranslationObject(lang).length(), is(not(equalTo(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; }
static { final String webRoot = System.getProperty("user.dir").concat("/src/main/webapp/"); // TODO Settings.getInstance().setRootPath(webRoot); ts = TranslationService.getInstance(); }