protected EPlan makePlanWithActivityNames(List<String> activityNames) { EPlan plan = PlanFactory.eINSTANCE.createEPlan(); for (String name : activityNames) { plan.getChildren().add(makeActivityNamed(name)); } return plan; }
protected EPlanChild getActivityNamed(EPlan plan, String name) { for (EPlanChild child : plan.getChildren()) { if (child.getName() == name) { return child; } } return null; }
protected void assertNamesEqual(String message, EPlan plan, String... expectedNames) { assertNamesEqual(message, plan.getChildren(), expectedNames); }
protected static void assertNamesEqual(String message, EPlan plan, List<String> expectedNames) { assertNamesEqual(message, plan.getChildren(), expectedNames); }