This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6ba4a1b050 Update TestDocumentEncryption.java
6ba4a1b050 is described below

commit 6ba4a1b05066803392b7984282ec0e24d0a45090
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Feb 20 14:52:28 2026 +0100

    Update TestDocumentEncryption.java
---
 .../org/apache/poi/hslf/record/TestDocumentEncryption.java     | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 
a/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestDocumentEncryption.java
 
b/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestDocumentEncryption.java
index 926a3e3ede..d1ec21733f 100644
--- 
a/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestDocumentEncryption.java
+++ 
b/poi-scratchpad/src/test/java/org/apache/poi/hslf/record/TestDocumentEncryption.java
@@ -17,12 +17,6 @@
 
 package org.apache.poi.hslf.record;
 
-
-import static org.junit.jupiter.api.Assertions.assertArrayEquals;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
 import java.io.InputStream;
 import java.security.MessageDigest;
 import java.util.Base64;
@@ -49,6 +43,8 @@ import org.junit.jupiter.api.Test;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.ValueSource;
 
+import static org.junit.jupiter.api.Assertions.*;
+
 /**
  * Tests that DocumentEncryption works properly.
  */
@@ -66,7 +62,7 @@ public class TestDocumentEncryption {
         try {
             try (POIFSFileSystem fs = new 
POIFSFileSystem(slTests.getFile(pptFile), true);
                  HSLFSlideShow ppt = new HSLFSlideShow(fs)) {
-                assertTrue(ppt.getSlides().size() > 0);
+                assertFalse(ppt.getSlides().isEmpty());
             }
         } finally {
             Biff8EncryptionKey.setCurrentUserPassword(null);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to