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