Esempio n. 1
0
  @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);
  }
Esempio n. 2
0
  @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);
  }