From: Sergey Vladimirov Date: Thu, 7 Jul 2011 11:41:53 +0000 (+0000) Subject: Bug 46817 - Regression: Text from some table cells missing is fixed X-Git-Tag: REL_3_8_BETA4~281 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=86ab006a41fd59c4f8d5883ceef2516f1b48ca42;p=poi.git Bug 46817 - Regression: Text from some table cells missing is fixed git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143772 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java index 9e63002614..2d3a3ff012 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java @@ -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" ) ); } /**