@Test public void testLoadFileSuccessFul() { prepareLoadFileSuccessful(); verify(view, times(1)).showLoading(); verify(view, times(1)).hideBusyIndicator(); assertEquals(content, editor.getContent()); verify(mainPanelView, times(1)).loadDriverOptions(eq(options), eq(true)); verify(mainPanelView, times(1)).setName(content.getDef().getName()); verify(mainPanelView, times(1)).setConnectionURL(content.getDef().getConnectionURL()); verify(mainPanelView, times(1)).setUser(content.getDef().getUser()); verify(mainPanelView, times(1)).setPassword(content.getDef().getPassword()); verify(mainPanelView, times(2)).setDriver(content.getDef().getDriverUuid()); }
protected DataSourceDefEditorContent getContent() { return editorContent; }
DataSourceDefEditor extends BaseEditor<DataSourceDefEditorContent, Metadata> implements DataSourceDefEditorView.Presenter { protected DataSourceDefEditorContent getContent() { return editorContent; } }
DataSourceDefEditor extends BaseEditor<DataSourceDefEditorContent, Metadata> implements DataSourceDefEditorView.Presenter { protected DataSourceDefEditorContent getContent() { return editorContent; } @Inject  DataSourceDefEditor(final DataSourceDefEditorView view,
                               final DataSourceDefMainPanel mainPanel,
                               final DataSourceDefEditorHelper editorHelper,
                               final DatabaseStructureExplorer dbStructureExplorer,
                               final PopupsUtil popupsUtil,
                               final PlaceManager placeManager,
                               final DataSourceDefType type,
                               final SavePopUpPresenter savePopUpPresenter,
                               final DeletePopUpPresenter deletePopUpPresenter,
                               final Caller<DataSourceDefEditorService> editorService,
                               final Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient); }
DataSourceDefEditor extends BaseEditor<DataSourceDefEditorContent, Metadata> implements DataSourceDefEditorView.Presenter { protected DataSourceDefEditorContent getContent() { return editorContent; } @Inject  DataSourceDefEditor(final DataSourceDefEditorView view,
                               final DataSourceDefMainPanel mainPanel,
                               final DataSourceDefEditorHelper editorHelper,
                               final DatabaseStructureExplorer dbStructureExplorer,
                               final PopupsUtil popupsUtil,
                               final PlaceManager placeManager,
                               final DataSourceDefType type,
                               final SavePopUpPresenter savePopUpPresenter,
                               final DeletePopUpPresenter deletePopUpPresenter,
                               final Caller<DataSourceDefEditorService> editorService,
                               final Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartView IsWidget getWidget(); @OnMayClose boolean onMayClose(); @Override boolean mayClose(Integer currentHash); @Override void onSave(); @Override void onCancel(); @Override void onDelete(); Command getLoadDriversSuccessCommand(); ParameterizedCommand<Throwable> getLoadDriversErrorCommand(); @Override void onShowContent(); }
DataSourceDefEditor extends BaseEditor<DataSourceDefEditorContent, Metadata> implements DataSourceDefEditorView.Presenter { protected DataSourceDefEditorContent getContent() { return editorContent; } @Inject  DataSourceDefEditor(final DataSourceDefEditorView view,
                               final DataSourceDefMainPanel mainPanel,
                               final DataSourceDefEditorHelper editorHelper,
                               final DatabaseStructureExplorer dbStructureExplorer,
                               final PopupsUtil popupsUtil,
                               final PlaceManager placeManager,
                               final DataSourceDefType type,
                               final SavePopUpPresenter savePopUpPresenter,
                               final DeletePopUpPresenter deletePopUpPresenter,
                               final Caller<DataSourceDefEditorService> editorService,
                               final Caller<DataSourceRuntimeManagerClientService> dataSourceManagerClient); @OnStartup void onStartup(final ObservablePath path,
                          final PlaceRequest place); @WorkbenchPartTitleDecoration IsWidget getTitle(); @WorkbenchPartTitle String getTitleText(); @WorkbenchPartView IsWidget getWidget(); @OnMayClose boolean onMayClose(); @Override boolean mayClose(Integer currentHash); @Override void onSave(); @Override void onCancel(); @Override void onDelete(); Command getLoadDriversSuccessCommand(); ParameterizedCommand<Throwable> getLoadDriversErrorCommand(); @Override void onShowContent();  }