@Test public void listWithAllNodesReturnedWhenPassingInARepositoryMap() throws XPathExpressionException { InputStream xmlRepositoryMap = this.getClass().getResourceAsStream("/TestRepoMap.xml"); XMLParser parser = new XMLParser(xmlRepositoryMap, new HashSet<OperatingSystem>(), new HashMap<String, String>(), false, false); NodeList nodes = parser.getAllNodesInScope(); assertThat(nodes.getLength(), is(equalTo(12))); }
public NodeList getAllNodesInScope() throws XPathExpressionException { String nodeLocator = " XPathExpression expression = xpath.compile(nodeLocator); return (NodeList) expression.evaluate(repositoryMap, XPathConstants.NODESET); }
XMLParser { public NodeList getAllNodesInScope() throws XPathExpressionException { String nodeLocator = " XPathExpression expression = xpath.compile(nodeLocator); return (NodeList) expression.evaluate(repositoryMap, XPathConstants.NODESET); } }
XMLParser { public NodeList getAllNodesInScope() throws XPathExpressionException { String nodeLocator = " XPathExpression expression = xpath.compile(nodeLocator); return (NodeList) expression.evaluate(repositoryMap, XPathConstants.NODESET); } XMLParser(InputStream repositoryMap, Set<OperatingSystem> operatingSystems, Map<String, String> driverVersions, boolean thirtyTwoBit, boolean sixtyFourBit); }
XMLParser { public NodeList getAllNodesInScope() throws XPathExpressionException { String nodeLocator = " XPathExpression expression = xpath.compile(nodeLocator); return (NodeList) expression.evaluate(repositoryMap, XPathConstants.NODESET); } XMLParser(InputStream repositoryMap, Set<OperatingSystem> operatingSystems, Map<String, String> driverVersions, boolean thirtyTwoBit, boolean sixtyFourBit); NodeList getAllNodesInScope(); }
XMLParser { public NodeList getAllNodesInScope() throws XPathExpressionException { String nodeLocator = " XPathExpression expression = xpath.compile(nodeLocator); return (NodeList) expression.evaluate(repositoryMap, XPathConstants.NODESET); } XMLParser(InputStream repositoryMap, Set<OperatingSystem> operatingSystems, Map<String, String> driverVersions, boolean thirtyTwoBit, boolean sixtyFourBit); NodeList getAllNodesInScope();  }