use of com.yahoo.logserver.LogDispatcher in project vespa by vespa-engine.
the class LogDispatcherTestCase method testVerifyMessages.
@Test
public void testVerifyMessages() {
MockHandler handler = new MockHandler();
LogDispatcher dispatcher = new LogDispatcher();
dispatcher.registerLogHandler(handler);
dispatcher.handle(sample1);
dispatcher.handle(sample2);
assertTrue(sample1 == handler.messages.get(0));
assertTrue(sample2 == handler.messages.get(1));
}
Aggregations