@Test public void testGetContentSupplier() throws Exception { final RuleModel content = mock(RuleModel.class); doReturn(content).when(view).getContent(); final Supplier<RuleModel> contentSupplier = presenter.getContentSupplier(); assertEquals(content, contentSupplier.get()); }
@Override protected Supplier<RuleModel> getContentSupplier() { return () -> view.getContent(); }
GuidedRuleEditorPresenter extends KieEditor<RuleModel> { @Override protected Supplier<RuleModel> getContentSupplier() { return () -> view.getContent(); } }
GuidedRuleEditorPresenter extends KieEditor<RuleModel> { @Override protected Supplier<RuleModel> getContentSupplier() { return () -> view.getContent(); } @Inject  GuidedRuleEditorPresenter(final GuidedRuleEditorView view); }
GuidedRuleEditorPresenter extends KieEditor<RuleModel> { @Override protected Supplier<RuleModel> getContentSupplier() { return () -> view.getContent(); } @Inject  GuidedRuleEditorPresenter(final GuidedRuleEditorView view); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override void onSourceTabSelected(); void handleImportAddedEvent(@Observes ImportAddedEvent event); void handleImportRemovedEvent(@Observes ImportRemovedEvent event); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartView IsWidget getWidget(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); }
GuidedRuleEditorPresenter extends KieEditor<RuleModel> { @Override protected Supplier<RuleModel> getContentSupplier() { return () -> view.getContent(); } @Inject  GuidedRuleEditorPresenter(final GuidedRuleEditorView view); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override void onSourceTabSelected(); void handleImportAddedEvent(@Observes ImportAddedEvent event); void handleImportRemovedEvent(@Observes ImportRemovedEvent event); @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; }