use of org.apache.poi.hpbf.model.qcbits.QCPLCBit.Type12 in project poi by apache.
the class TestQuillContents method testNoHyperlinks.
@Test
public void testNoHyperlinks() throws IOException {
HPBFDocument doc = new HPBFDocument(_samples.openResourceAsStream("SampleNewsletter.pub"));
QuillContents qc = doc.getQuillContents();
assertEquals(20, qc.getBits().length);
Type12 plc18 = (Type12) qc.getBits()[18];
assertEquals(1, plc18.getNumberOfPLCs());
assertEquals(0, plc18.getNumberOfHyperlinks());
assertEquals(0, plc18.getTextStartAt(0));
assertEquals(601, plc18.getAllTextEndAt());
doc.close();
}
Aggregations