use of org.apache.karaf.event.command.EventDisplayCommand in project karaf by apache.
the class EventDisplayCommandTest method testExecute.
@Test
public void testExecute() throws Exception {
IMocksControl c = createControl();
EventDisplayCommand display = new EventDisplayCommand();
display.session = c.createMock(Session.class);
expect(display.session.getConsole()).andReturn(System.out);
display.collector = new EventCollector();
display.collector.handleEvent(new Event("myTopic", new HashMap<>()));
c.replay();
display.execute();
c.verify();
}
Aggregations