@Test(expected = RowNotSelectedException.class) public void aFundingSouldBeSelectedInOrderToRemoveItsElectronicDocuments() { final String CONFIRNATION_DIALOG_OUTCOME = "RollbackPaymentOrderProcessing"; when(cache.getFunding()).thenReturn(null); controller.openDisbandDownstreamDocumentsDialog(CONFIRNATION_DIALOG_OUTCOME); }
@Test public void openUndoPaymentOrdersProcessingConfirmationDialog() { final String CONFIRNATION_DIALOG_OUTCOME = "RollbackPaymentOrderProcessing"; when(cache.getFunding()).thenReturn(mock(Funding.class)); controller.openDisbandDownstreamDocumentsDialog(CONFIRNATION_DIALOG_OUTCOME); verify(dialog).displayBeforeRemoveConfirmationDialog(CONFIRNATION_DIALOG_OUTCOME); }