DRLEditorPresenter extends KieEditor<String> { @Override protected Caller<? extends SupportsSaveAndRename<String, Metadata>> getSaveAndRenameServiceCaller() { return drlTextEditorService; } @Inject  DRLEditorPresenter(final DRLEditorView view); @PostConstruct void init(); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); void loadClassFields(final String fullyQualifiedClassName,
                                final Callback<List<String>> callback); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @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<String, Metadata>> serviceCaller = drlEditor.getSaveAndRenameServiceCaller(); assertEquals(drlTextEditorService, serviceCaller); }