Skip to content

Commit a22b90a

Browse files
committed
Make GPXTests more robust.
Signed-off-by: Franz Wilhelmstötter <[email protected]>
1 parent 9184934 commit a22b90a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jpx/src/test/java/io/jenetics/jpx/GPXTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public void readWriteRandomNonIndentedGPX() throws IOException {
477477
final GPX gpx = nextGPX(random);
478478

479479
final ByteArrayOutputStream bout = new ByteArrayOutputStream();
480-
GPX.Writer.of(Indent.NULL, 20).write(gpx, bout);
480+
GPX.Writer.of(Indent.NULL, 25).write(gpx, bout);
481481

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

492492
@Test(dataProvider = "readWriteGPX")

0 commit comments

Comments
 (0)