use of org.opennms.netmgt.config.NotificationManager in project opennms by OpenNMS.
the class NotificationsConfigTest method testFormattedNotificationsXml.
@Test
public void testFormattedNotificationsXml() throws Exception {
MockUtil.println("################# Running Test ################");
MockLogAppender.setupLogging();
MockNotifdConfigManager notifdConfig = new MockNotifdConfigManager(ConfigurationTestUtils.getConfigForResourceWithReplacements(this, "notifd-configuration.xml"));
NotificationManager manager = new MockNotificationManager(notifdConfig, null, ConfigurationTestUtils.getConfigForResourceWithReplacements(this, "notifications-config-test.xml"));
Notification n = manager.getNotification("crazyTestNotification");
assertTrue(n.getTextMessage().contains("\n"));
}
Aggregations