}
}
}
);
final Configuration config = configurationFactory.getConfig(getFile(BASE_DIR + "config.yaml"));
final Template template = config.getTemplate("main");
PJsonObject requestData = loadJsonRequestData();
final JSONObject jsonLayer = requestData.getJSONObject("attributes").getJSONObject("mapDef").getJSONArray("layers")
.getJSONObject(0).getInternalObj();
for (String gmlDataName : new String[]{"spearfish-streams-v2.gml", "spearfish-streams-v311.gml"}) {
jsonLayer.remove("url");
jsonLayer.accumulate("url", "http://" + host + ":23432" + "/gml/" + gmlDataName);
Values values = new Values(requestData, template, parser, getTaskDirectory(), this.requestFactory, new File("."));
template.getProcessorGraph().createTask(values).invoke();
@SuppressWarnings("unchecked")
List<URI> layerGraphics = (List<URI>) values.getObject("layerGraphics", List.class);
assertEquals(1, layerGraphics.size());