verify(_rootMessageLogger).rawMessage("[main] MNG-1008 : Close : User jmxuser", "qpid.message.managementconsole.close");
}
public void tesNotifiedForLogOnTypeEvents()
{
JMXConnectionNotification openNotification = createMockNotification(TEST_JMX_UNIQUE_CONNECTION_ID, OPENED);
JMXConnectionNotification closeNotification = createMockNotification(TEST_JMX_UNIQUE_CONNECTION_ID, CLOSED);
JMXConnectionNotification failedNotification = createMockNotification(TEST_JMX_UNIQUE_CONNECTION_ID, FAILED);
assertTrue(_reporter.isNotificationEnabled(openNotification));
assertTrue(_reporter.isNotificationEnabled(closeNotification));
assertTrue(_reporter.isNotificationEnabled(failedNotification));
JMXConnectionNotification otherNotification = createMockNotification(TEST_JMX_UNIQUE_CONNECTION_ID, "other");
assertFalse(_reporter.isNotificationEnabled(otherNotification));
}