}
public void testEdit() throws Throwable {
String result = this.executeEdit("admin", "PER");
assertEquals(Action.SUCCESS, result);
NotifierConfigAction action = (NotifierConfigAction) this.getAction();
assertEquals("PER", action.getTypeCode());
assertTrue(action.getStore().booleanValue());
assertEquals("eMail", action.getMailAttrName());
assertTrue(action.getNotifiable().booleanValue());
assertEquals("CODE1", action.getSenderCode());
assertEquals(2, action.getRecipientsTo().size());
assertEquals(1, action.getRecipientsCc().size());
assertEquals(1, action.getRecipientsBcc().size());
assertEquals("Corpo della mail PER", action.getBodyModel());
assertEquals("Oggetto della mail PER", action.getSubjectModel());
result = this.executeEdit("admin", "COM");
assertEquals(Action.SUCCESS, result);
action = (NotifierConfigAction) this.getAction();
assertEquals("COM", action.getTypeCode());
assertFalse(action.getStore().booleanValue());
assertEquals("eMail", action.getMailAttrName());
assertTrue(action.getNotifiable().booleanValue());
assertEquals("CODE2", action.getSenderCode());
assertEquals(3, action.getRecipientsTo().size());
assertEquals(2, action.getRecipientsCc().size());
assertEquals(1, action.getRecipientsBcc().size());
assertEquals("Corpo della mail COM", action.getBodyModel());
assertEquals("Oggetto della mail COM", action.getSubjectModel());
}