Methods Summary |
---|
private org.apache.poi.hslf.record.Document | getDocRecord()
Record[] r = ss.getRecords();
for(int i=(r.length-1); i>=0; i--) {
if(r[i] instanceof Document) {
return (Document)r[i];
}
}
throw new IllegalStateException("No Document record found");
|
public void | testChildRecords()
Document dr = getDocRecord();
assertNotNull(dr.getDocumentAtom());
assertTrue(dr.getDocumentAtom() instanceof DocumentAtom);
assertNotNull(dr.getEnvironment());
assertTrue(dr.getEnvironment() instanceof Environment);
assertNotNull(dr.getSlideListWithTexts());
assertEquals(3, dr.getSlideListWithTexts().length);
assertNotNull(dr.getSlideListWithTexts()[0]);
assertTrue(dr.getSlideListWithTexts()[0] instanceof SlideListWithText);
assertNotNull(dr.getSlideListWithTexts()[1]);
assertTrue(dr.getSlideListWithTexts()[1] instanceof SlideListWithText);
assertNotNull(dr.getSlideListWithTexts()[2]);
assertTrue(dr.getSlideListWithTexts()[2] instanceof SlideListWithText);
|
public void | testEnvironment()
Document dr = getDocRecord();
Environment env = dr.getEnvironment();
assertEquals(1010, env.getRecordType());
assertNotNull(env.getFontCollection());
assertTrue(env.getFontCollection() instanceof FontCollection);
|
public void | testRecordType()
Document dr = getDocRecord();
assertEquals(1000, dr.getRecordType());
|