*/
public void testUpdateLanguage() throws Exception {
List languages = persistence.getAllLanguages();
for (int i = 0; i < 3; ++i) {
Language language = (Language) languages.get(i);
long id = language.getId();
persistence.updateLanguage(
new Language(id, "new language" + id, "new Language " + id, "new compiler" + id, "new options" + id), 10);
}
languages = persistence.getAllLanguages();
for (int i = 0; i < 3; ++i) {
Language language = (Language) languages.get(i);
long id = language.getId();
assertEquals("wrong name", "new language" + id, language.getName());
assertEquals("wrong desc", "new Language " + id, language.getDescription());
assertEquals("wrong options", "new options" + id, language.getOptions());
assertEquals("wrong compiler", "new compiler" + id, language.getCompiler());
}
}