Skip to content

Commit

Permalink
Make GPXTests more robust.
Browse files Browse the repository at this point in the history
Signed-off-by: Franz Wilhelmstötter <[email protected]>
  • Loading branch information
jenetics committed Nov 16, 2024
1 parent 9184934 commit a22b90a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jpx/src/test/java/io/jenetics/jpx/GPXTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public void readWriteRandomNonIndentedGPX() throws IOException {
final GPX gpx = nextGPX(random);

final ByteArrayOutputStream bout = new ByteArrayOutputStream();
GPX.Writer.of(Indent.NULL, 20).write(gpx, bout);
GPX.Writer.of(Indent.NULL, 25).write(gpx, bout);

final ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());
final GPX read = GPX.Reader.DEFAULT.read(bin);
Expand All @@ -486,7 +486,7 @@ public void readWriteRandomNonIndentedGPX() throws IOException {
//if (!read.equals(gpx)) {
// System.out.println(bout);
//}
Assert.assertEquals(read, gpx);
assertThat(read).isEqualTo(gpx);
}

@Test(dataProvider = "readWriteGPX")
Expand Down

0 comments on commit a22b90a

Please sign in to comment.