Esempio n. 1
0
  @Test(expected = RowNotSelectedException.class)
  public void aFundingSouldBeSelectedInOrderToRemoveItsElectronicDocuments() {
    final String CONFIRNATION_DIALOG_OUTCOME = "RollbackPaymentOrderProcessing";

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

    controller.openDisbandDownstreamDocumentsDialog(CONFIRNATION_DIALOG_OUTCOME);
  }
Esempio n. 2
0
  @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);
  }