System.out.println("getAllVersionsOfGradedEvent");
assertTrue(instance.isOpen());
CourseDAO courseDAO = new CourseDAO(testDb.getConnection());
Course course = courseDAO.find(1L);
GradedEvent assignment = new GradedEvent();
assignment.setCourse(course);
assignment.setTerm("Summer 2010");
assignment.setAssignment("PEX2");
assignment.setVersion("ALL");
List<GradedEvent> result = instance.getAllVersionsOfGradedEvent(assignment);
assertNotNull(result);
assertEquals(2, result.size());
assertEquals(course, result.get(0).getCourse());
assertEquals("Summer 2010", result.get(0).getTerm());
assertEquals("PEX2", result.get(0).getAssignment());
assertEquals("M1", result.get(0).getVersion());
assertEquals(course, result.get(1).getCourse());
assertEquals("Summer 2010", result.get(1).getTerm());
assertEquals("PEX2", result.get(1).getAssignment());
assertEquals("M2", result.get(1).getVersion());
assertTrue(instance.isOpen());
assignment.setAssignment("PEX1");
result = instance.getAllVersionsOfGradedEvent(assignment);
assertNotNull(result);
assertEquals(1, result.size());
assertEquals(course, result.get(0).getCourse());
assertEquals("Summer 2010", result.get(0).getTerm());