if (_subject == null)
{
throw new NullPointerException("LogSubject has not been set");
}
UnitTestMessageLogger logger = new UnitTestMessageLogger(statusUpdatesEnabled);
EventLogger eventLogger = new EventLogger(logger);
eventLogger.message(_subject, new LogMessage()
{
public String toString()
{
return "<Log Message>";
}
public String getLogHierarchy()
{
return "test.hierarchy";
}
});
return logger.getLogMessages();
}