@Test(expected = RowNotSelectedException.class) public void verifyIfAnyFundingIsSelectedBeforePaymentOrderRemoval() { final String CONFIRMATION_DIALOG_OUTCOME = "RollbackPaymentProcessing"; when(cache.getFunding()).thenReturn(null); controller.openUndoPaymentsProcessingConfirmationDialog(CONFIRMATION_DIALOG_OUTCOME); }
@Test public void openUndoPaymentsProcessingConfirmationDialog() { final String CONFIRMATION_DIALOG_OUTCOME = "RollbackPaymentProcessing"; when(cache.getFunding()).thenReturn(mock(Funding.class)); controller.openUndoPaymentsProcessingConfirmationDialog(CONFIRMATION_DIALOG_OUTCOME); verify(dialog).displayBeforeRemoveConfirmationDialog(CONFIRMATION_DIALOG_OUTCOME); }