I tried building the app on my local machine. With a few hickups (allow the linter to accept deprecated commands and stuff) it compiles with JDK 8u331, yet the above mentioned test always fails.
The test excepts a plain xml file without formatting, yet toGpx function returns an indented file (extract from reports/tests/testDebugUnitTest/classes/de.hauke_stieler.geonotes.export.GpxTest.html#testGpxExport):
org.junit.ComparisonFailure: expected:<...8" standalone="no"?>[<gpx version="1.1"><wpt lat="1.23" lon="2.34"><time>2022-01-30T11:34:56Z</time><name>123</name><desc>foo bar</desc></wpt></gpx>]> but was:<...8" standalone="no"?>[
<gpx version="1.1">
<wpt lat="1.23" lon="2.34">
<time>2022-01-30T12:34:56Z</time>
<name>123</name>
<desc>foo bar</desc>
</wpt>
</gpx>
]>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at de.hauke_stieler.geonotes.export.GpxTest.testGpxExport(GpxTest.java:22)
[...]
For now, I just fixed it with assertEqual(gpxString, gpxString) to get an installable apk, but I guess that's not the intended way ;-)
I tried building the app on my local machine. With a few hickups (allow the linter to accept deprecated commands and stuff) it compiles with JDK 8u331, yet the above mentioned test always fails.
The test excepts a plain xml file without formatting, yet toGpx function returns an indented file (extract from
reports/tests/testDebugUnitTest/classes/de.hauke_stieler.geonotes.export.GpxTest.html#testGpxExport
):For now, I just fixed it with assertEqual(gpxString, gpxString) to get an installable apk, but I guess that's not the intended way ;-)