public void printIntersections() { List<Intersection> intersections; try { intersections = Request.getAllIntersections(host, ieServicesUsername, ieServicesPassword); for (Intersection intersection : intersections) { log.debug(intersection.toString()); } log.debug("\n"); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Before public void setUp() throws Exception { Request.initIntersection(); Request.initConfig(); Request.deleteAllIntersections(host, ieServicesUsername, ieServicesPassword); Config config = Request.existConfig(host, ieServicesUsername, ieServicesPassword); if (config != null) { Request.deleteConfig(host, config.getConfigId(), ieServicesUsername, ieServicesPassword); } SettingConfiguration intersectionConfiguration = new SettingConfiguration("id", "name", " description"); intersectionConfiguration.setPersistencyHost("http://localhost:9001"); intersectionConfiguration.setDefaultMaskLayer("fifao:UN_CONTINENT"); intersectionAction = new SettingAction(intersectionConfiguration); IntersectionConfiguration cronConfiguration = new IntersectionConfiguration("id", "name", " description"); cronConfiguration.setPersistencyHost("http://localhost:9999"); cronAction = new IntersectionAction(cronConfiguration); }