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
This commit is contained in:
parent
ee866292d9
commit
a496e6c0fa
@ -550,6 +550,9 @@ public final class TestProblems extends HWPFTestCase {
|
|||||||
assertEquals( text1.replaceAll( "\n", "" ),
|
assertEquals( text1.replaceAll( "\n", "" ),
|
||||||
text2.replaceAll( "\n", "" ) );
|
text2.replaceAll( "\n", "" ) );
|
||||||
|
|
||||||
|
assertEquals( doc1.getCharacterTable().getTextRuns().size(), doc2
|
||||||
|
.getCharacterTable().getTextRuns().size() );
|
||||||
|
|
||||||
List<PlexOfField> expectedFields = doc1.getFieldsTables()
|
List<PlexOfField> expectedFields = doc1.getFieldsTables()
|
||||||
.getFieldsPLCF( FieldsTables.PLCFFLDMOM );
|
.getFieldsPLCF( FieldsTables.PLCFFLDMOM );
|
||||||
List<PlexOfField> actualFields = doc2.getFieldsTables()
|
List<PlexOfField> actualFields = doc2.getFieldsTables()
|
||||||
@ -558,13 +561,17 @@ public final class TestProblems extends HWPFTestCase {
|
|||||||
|
|
||||||
assertTableStructures( doc1.getRange(), doc2.getRange() );
|
assertTableStructures( doc1.getRange(), doc2.getRange() );
|
||||||
|
|
||||||
// no, it still not fixed, need to figure what is the difference in
|
// FileOutputStream fileOutputStream = new FileOutputStream(
|
||||||
// document
|
// "test.doc" );
|
||||||
// fixed( "47286" );
|
// doc1.write( fileOutputStream );
|
||||||
|
// fileOutputStream.close();
|
||||||
|
|
||||||
|
fixed( "47286" );
|
||||||
}
|
}
|
||||||
catch ( AssertionFailedError exc )
|
catch ( AssertionFailedError exc )
|
||||||
{
|
{
|
||||||
// expected
|
// expected
|
||||||
|
exc.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user