Date tomorrow = new Date(new Date().getTime() + 1000 * 60 * 60 * 24);
Lecturer lect3 = new Lecturer("Peter", "Zaruba");
Lecturer lect2 = new Lecturer("Frans", "Zimmer");
Student s1 = new Student(1025748, "Florian", "Zaruba");
Interview i1 = new Interview(2000, yesterday, tomorrow, yesterday, yesterday, yesterday, lect3, 30, new ArrayList<User>());
scoreService.score(lect3, s1, i1, 20);
assertNotEmpty(scoreService.getScores(lect3, i1, s1));
System.out.println("User: " + s1.getMatriculationNr() + " was successfully scored for " + i1 + " by " + lect3);
try {
scoreService.score(lect2, new Student(1025748, "Florian", "Zaruba"), new Interview(2000, yesterday, tomorrow, yesterday, yesterday, yesterday, lect3, 30, new ArrayList<User>()), 40);
fail();
} catch (NotAllowedException e) {
System.out.println("Sucessfully tested UserNotAllowed Exception for Scoring!");
}
}