Changed test to avoid it fails if it's launched on Saturday.
FEA: ItEr74S04BugFixing
This commit is contained in:
parent
9459be7464
commit
0d327dac9c
1 changed files with 5 additions and 4 deletions
|
|
@ -554,8 +554,9 @@ public class TaskElementDAOTest {
|
|||
allocation.setResource(createValidWorker());
|
||||
LocalDate start = task.getStartAsLocalDate();
|
||||
task.setIntraDayEndDate(IntraDayDate.startOfDay(start
|
||||
.plusDays(2)));
|
||||
allocation.onIntervalWithinTask(start, start.plusDays(2)).allocateHours(16);
|
||||
.plusDays(3)));
|
||||
allocation.onIntervalWithinTask(start, start.plusDays(3))
|
||||
.allocateHours(24);
|
||||
assertTrue(allocation.getAssignedHours() > 0);
|
||||
|
||||
task.addResourceAllocation(allocation);
|
||||
|
|
@ -579,8 +580,8 @@ public class TaskElementDAOTest {
|
|||
fail();
|
||||
return null;
|
||||
}
|
||||
assertTrue(task1.getSumOfHoursAllocated() == 16);
|
||||
assertTrue(task1.getParent().getSumOfHoursAllocated() == 16);
|
||||
assertTrue(task1.getSumOfHoursAllocated() == 24);
|
||||
assertTrue(task1.getParent().getSumOfHoursAllocated() == 24);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue