use of org.pentaho.di.ui.trans.step.BaseStepDialog.EditConnectionListener in project pentaho-kettle by pentaho.
the class EditConnectionListenerTest method init.
@Before
public void init() {
dialog = mock(BaseStepDialog.class);
when(dialog.showDbDialogUnlessCancelledOrValid(anyDbMeta(), anyDbMeta())).thenAnswer(new PropsSettingAnswer(TEST_NAME, TEST_HOST));
dialog.transMeta = spy(new TransMeta());
CCombo combo = mock(CCombo.class);
when(combo.getText()).thenReturn(TEST_NAME);
editConnectionListener = spy(dialog.new EditConnectionListener(combo));
doNothing().when(editConnectionListener).showErrorDialog(any(Exception.class));
}
Aggregations