File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/test/java/org/apache/commons/jxpath/issues Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1717package org .apache .commons .jxpath .issues ;
1818
1919import java .io .StringReader ;
20+ import java .util .List ;
2021
2122import javax .xml .parsers .DocumentBuilder ;
2223import javax .xml .parsers .DocumentBuilderFactory ;
2829import org .w3c .dom .Document ;
2930import org .xml .sax .InputSource ;
3031
31- import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
32+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
33+ import static org .junit .jupiter .api .Assertions .assertTrue ;
3234
3335public class JXPath113Test extends AbstractJXPathTest
3436{
@@ -39,7 +41,9 @@ public void testIssue113() throws Exception
3941 final Document doc = JAXP .getDocument ("<xml/>" );
4042 final JXPathContext context = JXPathContext .newContext (doc );
4143
42- assertDoesNotThrow (() -> context .selectNodes ("//following-sibling::node()" ));
44+ List result = context .selectNodes ("//following-sibling::node()" );
45+ assertNotNull (result );
46+ assertTrue (result .isEmpty ());
4347 }
4448
4549 static class JAXP
You can’t perform that action at this time.
0 commit comments