/**
* Test styles for type=TextHeaderAtom.BODY_TYPE
*/
private void checkBodyType(TxMasterStyleAtom txmaster){
TextPropCollection props;
TextProp prop;
TextPropCollection[] prstyles = txmaster.getParagraphStyles();
TextPropCollection[] chstyles = txmaster.getCharacterStyles();
assertEquals("TxMasterStyleAtom for TextHeaderAtom.BODY_TYPE " +
"must contain styles for 5 indentation levels", 5, prstyles.length);
assertEquals("TxMasterStyleAtom for TextHeaderAtom.BODY_TYPE " +
"must contain styles for 5 indentation levels", 5, chstyles.length);
//paragraph styles
props = prstyles[0];
prop = props.findByName("alignment");
assertEquals(0, prop.getValue());
for (int i = 0; i < prstyles.length; i++) {
assertNotNull("text.offset is null for indentation level " + i, prstyles[i].findByName("text.offset"));
assertNotNull("bullet.offset is null for indentation level " + i, prstyles[i].findByName("bullet.offset"));
}
//character styles
props = chstyles[0];
prop = props.findByName("font.color");
assertEquals(0x1000000, prop.getValue());
prop = props.findByName("font.index");
assertEquals(0, prop.getValue());
prop = props.findByName("font.size");
assertEquals(36, prop.getValue());
}