ItEr58S17AsignacionConsolidacion: Fixed tests because of changes in allocation methods.

This commit is contained in:
Manuel Rego Casasnovas 2010-05-26 10:55:07 +02:00
parent b778e0d4d7
commit cf6c36ded7
3 changed files with 5 additions and 0 deletions

View file

@ -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);
}

View file

@ -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;

View file

@ -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);
}