/**
* Tests that Document works properly
+ * (Also tests Environment while we're at it)
*
* @author Nick Burch (nick at torchbox dot com)
*/
assertTrue(dr.getDocumentAtom() instanceof DocumentAtom);
assertNotNull(dr.getEnvironment());
- assertEquals(RecordTypes.Environment.typeID, dr.getEnvironment().getRecordType());
+ assertTrue(dr.getEnvironment() instanceof Environment);
assertNotNull(dr.getSlideListWithTexts());
assertEquals(3, dr.getSlideListWithTexts().length);
assertTrue(dr.getSlideListWithTexts()[2] instanceof SlideListWithText);
}
+ public void testEnvironment() throws Exception {
+ Document dr = getDocRecord();
+ Environment env = dr.getEnvironment();
+
+ assertEquals(1010, env.getRecordType());
+ assertNotNull(env.getFontCollection());
+ assertTrue(env.getFontCollection() instanceof FontCollection);
+ }
+
// No need to check re-writing - hslf.TestReWrite does all that for us
}