RFR: JDK-8289509 : Improve test coverage for XPath Axes: descendant, descendant-or-self, following, following-sibling

Bill Huang bhuang at openjdk.org
Wed Oct 5 18:22:02 UTC 2022


On Wed, 5 Oct 2022 18:09:53 GMT, Bill Huang <bhuang at openjdk.org> wrote:

>> Added test cases for xpath Axis:
>> 1. descendant
>> 2. descendant-or-self
>> 3. following
>> 4. following-sibling
>
> test/jaxp/javax/xml/jaxp/unittest/xpath/XPathExpFollowingTest.java line 108:
> 
>> 106:         };
>> 107:     }
>> 108: 
> 
> It would be good to add a predicate test for following. e.g.
> `//foo:Customer/*[not(following::*)]`
> `//*[not(following::*) and not(preceding::*)]`
> `//Street[following::Street and preceding::Street]`

Also good for following-sibling.

-------------

PR: https://git.openjdk.org/jdk/pull/10557


More information about the core-libs-dev mailing list