Removed duplicate test.
This commit is contained in:
parent
554f479947
commit
4f4fb4b93b
@ -373,25 +373,6 @@ should NOT overlap. */
|
||||
Assert.assertTrue(periodOverlap); // should overlap
|
||||
}
|
||||
|
||||
/* same time periods, with same project classes, should overlap */
|
||||
@Test
|
||||
@Transactional
|
||||
@Rollback
|
||||
public void overlappingSameProjectClasses() {
|
||||
cleanUpDatabase();
|
||||
Set<ProjectClass> myBachelorSet = new HashSet<ProjectClass>();
|
||||
myBachelorSet.add(bachelor);
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.set(2012, Calendar.MARCH, 2);
|
||||
final Date startDate = cal.getTime();
|
||||
cal.set(2012, Calendar.APRIL, 2);
|
||||
final Date endDate = cal.getTime();
|
||||
cal.set(Calendar.HOUR_OF_DAY, 13);
|
||||
final Date endDate2 = cal.getTime();
|
||||
applicationPeriodDao.save(ApplicationPeriodFacade.createApplicationPeriod(myBachelorSet, startDate, endDate));
|
||||
boolean periodOverlap = applicationPeriodFacade.doesPeriodOverlap(applicationPeriodDao.save(ApplicationPeriodFacade.createApplicationPeriod(myBachelorSet, startDate, endDate2)));
|
||||
Assert.assertTrue(periodOverlap); // should overlap
|
||||
}
|
||||
|
||||
/* the same time periods, with different sets of project classes, but when one of the project classes overlaps, should overlap */
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user