mirror of https://github.com/apache/poi.git
add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eb259606e3
commit
d60c134d57
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue