@Before public void setup() throws Exception { this.presenter = new ElasticSearchDataSetEditor(basicAttributesEditor, attributesEditor, columnsAndFilterEditor, previewTable, backendCacheAttributesEditor, clientCacheAttributesEditor, refreshEditor, clientServices, loadingBox, errorEvent, tabChangedEvent, view); when(dataSetDef.getProvider()).thenReturn(DataSetProviderType.ELASTICSEARCH); }
@Before public void setup() throws Exception { super.setup(); presenter = new ElasticSearchDataSetBasicAttributesWorkflow( clientServices, validatorProvider, beanManager, basicAttributesEditor, saveRequestEvent, testDataSetEvent, cancelRequestEvent, view ); when( dataSetDef.getProvider() ).thenReturn( DataSetProviderType.ELASTICSEARCH ); }
@Before public void setup() throws Exception { super.setup(); presenter = new ElasticSearchDataSetEditWorkflow( clientServices, validatorProvider, beanManager, saveRequestEvent, testDataSetEvent, cancelRequestEvent, view ); when( dataSetDef.getProvider() ).thenReturn( DataSetProviderType.ELASTICSEARCH ); when( elasticSearchEditor.refreshEditor() ).thenReturn( refreshEditor ); when( refreshEditor.isRefreshEnabled() ).thenReturn( true ); }