From: Sergey Vladimirov Date: Fri, 8 Jul 2011 15:08:02 +0000 (+0000) Subject: one of problems linked to 47286 seems to be found -- some CHPX were not saved X-Git-Tag: REL_3_8_BETA4~251 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=be4954823e2632912ddedce8285cc6c77935c441;p=poi.git one of problems linked to 47286 seems to be found -- some CHPX were not saved git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144352 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 ea96a55add..9618cbacca 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java @@ -550,6 +550,9 @@ public final class TestProblems extends HWPFTestCase { assertEquals( text1.replaceAll( "\n", "" ), text2.replaceAll( "\n", "" ) ); + assertEquals( doc1.getCharacterTable().getTextRuns().size(), doc2 + .getCharacterTable().getTextRuns().size() ); + List expectedFields = doc1.getFieldsTables() .getFieldsPLCF( FieldsTables.PLCFFLDMOM ); List actualFields = doc2.getFieldsTables() @@ -558,13 +561,17 @@ public final class TestProblems extends HWPFTestCase { assertTableStructures( doc1.getRange(), doc2.getRange() ); - // no, it still not fixed, need to figure what is the difference in - // document - // fixed( "47286" ); + // FileOutputStream fileOutputStream = new FileOutputStream( + // "test.doc" ); + // doc1.write( fileOutputStream ); + // fileOutputStream.close(); + + fixed( "47286" ); } catch ( AssertionFailedError exc ) { // expected + exc.toString(); } }