git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-02-22 00:36:08 +00:00
parent eb259606e3
commit d60c134d57
1 changed files with 15 additions and 0 deletions

View File

@ -296,6 +296,21 @@ public final class TestPOIXMLDocument {
}
}
@Test
void testLoadPptx() throws IOException {
byte[] data;
try (InputStream is = POIDataSamples.getSlideShowInstance().openResourceAsStream("table_test.pptx")) {
data = IOUtils.toByteArray(is);
}
assertDoesNotThrow(() -> {
try (XMLSlideShow ppt = new XMLSlideShow(new ByteArrayInputStream(data))) {
assertNotNull(ppt.getSlides().get(0).getShapes());
}}
);
}
@Disabled("needs investigation")
@Test
void testOSGIClassLoading() throws IOException {