diff --git a/tools/src/test/java/org/apache/pdfbox/tools/TestExtractText.java b/tools/src/test/java/org/apache/pdfbox/tools/TestExtractText.java index 1a095710b31..9d8a82d6987 100644 --- a/tools/src/test/java/org/apache/pdfbox/tools/TestExtractText.java +++ b/tools/src/test/java/org/apache/pdfbox/tools/TestExtractText.java @@ -271,8 +271,8 @@ void testRotationMagic(@TempDir Path tempDir) throws Exception "-o", path.toString() }); String result = new String(Files.readAllBytes(path), "UTF-8"); - assertTrue(result.contains("Horizontal Text"), result); - assertTrue(result.contains("Vertical Text"), result); + assertTrue(result.contains("Horizontal Text")); + assertTrue(result.contains("Vertical Text")); } }