@Test public void testGetContentSupplier() { final String content = "content"; doReturn(content).when(view).getContent(); final Supplier<String> contentSupplier = presenter.getContentSupplier(); assertEquals(content, contentSupplier.get()); }
@Override protected Supplier<String> getContentSupplier() { return view::getContent; }
KieTextEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return view::getContent; } }
KieTextEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return view::getContent; } @Inject  KieTextEditorPresenter(final KieTextEditorView baseView); }
KieTextEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return view::getContent; } @Inject  KieTextEditorPresenter(final KieTextEditorView baseView); @PostConstruct void init(); void onStartup(final ObservablePath path,
                          final PlaceRequest place); void onAfterViewLoaded(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); AceEditorMode getAceEditorMode(); }
KieTextEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return view::getContent; } @Inject  KieTextEditorPresenter(final KieTextEditorView baseView); @PostConstruct void init(); void onStartup(final ObservablePath path,
                          final PlaceRequest place); void onAfterViewLoaded(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); AceEditorMode getAceEditorMode();  }