use of org.custommonkey.xmlunit.SimpleNamespaceContext in project ddf by codice.
the class AbstractTestCompositeGeometry method setupTestClass.
@BeforeClass
public static void setupTestClass() {
HashMap map = new HashMap();
map.put("gml", "http://www.opengis.net/gml");
map.put("georss", "http://www.georss.org/georss");
NamespaceContext ctx = new SimpleNamespaceContext(map);
XMLUnit.setXpathNamespaceContext(ctx);
XMLUnit.setIgnoreWhitespace(true);
}
use of org.custommonkey.xmlunit.SimpleNamespaceContext in project ddf by codice.
the class TestXmlResponseQueueTransformer method setupTestClass.
@BeforeClass
public static void setupTestClass() {
// makes xpaths easier to write when prefixes are declared beforehand.
HashMap<String, String> map = new HashMap<>();
map.put("gml", "http://www.opengis.net/gml");
map.put("mc", "urn:catalog:metacard");
NamespaceContext ctx = new SimpleNamespaceContext(map);
XMLUnit.setXpathNamespaceContext(ctx);
}
use of org.custommonkey.xmlunit.SimpleNamespaceContext in project ddf by codice.
the class TestAtomTransformer method setupTestClass.
@BeforeClass
public static void setupTestClass() {
// makes xpaths easier to write when prefixes are declared beforehand.
HashMap map = new HashMap();
map.put("gml", "http://www.opengis.net/gml");
map.put("georss", "http://www.georss.org/georss");
map.put("", "http://www.w3.org/2005/Atom");
map.put("atom", "http://www.w3.org/2005/Atom");
map.put("relevance", "http://a9.com/-/opensearch/extensions/relevance/1.0/");
map.put("os", "http://a9.com/-/spec/opensearch/1.1/");
map.put("fs", "http://a9.com/-/opensearch/extensions/federation/1.0/");
NamespaceContext ctx = new SimpleNamespaceContext(map);
XMLUnit.setXpathNamespaceContext(ctx);
}
Aggregations