@Test public void libraryImportEventIsHandled() throws Exception { final RobotDryRunKeywordEventListener listener = new RobotDryRunKeywordEventListener(kwSourceCollector, libNameHandler); final LibraryImportEvent event = new LibraryImportEvent("String", new URI("file: new URI("file: listener.handleLibraryImport(event); verifyNoInteractions(kwSourceCollector); verify(libNameHandler).accept("String"); verifyNoMoreInteractions(libNameHandler); }
@Override public void handleLibraryImport(final LibraryImportEvent event) { libNameHandler.accept(event.getName()); }
RobotDryRunKeywordEventListener extends RobotDefaultAgentEventListener { @Override public void handleLibraryImport(final LibraryImportEvent event) { libNameHandler.accept(event.getName()); } }
RobotDryRunKeywordEventListener extends RobotDefaultAgentEventListener { @Override public void handleLibraryImport(final LibraryImportEvent event) { libNameHandler.accept(event.getName()); } RobotDryRunKeywordEventListener(final RobotDryRunKeywordSourceCollector dryRunKeywordSourceCollector,
            final Consumer<String> libNameHandler); }
RobotDryRunKeywordEventListener extends RobotDefaultAgentEventListener { @Override public void handleLibraryImport(final LibraryImportEvent event) { libNameHandler.accept(event.getName()); } 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 handleLibraryImport(final LibraryImportEvent event) { libNameHandler.accept(event.getName()); } RobotDryRunKeywordEventListener(final RobotDryRunKeywordSourceCollector dryRunKeywordSourceCollector,
            final Consumer<String> libNameHandler); @Override void handleLibraryImport(final LibraryImportEvent event); @Override void handleMessage(final MessageEvent event);  }