MCPcopy Index your code
hub / github.com/Juniper/netconf-java / testFindValue

Method testFindValue

src/test/java/net/juniper/netconf/XMLTest.java:23–30  ·  view source on GitHub ↗
(String sampleFileName, List<String> findValueList, String expectedValue)

Source from the content-addressed store, hash-verified

21 private final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance() ;
22
23 private void testFindValue(String sampleFileName, List<String> findValueList, String expectedValue)
24 throws Exception {
25 DocumentBuilder builder = factory.newDocumentBuilder();
26 File sampleRPCFile = getSampleFile(sampleFileName);
27 XML testXml = new XML(builder.parse(sampleRPCFile).getDocumentElement());
28
29 assertThat(testXml.findValue(findValueList)).isEqualTo(expectedValue);
30 }
31
32 @Test
33 public void GIVEN_sampleXML_WHEN_findValueOfSample_THEN_returnValue() throws Exception {

Calls 2

findValueMethod · 0.95
getSampleFileMethod · 0.80

Tested by

no test coverage detected