public void testPerformConfig() throws Throwable {
this.setUserOnSession("admin");
this.initAction("/do/jpcontentnotifier/NotifierConfig", "config");
String result = this.executeAction();
assertEquals(Action.SUCCESS, result);
NotifierConfigAction action = (NotifierConfigAction) this.getAction();
assertTrue(action.isActive());
assertTrue(action.isOnlyOwner());
assertEquals(24, action.getHoursDelay());
assertEquals(3, action.getDay());
assertEquals(3, action.getMonth()); // Mesi da 0 a 11
assertEquals(2009, action.getYear());
assertEquals(18, action.getHour());
assertEquals(25, action.getMinute());
assertEquals("CODE1", action.getSenderCode());
assertEquals("email", action.getMailAttrName());
assertTrue(action.isHtml());
assertEquals("Oggetto della mail di notifica", action.getSubject());
assertEquals("Inizio Mail (testata)<br/>", action.getHeader());
assertEquals("<br />Contenuto tipo {type} - {descr} <br /> Data Operazione {date} {time} <br /> {link} <br />", action.getTemplateInsert());
assertEquals("<br />Aggiornamento Contenuto tipo {type} - {descr} <br /> Data Operazione {date} {time} <br /> {link} <br />", action.getTemplateUpdate());
assertEquals("<br />Rimozione Contenuto tipo {type} - {descr} <br /> Data Operazione {date} {time} <br />", action.getTemplateRemove());
assertTrue(action.isNotifyRemove());
assertEquals("<br />Fine Mail (footer)", action.getFooter());
}