예제 #1
0
  @Test(expected = RowNotSelectedException.class)
  public void verifyAFundingIsSelectedBeforeGeneratingElectronicDocuments() {
    final String GENERATE_ELECTRONIC_DOCUMENT_DIALOG_OUTCOME = "GenerateElectronicDocument";

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

    controller.openProcessPaymentOrdersConfirmationDialog(
        GENERATE_ELECTRONIC_DOCUMENT_DIALOG_OUTCOME);
  }
예제 #2
0
  @Test
  public void openProcessPaymentOrdersConfirmationDialog() {
    final String GENERATE_ELECTRONIC_DOCUMENT_DIALOG_OUTCOME = "GenerateElectronicDocument";

    when(cache.getFunding()).thenReturn(mock(Funding.class));

    controller.openProcessPaymentOrdersConfirmationDialog(
        GENERATE_ELECTRONIC_DOCUMENT_DIALOG_OUTCOME);

    verify(dialog).displayProgressPopup(GENERATE_ELECTRONIC_DOCUMENT_DIALOG_OUTCOME);
  }