You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2025/04/23 15:18:17 UTC
svn commit: r1925236 - /pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFilesTest.java
Author: tilman
Date: Wed Apr 23 15:18:16 2025
New Revision: 1925236
URL: http://svn.apache.org/viewvc?rev=1925236&view=rev
Log:
PDFBOX-5993: Sonar fix
Modified:
pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFilesTest.java
Modified: pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFilesTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFilesTest.java?rev=1925236&r1=1925235&r2=1925236&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFilesTest.java (original)
+++ pdfbox/trunk/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/ExtractEmbeddedFilesTest.java Wed Apr 23 15:18:16 2025
@@ -48,8 +48,8 @@ class ExtractEmbeddedFilesTest
byte[] ba2 = Files.readAllBytes(new File(attachment2Filename).toPath());
String s1 = new String(ba1, StandardCharsets.US_ASCII);
String s2 = new String(ba2, StandardCharsets.US_ASCII);
- assertEquals(s1, "This is the contents of the first embedded file");
- assertEquals(s2, "This is the contents of the second embedded file");
+ assertEquals("This is the contents of the first embedded file", s1);
+ assertEquals("This is the contents of the second embedded file", s2);
Files.delete(Paths.get(collectionFilename));
Files.delete(Paths.get(attachment1Filename));
Files.delete(Paths.get(attachment2Filename));