add test for broken file (5.0.1-RC1 issues)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-09-19 13:05:04 +00:00
parent 53d76b369e
commit ac83ff11f4
2 changed files with 8 additions and 0 deletions

View File

@ -877,4 +877,12 @@ public final class TestBugs {
assertEquals(ShapeType.NOT_PRIMITIVE, shList.get(2).getShapeType());
}
}
@Test
void test501RC1Failure() throws Exception {
try (HSLFSlideShow ppt = open("23884_defense_FINAL_OOimport_edit.ppt")) {
List<HSLFShape> shList = ppt.getSlides().get(0).getShapes();
assertEquals(ShapeType.NOT_PRIMITIVE, shList.get(2).getShapeType());
}
}
}