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

pjfanning pushed a commit to branch 6.0.x
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/6.0.x by this push:
     new c8a2d194f6 TestSheetText: run two tests that were missing @Test (#1501)
c8a2d194f6 is described below

commit c8a2d194f68e573a1c316e8e6665aac65302564c
Author: Sharang Gupta <[email protected]>
AuthorDate: Wed Oct 28 21:26:05 2026 +0000

    TestSheetText: run two tests that were missing @Test (#1501)
    
    testSheetTwo and testWithShortTextPropData lost their run when the class 
stopped extending TestCase in 16ac6b107e. That commit switched the expected 
paragraph separators of the other tests from \n to \r; do the same for 
testWithShortTextPropData.
---
 .../org/apache/poi/hslf/usermodel/TestSheetText.java     | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git 
a/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestSheetText.java 
b/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestSheetText.java
index b6f93ec228..2c2669d3cf 100644
--- 
a/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestSheetText.java
+++ 
b/poi-scratchpad/src/test/java/org/apache/poi/hslf/usermodel/TestSheetText.java
@@ -56,6 +56,7 @@ public final class TestSheetText {
         }
     }
 
+    @Test
     void testSheetTwo() {
         HSLFSheet slideTwo = ss.getSlides().get(1);
         String[] expectText = new String[] {"This is the title on page 
2","This is page two\rIt has several blocks of text\rNone of them have 
formatting"};
@@ -71,6 +72,7 @@ public final class TestSheetText {
      *  TextProps don't have enough data.
      * (Make sure we don't screw up / throw an exception etc)
      */
+    @Test
     void testWithShortTextPropData() throws IOException {
         HSLFSlideShow sss = 
HSLFTestDataSamples.getSlideShow("iisd_report.ppt");
 
@@ -81,13 +83,13 @@ public final class TestSheetText {
         // Check text on first slide
         HSLFSlide s = sss.getSlides().get(0);
         String exp =
-            "Realizing the Development Dividend:\n" +
-            "Community Capacity Building and CDM.\n" +
-            "Can they co-exist?\n\n" +
-            "Gay Harley\n" +
-            "Clean Development Alliance\n" +
-            "COP 11 \u2013 MOP 1\n" + // special long hyphen
-            "December 5, 2005\n";
+            "Realizing the Development Dividend:\r" +
+            "Community Capacity Building and CDM.\r" +
+            "Can they co-exist?\r\r" +
+            "Gay Harley\r" +
+            "Clean Development Alliance\r" +
+            "COP 11 \u2013 MOP 1\r" + // special long hyphen
+            "December 5, 2005\r";
 
         assertEquals(1, s.getTextParagraphs().size());
         assertEquals(exp, 
HSLFTextParagraph.getRawText(s.getTextParagraphs().get(0)));


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

Reply via email to