@Test(expected = RowNotSelectedException.class) public void throwRowNotSelectedExceptionWhenAFundingIsNotSelected() { final String GENERATE_PAYMENT_ORDERS_DIALOG_OUTCOME = "GeneratePaymentOrders"; when(cache.getFunding()).thenReturn(null); controller.openProcessPaymentsConfirmationDialog(GENERATE_PAYMENT_ORDERS_DIALOG_OUTCOME); }
@Test public void openProcessPaymentsConfirmationDialog() { final String GENERATE_PAYMENT_ORDERS_DIALOG_OUTCOME = "GeneratePaymentOrders"; when(cache.getFunding()).thenReturn(mock(Funding.class)); controller.openProcessPaymentsConfirmationDialog(GENERATE_PAYMENT_ORDERS_DIALOG_OUTCOME); verify(dialog).displayProgressPopup(GENERATE_PAYMENT_ORDERS_DIALOG_OUTCOME); }