@Test public void unsupportedLevelMessageEventsAreIgnored() throws Exception { final RobotDryRunKeywordEventListener listener = new RobotDryRunKeywordEventListener(kwSourceCollector, libNameHandler); listener.handleMessage(new MessageEvent("msg", LogLevel.TRACE, null)); listener.handleMessage(new MessageEvent("msg", LogLevel.DEBUG, null)); listener.handleMessage(new MessageEvent("msg", LogLevel.INFO, null)); listener.handleMessage(new MessageEvent("msg", LogLevel.WARN, null)); listener.handleMessage(new MessageEvent("msg", LogLevel.ERROR, null)); listener.handleMessage(new MessageEvent("msg", LogLevel.FAIL, null)); verifyNoInteractions(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);  }