Sonigra Bhavya Hemendrabhai created FINERACT-3020:
-----------------------------------------------------

             Summary: SavingsAccountRepositoryWrapperLockOrderTest fails to 
compile on develop due to missing PlatformSecurityContext argument
                 Key: FINERACT-3020
                 URL: https://issues.apache.org/jira/browse/FINERACT-3020
             Project: Apache Fineract
          Issue Type: Bug
          Components: Savings
    Affects Versions: 1.16.0
            Reporter: Sonigra Bhavya Hemendrabhai
            Assignee: Sonigra Bhavya Hemendrabhai
             Fix For: 1.16.0


After the merge of FINERACT-2639 (PR #6698), a PlatformSecurityContext 
parameter was added to the SavingsAccountRepositoryWrapper constructor. 
However, SavingsAccountRepositoryWrapperLockOrderTest (merged from PR #6591) 
uses the old 2-argument constructor.

As a result, develop currently fails during :fineract-savings:compileTestJava 
with:

SavingsAccountRepositoryWrapperLockOrderTest.java:36: error: constructor 
SavingsAccountRepositoryWrapper in class SavingsAccountRepositoryWrapper cannot 
be applied to given types;
    private final SavingsAccountRepositoryWrapper underTest = new 
SavingsAccountRepositoryWrapper(repository,
                                                              ^
  required: 
SavingsAccountRepository,SavingsAccountTransactionRepository,PlatformSecurityContext
  found:    SavingsAccountRepository,SavingsAccountTransactionRepository
  reason: actual and formal argument lists differ in length

Fix:
Pass mock(PlatformSecurityContext.class) to the SavingsAccountRepositoryWrapper 
constructor in SavingsAccountRepositoryWrapperLockOrderTest.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to