GuidedRuleEditorPresenter extends KieEditor<RuleModel> { @Override protected Caller<? extends SupportsSaveAndRename<RuleModel, Metadata>> getSaveAndRenameServiceCaller() { return getService(); } @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; }
@Test public void testGetSaveAndRenameServiceCaller() throws Exception { final Caller<? extends SupportsSaveAndRename<RuleModel, Metadata>> serviceCaller = presenter.getSaveAndRenameServiceCaller(); assertEquals(this.serviceCaller, serviceCaller); }