*/
public void testUpdateJudgeReply() throws Exception {
List judgeReplies = persistence.getAllJudgeReplies();
for (int i = 0; i < 3; ++i) {
JudgeReply judgeReply = (JudgeReply) judgeReplies.get(i);
long id = judgeReply.getId();
persistence.updateJudgeReply(
new JudgeReply(id, "new judgeReply" + id, "new JudgeReply " + id, "new style" + id, i % 2 == 1), 10);
}
judgeReplies = persistence.getAllJudgeReplies();
for (int i = 0; i < 3; ++i) {
JudgeReply judgeReply = (JudgeReply) judgeReplies.get(i);
long id = judgeReply.getId();
assertEquals("wrong name", "new judgeReply" + id, judgeReply.getName());
assertEquals("wrong desc", "new JudgeReply " + id, judgeReply.getDescription());
assertEquals("wrong options", "new style" + id, judgeReply.getStyle());
assertEquals("wrong compiler", i %2 == 1, judgeReply.isCommitted());
}
}