@Test public void testGetContentSupplier() throws Exception { final String content = "content"; doReturn(content).when(view).getContent(); final Supplier<String> contentSupplier = editor.getContentSupplier(); assertEquals(content, contentSupplier.get()); }
@Override protected Supplier<String> getContentSupplier() { return () -> view.getContent(); }
WorkItemsEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return () -> view.getContent(); } }
WorkItemsEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return () -> view.getContent(); } @Inject  WorkItemsEditorPresenter(final WorkItemsEditorView baseView); }
WorkItemsEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return () -> view.getContent(); } @Inject  WorkItemsEditorPresenter(final WorkItemsEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); }
WorkItemsEditorPresenter extends KieEditor<String> { @Override protected Supplier<String> getContentSupplier() { return () -> view.getContent(); } @Inject  WorkItemsEditorPresenter(final WorkItemsEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); static final String EDITOR_ID; }