use of com.microsoft.schemas.vml.CTShape in project poi by apache.
the class TestXSSFVMLDrawing method testRemoveCommentShape.
@Test
public void testRemoveCommentShape() throws IOException, XmlException {
XSSFVMLDrawing vml = new XSSFVMLDrawing();
InputStream stream = POIDataSamples.getSpreadSheetInstance().openResourceAsStream("vmlDrawing1.vml");
try {
vml.read(stream);
} finally {
stream.close();
}
CTShape sh_a1 = vml.findCommentShape(0, 0);
assertNotNull(sh_a1);
assertTrue(vml.removeCommentShape(0, 0));
assertNull(vml.findCommentShape(0, 0));
}
Aggregations