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

pjfanning 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 b041bdfaab Move the fixed bug 64759 test out of TestUnfixedBugs (#1421)
b041bdfaab is described below

commit b041bdfaab6e3010548caa7e2d1d9f78314e8a7b
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Oct 16 22:14:41 2026 +0100

    Move the fixed bug 64759 test out of TestUnfixedBugs (#1421)
    
    Bug 64759 was fixed in 2021 (ignore unknown relationships when cloning
    sheets), and TestXSSFCloneSheet.test64759 covers it with right-to-left.xlsx.
    Its leftover test in TestUnfixedBugs, which passes, now checks the bug's
    own 64759.xlsx in test64759.
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../src/test/java/org/apache/poi/xssf/TestXSSFCloneSheet.java     | 4 ++++
 .../test/java/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java  | 8 --------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git 
a/poi-ooxml/src/test/java/org/apache/poi/xssf/TestXSSFCloneSheet.java 
b/poi-ooxml/src/test/java/org/apache/poi/xssf/TestXSSFCloneSheet.java
index da7ae0f37a..8bf09ffb41 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/TestXSSFCloneSheet.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/TestXSSFCloneSheet.java
@@ -133,6 +133,10 @@ class TestXSSFCloneSheet  extends BaseTestCloneSheet {
             Sheet source_sh = template_wb.cloneSheet(0);
             assertNotNull(source_sh);
         }
+        // the file attached to the bug
+        try (Workbook wb = 
XSSFTestDataSamples.openSampleWorkbook("64759.xlsx")) {
+            assertNotNull(wb.cloneSheet(0));
+        }
     }
 
     @Test
diff --git 
a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java 
b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java
index 9b26f2e0aa..c17434e3c8 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestUnfixedBugs.java
@@ -384,12 +384,4 @@ public final class TestUnfixedBugs {
         }
 
     }
-
-    @Test
-    void testBug64759() throws IOException {
-        try (Workbook wb = 
XSSFTestDataSamples.openSampleWorkbook("64759.xlsx")) {
-            Sheet cloned = wb.cloneSheet(0);
-            assertNotNull(cloned);
-        }
-    }
 }


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

Reply via email to