@Test public void hasMuleAsRootElementWithNoRoot() { when(documentMock.getDocumentElement()).thenReturn(null); assertThat("Method should have returned false", !resolver.hasMuleAsRootElement(documentMock)); }
protected boolean hasMuleAsRootElement(Path path) { org.w3c.dom.Document doc; try { doc = generateDocument(path); } catch (IOException | ParserConfigurationException | SAXException e) { throw new RuntimeException(e); } return hasMuleAsRootElement(doc); }
MuleArtifactContentResolver { protected boolean hasMuleAsRootElement(Path path) { org.w3c.dom.Document doc; try { doc = generateDocument(path); } catch (IOException | ParserConfigurationException | SAXException e) { throw new RuntimeException(e); } return hasMuleAsRootElement(doc); } }
MuleArtifactContentResolver { protected boolean hasMuleAsRootElement(Path path) { org.w3c.dom.Document doc; try { doc = generateDocument(path); } catch (IOException | ParserConfigurationException | SAXException e) { throw new RuntimeException(e); } return hasMuleAsRootElement(doc); } MuleArtifactContentResolver(ProjectStructure projectStructure, Pom pom, List<BundleDependency> bundleDependencies); }
MuleArtifactContentResolver { protected boolean hasMuleAsRootElement(Path path) { org.w3c.dom.Document doc; try { doc = generateDocument(path); } catch (IOException | ParserConfigurationException | SAXException e) { throw new RuntimeException(e); } return hasMuleAsRootElement(doc); } MuleArtifactContentResolver(ProjectStructure projectStructure, Pom pom, List<BundleDependency> bundleDependencies); ProjectStructure getProjectStructure(); List<String> getExportedPackages(); List<String> getExportedResources(); List<String> getTestExportedResources(); List<String> getConfigs(); List<String> getTestConfigs(); static String escapeSlashes(String p); List<BundleDependency> getBundleDependencies(); Pom getPom(); }
MuleArtifactContentResolver { protected boolean hasMuleAsRootElement(Path path) { org.w3c.dom.Document doc; try { doc = generateDocument(path); } catch (IOException | ParserConfigurationException | SAXException e) { throw new RuntimeException(e); } return hasMuleAsRootElement(doc); } MuleArtifactContentResolver(ProjectStructure projectStructure, Pom pom, List<BundleDependency> bundleDependencies); ProjectStructure getProjectStructure(); List<String> getExportedPackages(); List<String> getExportedResources(); List<String> getTestExportedResources(); List<String> getConfigs(); List<String> getTestConfigs(); static String escapeSlashes(String p); List<BundleDependency> getBundleDependencies(); Pom getPom(); static final String CLASS_PATH_SEPARATOR; }