Exemplo n.º 1
0
  @Test(expected = RowNotSelectedException.class)
  public void verifyIfAnyFundingIsSelectedBeforePaymentOrderRemoval() {
    final String CONFIRMATION_DIALOG_OUTCOME = "RollbackPaymentProcessing";

    when(cache.getFunding()).thenReturn(null);

    controller.openUndoPaymentsProcessingConfirmationDialog(CONFIRMATION_DIALOG_OUTCOME);
  }
Exemplo n.º 2
0
  @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);
  }