* Should not happen.
*/
@Test
public void addRunAtBeginOfList() throws Exception {
logger.info("addRunAtBeginOfList");
Project project = new Project("Bla");
project.setClasspath(Const.CLASSPATH);
project.addTestClass(new ClassFile(NAME_DUMMYTEST, CLASSPATH + DIRSEP));
// 1. Testlauf
// logger.info("1. Testlauf");
project.runTests();
assertEquals(1, project.getTestRuns().size());
Run run1 = project.getTestRuns().get(0);
Date date1 = run1.getRunDate();
// 2. Testlauf
// logger.info("2. Testlauf");
project.runTests();
assertEquals(2, project.getTestRuns().size());
Run run2 = project.getTestRuns().get(0);
Date date2 = run2.getRunDate();
// logger.info("date1: " + date1 + date1.getTime());
// logger.info("date2: " + date2 + date2.getTime());
assertEquals(true, date2.after(date1));
// 3. Testlauf
// logger.info("3. Testlauf");
project.runTests();
assertEquals(3, project.getTestRuns().size());
Run run3 = project.getTestRuns().get(0);
Date date3 = run3.getRunDate();
// logger.info("date1: " + date1 + date1.getTime());
// logger.info("date2: " + date2 + date2.getTime());
// logger.info("date3: " + date3 + date3.getTime());
assertEquals(true, date3.after(date1));