@Test public void loadContent() { presenter.loadContent(); verify(view, times(1)).showLoading(); verify(globalsEditorService, times(1)).loadContent(any(Path.class)); when(versionRecordManager.getCurrentPath()).thenReturn(mock(ObservablePath.class)); GlobalsEditorContent globalsEditorContent = mock(GlobalsEditorContent.class); Overview overview = mock(Overview.class); when(overview.getMetadata()).thenReturn(mock(Metadata.class)); when(globalsEditorContent.getOverview()).thenReturn(overview); GlobalsModel globalsModel = mock(GlobalsModel.class); when(globalsEditorContent.getModel()).thenReturn(globalsModel); presenter.getModelSuccessCallback().callback(globalsEditorContent); verify(view, times(1)).setContent(anyListOf(Global.class), anyListOf(String.class), anyBoolean(), anyBoolean()); verify(view, times(1)).hideBusyIndicator(); }
protected void loadContent() { view.showLoading(); globalsEditorService.call(getModelSuccessCallback(), getNoSuchFileExceptionErrorCallback()).loadContent(versionRecordManager.getCurrentPath()); }
GlobalsEditorPresenter extends KieEditor<GlobalsModel> { protected void loadContent() { view.showLoading(); globalsEditorService.call(getModelSuccessCallback(), getNoSuchFileExceptionErrorCallback()).loadContent(versionRecordManager.getCurrentPath()); } }
GlobalsEditorPresenter extends KieEditor<GlobalsModel> { protected void loadContent() { view.showLoading(); globalsEditorService.call(getModelSuccessCallback(), getNoSuchFileExceptionErrorCallback()).loadContent(versionRecordManager.getCurrentPath()); } GlobalsEditorPresenter(); @Inject  GlobalsEditorPresenter(final GlobalsEditorView baseView); }
GlobalsEditorPresenter extends KieEditor<GlobalsModel> { protected void loadContent() { view.showLoading(); globalsEditorService.call(getModelSuccessCallback(), getNoSuchFileExceptionErrorCallback()).loadContent(versionRecordManager.getCurrentPath()); } GlobalsEditorPresenter(); @Inject  GlobalsEditorPresenter(final GlobalsEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override void onSourceTabSelected(); @WorkbenchPartView IsWidget getWidget(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); }
GlobalsEditorPresenter extends KieEditor<GlobalsModel> { protected void loadContent() { view.showLoading(); globalsEditorService.call(getModelSuccessCallback(), getNoSuchFileExceptionErrorCallback()).loadContent(versionRecordManager.getCurrentPath()); } GlobalsEditorPresenter(); @Inject  GlobalsEditorPresenter(final GlobalsEditorView baseView); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @Override void onSourceTabSelected(); @WorkbenchPartView IsWidget getWidget(); @OnClose @Override void onClose(); @OnMayClose boolean mayClose(); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); static final String EDITOR_ID; }