ItEr40S05ValidacionEProbasFuncionaisItEr39S05: [Bug #188] Fixing bug. Relaxing precondition. The startDate and the endDate can be the same day.

This commit is contained in:
Óscar González Fernández 2009-12-21 18:19:21 +01:00
parent 3017d1c541
commit 9e2a6062b7

View file

@ -230,7 +230,7 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
public void allocateUntil(LocalDate end) {
Validate.notNull(end);
Validate.isTrue(end.isAfter(new LocalDate(task.getStartDate())));
Validate.isTrue(!end.isBefore(new LocalDate(task.getStartDate())));
for (HoursModification each : hoursModifications) {
each.allocateUntil(end);
}