From a22b90ac685734ffcf2afef20d67fb586cf694ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20Wilhelmst=C3=B6tter?= Date: Sat, 16 Nov 2024 22:48:25 +0100 Subject: [PATCH] Make GPXTests more robust. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Franz Wilhelmstötter --- jpx/src/test/java/io/jenetics/jpx/GPXTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jpx/src/test/java/io/jenetics/jpx/GPXTest.java b/jpx/src/test/java/io/jenetics/jpx/GPXTest.java index 4ffd1761..22735862 100644 --- a/jpx/src/test/java/io/jenetics/jpx/GPXTest.java +++ b/jpx/src/test/java/io/jenetics/jpx/GPXTest.java @@ -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); @@ -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")