]> source.dussan.org Git - poi.git/commitdiff
Bug 46817 - Regression: Text from some table cells missing is fixed
authorSergey Vladimirov <sergey@apache.org>
Thu, 7 Jul 2011 11:41:53 +0000 (11:41 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 7 Jul 2011 11:41:53 +0000 (11:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143772 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java

index 9e6300261455d1706a4dfedb303bebec542f447e..2d3a3ff012100bbc8a7b6d29eac33d6047b51245 100644 (file)
@@ -474,21 +474,18 @@ public final class TestProblems extends HWPFTestCase {
     }
 
     /**
-     * [FAILING] Bug 46817 - Text from tables is not extracted
+     * [RESOLVED FIXED] Bug 46817 - Regression: Text from some table cells
+     * missing
      */
-    public void test46817() {
-        HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug46817.doc");
-        WordExtractor extractor = new WordExtractor(doc);
+    public void test46817()
+    {
+        HWPFDocument doc = HWPFTestDataSamples.openSampleFile( "Bug46817.doc" );
+        WordExtractor extractor = new WordExtractor( doc );
         String text = extractor.getText().trim();
-        try {
-            assertTrue(text.contains("Nazwa wykonawcy"));
-            assertTrue(text.contains("kujawsko-pomorskie"));
-            assertTrue(text.contains("ekomel@ekomel.com.pl"));
 
-            fixed("46817");
-        } catch (AssertionFailedError e) {
-            // expected exception
-        }
+        assertTrue( text.contains( "Nazwa wykonawcy" ) );
+        assertTrue( text.contains( "kujawsko-pomorskie" ) );
+        assertTrue( text.contains( "ekomel@ekomel.com.pl" ) );
     }
 
     /**