component-test/src/main/java/org/apache/fineract/cn/payroll/PayrollApiDocumentation.java [275:287]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    final Account sourceAccount = new Account();
    sourceAccount.setState(Account.State.OPEN.name());
    Mockito
            .doAnswer(invocation -> Optional.of(sourceAccount))
            .when(this.accountingAdaptor).findAccount(Matchers.eq(payrollSheet.getSourceAccountNumber()));

    Mockito
            .doAnswer(invocation -> Optional.empty())
            .when(this.accountingAdaptor).postPayrollPayment(
            Matchers.any(PayrollCollectionEntity.class),
            Matchers.refEq(firstPayrollPayment),
            Matchers.any(PayrollConfiguration.class)
    );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



component-test/src/main/java/org/apache/fineract/cn/payroll/PayrollApiDocumentation.java [336:348]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    final Account sourceAccount = new Account();
    sourceAccount.setState(Account.State.OPEN.name());
    Mockito
            .doAnswer(invocation -> Optional.of(sourceAccount))
            .when(this.accountingAdaptor).findAccount(Matchers.eq(payrollSheet.getSourceAccountNumber()));

    Mockito
            .doAnswer(invocation -> Optional.empty())
            .when(this.accountingAdaptor).postPayrollPayment(
            Matchers.any(PayrollCollectionEntity.class),
            Matchers.refEq(firstPayrollPayment),
            Matchers.any(PayrollConfiguration.class)
    );
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



