ItEr58S17AsignacionConsolidacion: Fixed tests because of changes in allocation methods.
This commit is contained in:
parent
b778e0d4d7
commit
cf6c36ded7
3 changed files with 5 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ public class AllocationUntilFillingHoursTest {
|
|||
startDate.toDateTimeAtStartOfDay().toDate()).anyTimes();
|
||||
expect(task.getCriterions()).andReturn(
|
||||
Collections.<Criterion> emptySet()).anyTimes();
|
||||
expect(task.getFirstDayNotConsolidated()).andReturn(startDate)
|
||||
.anyTimes();
|
||||
replay(task);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ public class GenericResourceAllocationTest {
|
|||
.anyTimes();
|
||||
expect(task.getEndDate()).andReturn(interval.getEnd().toDate())
|
||||
.anyTimes();
|
||||
expect(task.getFirstDayNotConsolidated()).andReturn(
|
||||
interval.getStart().toLocalDate()).anyTimes();
|
||||
expect(task.getCalendar()).andReturn(baseCalendar).anyTimes();
|
||||
replay(task);
|
||||
return this.task = task;
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ public class SpecificResourceAllocationTest {
|
|||
start.toDateTimeAtStartOfDay().toDate()).anyTimes();
|
||||
expect(task.getEndDate()).andReturn(
|
||||
end.toDateTimeAtStartOfDay().toDate()).anyTimes();
|
||||
expect(task.getFirstDayNotConsolidated()).andReturn(start).anyTimes();
|
||||
replay(task);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue