@Test public void testshowError() { notifier.showError(ERROR); verify(errorNotification, times(1)).accept(ERROR); verify(messageNotification, times(0)).accept(ERROR); }
public void showError(final String message) { errorNotifier.accept(message); }
FormGenerationNotifier { public void showError(final String message) { errorNotifier.accept(message); } }
FormGenerationNotifier { public void showError(final String message) { errorNotifier.accept(message); } protected  FormGenerationNotifier(); @Inject  FormGenerationNotifier(ClientTranslationService translationService);   FormGenerationNotifier(ClientTranslationService translationService, Consumer<String> messageNotifier, Consumer<String> errorNotifier); }
FormGenerationNotifier { public void showError(final String message) { errorNotifier.accept(message); } protected  FormGenerationNotifier(); @Inject  FormGenerationNotifier(ClientTranslationService translationService);   FormGenerationNotifier(ClientTranslationService translationService, Consumer<String> messageNotifier, Consumer<String> errorNotifier); void showNotification(final String message); void showError(final String message); }
FormGenerationNotifier { public void showError(final String message) { errorNotifier.accept(message); } protected  FormGenerationNotifier(); @Inject  FormGenerationNotifier(ClientTranslationService translationService);   FormGenerationNotifier(ClientTranslationService translationService, Consumer<String> messageNotifier, Consumer<String> errorNotifier); void showNotification(final String message); void showError(final String message);  }