DataServiceRemapStepChooserDialog { public Action getAction() { return controller.getAction(); } DataServiceRemapStepChooserDialog( Shell parent, DataServiceRemapStepChooserDialogController controller ); Action getAction(); static final String XUL_DIALOG_ID; }
@Test public void testGetAction() throws KettleException { DataServiceRemapStepChooserDialogController controller = mock( DataServiceRemapStepChooserDialogController.class ); when( controller.getAction() ).thenReturn( DataServiceRemapStepChooserDialog.Action.REMAP ); DataServiceRemapStepChooserDialog dialog = new DataServiceRemapStepChooserDialog( mock( Shell.class ), controller ); Assert.assertEquals( DataServiceRemapStepChooserDialog.Action.REMAP, dialog.getAction() ); verify( controller ).getAction(); }