{
throw new NullPointerException("LogSubject has not been set");
}
ServerConfiguration serverConfig = new ServerConfiguration(_config);
UnitTestMessageLogger logger = new UnitTestMessageLogger(serverConfig);
LogActor actor = new TestLogActor(logger);
actor.message(_subject, new LogMessage()
{
public String toString()
{
return "<Log Message>";
}
public String getLogHierarchy()
{
return "test.hierarchy";
}
});
return logger.getLogMessages();
}