diff --git a/org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestXML.java b/org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestXML.java index 93d8f81a78..b42423e6c0 100644 --- a/org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestXML.java +++ b/org.eclipse.wildwebdeveloper.tests/src/org/eclipse/wildwebdeveloper/tests/TestXML.java @@ -383,9 +383,11 @@ public void testXMLCatalogHttpsUriIncluded() throws Exception { dialog.getShell().open(); dialog.getShell().close(); - // Find system-catalog and parse it + // Find system.catalog in well known location from plugin File systemCatalog = plugin.getStateLocation().append("system-catalog.xml").toFile(); - Document systemCatalogDom = DocumentBuilderFactory.newDefaultInstance().newDocumentBuilder().parse(systemCatalog); + // Parse system-catalog to check it + Document systemCatalogDom = runWithLocalCatalogOnlyForTestXMLCatalog( + () -> DocumentBuilderFactory.newDefaultInstance().newDocumentBuilder().parse(systemCatalog)); // root element Node catalogNode = systemCatalogDom.getLastChild();