Improve JAXP implementation compatibility 44/79544/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 15 Jan 2019 16:50:03 +0000 (17:50 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 15 Jan 2019 17:53:16 +0000 (18:53 +0100)
commitfea3a6991aa892b676ab550393e944c3e6215ef3
tree2a000d80b2a614b1421fac01f7173c7693ad3371
parent9327f830d8fb6951df3036c22a88ed2459dcf0dc
Improve JAXP implementation compatibility

Testing with woodstox-core shows a couple of UT failures that
are really assumptions on the implementation. Address them so we
do not get failures when implementation changes (too much).

While we are at it, improve startsWith/contains string checks
by using hamcrest.

Change-Id: I4af0c9cc370e5699255725f049ee7bb9b5c171ac
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/Bug8803Test.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlStreamUtilsTest.java
yang/yang-data-codec-xml/src/test/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlToNormalizedNodesTest.java