component-test/src/main/java/org/apache/fineract/cn/payroll/TestPayrollDistribution.java [134:146]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Mockito
        .doAnswer(invocation -> Optional.of(sourceAccount))
        .when(this.accountingAdaptorSpy).findAccount(Matchers.eq(payrollCollectionSheet.getSourceAccountNumber()));

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

    super.testSubject.distribute(payrollCollectionSheet);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



component-test/src/main/java/org/apache/fineract/cn/payroll/TestPayrollDistribution.java [168:180]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Mockito
        .doAnswer(invocation -> Optional.of(sourceAccount))
        .when(this.accountingAdaptorSpy).findAccount(Matchers.eq(payrollCollectionSheet.getSourceAccountNumber()));

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

    super.testSubject.distribute(payrollCollectionSheet);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



