예제 #1
0
 /**
  * Test method for {@link
  * org.jenkinsci.plugins.neoload_integration.supporting.XMLUtilities#findByExpression(java.lang.String,
  * org.w3c.dom.Node)}.
  *
  * @throws XPathExpressionException
  * @throws IOException
  * @throws SAXException
  * @throws ParserConfigurationException
  */
 @Test
 public void testFindByExpression() throws XPathExpressionException {
   assertTrue(XMLUtilities.findByExpression("/bookstore/book/title", d).size() == 4);
   assertTrue(
       "Everyday Italian"
           .equals(
               XMLUtilities.findByExpression("/bookstore/book[1]/title", d)
                   .get(0)
                   .getTextContent()));
 }
예제 #2
0
 /**
  * Test method for {@link
  * org.jenkinsci.plugins.neoload_integration.supporting.XMLUtilities#toList(org.w3c.dom.NodeList)}.
  *
  * @throws XPathExpressionException
  */
 @Test
 public void testToList() throws XPathExpressionException {
   final List<Node> list = XMLUtilities.findByExpression("/bookstore/book/title", d);
   assertTrue(list.size() > 0);
 }