use of org.apache.poi.xdgf.usermodel.XmlVisioDocument in project poi by apache.
the class TestXDGFVisioExtractor method setUp.
@Before
public void setUp() throws Exception {
pkg = OPCPackage.open(SAMPLES.openResourceAsStream("test_text_extraction.vsdx"));
xml = new XmlVisioDocument(pkg);
}
use of org.apache.poi.xdgf.usermodel.XmlVisioDocument in project poi by apache.
the class TestXDGFVisioExtractor method testVisioConnects.
//the point of this is to trigger the addition of
//some common visio classes -- ConnectsType
@Test
public void testVisioConnects() throws IOException {
InputStream is = SAMPLES.openResourceAsStream("60489.vsdx");
XmlVisioDocument document = new XmlVisioDocument(is);
is.close();
XDGFVisioExtractor extractor = new XDGFVisioExtractor(document);
String text = extractor.getText();
assertContains(text, "Arrears");
extractor.close();
}
Aggregations