Improve JAXP implementation compatibility 49/79549/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 15 Jan 2019 16:50:03 +0000 (17:50 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Jan 2019 02:38:57 +0000 (03:38 +0100)
commit51d445102dce25fe7ecd054f801a4b18ab9aab9f
treec3d896ceb4ec18b207a5742ff144df8bb076dec8
parentbc7fdd68b3c7329d20e9bb29e66e230536d260c4
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>
(cherry picked from commit fea3a6991aa892b676ab550393e944c3e6215ef3)
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