@Test public void calculateFromDate() { final GanttTaskImpl activity1 = createActivity(10).setTitle("activity1"); final DayHolder day = new DayHolder(); day.setDate(2010, Month.FEBRUARY, 5); activity1.setStartDate(day.getLocalDate()); assertDates("2010-02-05", "2010-02-19", activity1); activity1.setStartDate(null); day.addWorkingDays(10); activity1.setEndDate(day.getLocalDate()); assertDates("2010-02-05", "2010-02-19", activity1); final GanttTaskImpl activity2 = createActivity(5).setTitle("activity2"); activity2.setPredecessor(activity1); assertLocalDate(GanttUtils.getCalculatedStartDate(activity2), 2010, Month.FEBRUARY, 19); activity2.setPredecessorOffset(2); assertLocalDate(GanttUtils.getCalculatedStartDate(activity2),2010, Month.FEBRUARY, 19); activity2.recalculate(); assertLocalDate(GanttUtils.getCalculatedStartDate(activity2),2010, Month.FEBRUARY, 23); final GanttTaskImpl a1 = createActivity(1).setTitle("a1"); day.setDate(2010, Month.FEBRUARY, 1); a1.setStartDate(day.getLocalDate()); final GanttTaskImpl a2 = createActivity(10).setTitle("a2"); a2.setPredecessor(a1); final GanttTaskImpl a2_1 = createActivity(10).setTitle("a2_1"); a2_1.setPredecessor(a2).setRelationType(GanttRelationType.START_START); a2.addChild(a2_1); final GanttTaskImpl a2_2 = createActivity(2).setTitle("a2_2"); a2_2.setPredecessor(a2).setRelationType(GanttRelationType.START_START); a2.addChild(a2_2); assertLocalDate(GanttUtils.getCalculatedStartDate(a1), 2010, Month.FEBRUARY, 1); assertLocalDate(GanttUtils.getCalculatedStartDate(a2), 2010, Month.FEBRUARY, 2); assertLocalDate(GanttUtils.getCalculatedStartDate(a2), 2010, Month.FEBRUARY, 2); assertLocalDate(GanttUtils.getCalculatedStartDate(a2),2010, Month.FEBRUARY, 2); }
public static LocalDate getCalculatedStartDate(final GanttTask node) { final LocalDate start = getCalculatedStartDate(node, new HashSet<>(), new HashSet<>()); return start; }
GanttUtils { public static LocalDate getCalculatedStartDate(final GanttTask node) { final LocalDate start = getCalculatedStartDate(node, new HashSet<>(), new HashSet<>()); return start; } }
GanttUtils { public static LocalDate getCalculatedStartDate(final GanttTask node) { final LocalDate start = getCalculatedStartDate(node, new HashSet<>(), new HashSet<>()); return start; }  }
GanttUtils { public static LocalDate getCalculatedStartDate(final GanttTask node) { final LocalDate start = getCalculatedStartDate(node, new HashSet<>(), new HashSet<>()); return start; }  static LocalDate getCalculatedStartDate(final GanttTask node); static LocalDate getCalculatedEndDate(final GanttTask node); }
GanttUtils { public static LocalDate getCalculatedStartDate(final GanttTask node) { final LocalDate start = getCalculatedStartDate(node, new HashSet<>(), new HashSet<>()); return start; }  static LocalDate getCalculatedStartDate(final GanttTask node); static LocalDate getCalculatedEndDate(final GanttTask node); static Comparator<GanttTask> GANTT_OBJECT_COMPARATOR; }