@Test public void keywordSourceMessageEventIsHandled() throws Exception { final RobotDryRunKeywordEventListener listener = new RobotDryRunKeywordEventListener(kwSourceCollector, libNameHandler); final MessageEvent event = new MessageEvent("kw_message", LogLevel.NONE, null); listener.handleMessage(event); verify(kwSourceCollector).collectFromMessageEvent(event); verifyNoMoreInteractions(kwSourceCollector); verifyNoInteractions(libNameHandler); }
@Override public void handleMessage(final MessageEvent event) { if (event.getLevel() == LogLevel.NONE) { dryRunKeywordSourceCollector.collectFromMessageEvent(event); } }
RobotDryRunKeywordEventListener extends RobotDefaultAgentEventListener { @Override public void handleMessage(final MessageEvent event) { if (event.getLevel() == LogLevel.NONE) { dryRunKeywordSourceCollector.collectFromMessageEvent(event); } } }
RobotDryRunKeywordEventListener extends RobotDefaultAgentEventListener { @Override public void handleMessage(final MessageEvent event) { if (event.getLevel() == LogLevel.NONE) { dryRunKeywordSourceCollector.collectFromMessageEvent(event); } } RobotDryRunKeywordEventListener(final RobotDryRunKeywordSourceCollector dryRunKeywordSourceCollector,
            final Consumer<String> libNameHandler); }
RobotDryRunKeywordEventListener extends RobotDefaultAgentEventListener { @Override public void handleMessage(final MessageEvent event) { if (event.getLevel() == LogLevel.NONE) { dryRunKeywordSourceCollector.collectFromMessageEvent(event); } } RobotDryRunKeywordEventListener(final RobotDryRunKeywordSourceCollector dryRunKeywordSourceCollector,
            final Consumer<String> libNameHandler); @Override void handleLibraryImport(final LibraryImportEvent event); @Override void handleMessage(final MessageEvent event); }
RobotDryRunKeywordEventListener extends RobotDefaultAgentEventListener { @Override public void handleMessage(final MessageEvent event) { if (event.getLevel() == LogLevel.NONE) { dryRunKeywordSourceCollector.collectFromMessageEvent(event); } } RobotDryRunKeywordEventListener(final RobotDryRunKeywordSourceCollector dryRunKeywordSourceCollector,
            final Consumer<String> libNameHandler); @Override void handleLibraryImport(final LibraryImportEvent event); @Override void handleMessage(final MessageEvent event);  }