mirror of https://github.com/apache/poi.git
Add test that shows that bug #45877 has already been fixed
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@998634 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e1adda4ed
commit
76a609d147
|
@ -254,6 +254,17 @@ public final class TestProblems extends HWPFTestCase {
|
|||
assertEquals("\n", ext.getHeaderText());
|
||||
assertEquals("", ext.getFooterText());
|
||||
}
|
||||
|
||||
/**
|
||||
* Bug #45877 - problematic PAPX with no parent set
|
||||
*/
|
||||
public void testParagraphPAPXNoParent45877() throws Exception {
|
||||
HWPFDocument doc = HWPFTestDataSamples.openSampleFile("Bug45877.doc");
|
||||
assertEquals(17, doc.getRange().numParagraphs());
|
||||
|
||||
assertEquals("First paragraph\r", doc.getRange().getParagraph(0).text());
|
||||
assertEquals("After Crashing Part\r", doc.getRange().getParagraph(13).text());
|
||||
}
|
||||
|
||||
/**
|
||||
* Bug #48245 - don't include the text from the
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue