Search in sources :

Example 1 with XMLCatalogManager

use of com.intellij.javaee.XMLCatalogManager in project intellij-community by JetBrains.

the class XMLCatalogManagerTest method testCatalogManager.

public void testCatalogManager() throws Exception {
    XMLCatalogManager manager = getManager();
    CatalogManager catalogManager = manager.getManager();
    Vector files = catalogManager.getCatalogFiles();
    assertEquals(1, files.size());
    String filePath = (String) files.get(0);
    assertTrue(filePath, filePath.endsWith("catalog.xml"));
    assertTrue(filePath, new File(new URI(filePath)).exists());
}
Also used : XMLCatalogManager(com.intellij.javaee.XMLCatalogManager) Vector(java.util.Vector) File(java.io.File) URI(java.net.URI) CatalogManager(org.apache.xml.resolver.CatalogManager) XMLCatalogManager(com.intellij.javaee.XMLCatalogManager)

Aggregations

XMLCatalogManager (com.intellij.javaee.XMLCatalogManager)1 File (java.io.File)1 URI (java.net.URI)1 Vector (java.util.Vector)1 CatalogManager (org.apache.xml.resolver.CatalogManager)1