adamsaghy commented on PR #5166:
URL: https://github.com/apache/fineract/pull/5166#issuecomment-3753583942

   ```
   * What went wrong:
   Execution failed for task ':integration-tests:spotlessJavaCheck'.
   > The following files had format violations:
         
src/test/java/org/apache/fineract/integrationtests/SearchResourcesTest.java
             @@ -111,32 +111,27 @@
              ········final·Long·clientId·=·clientResponse.getClientId();
              
········final·GetClientsClientIdResponse·getClientResponse·=·ClientHelper.getClient(requestSpec,·responseSpec,·clientId.intValue());
              
             -
              
········final·List<String>·savingsResources·=·Arrays.asList("savings");
              
········final·ArrayList<GetSearchResponse>·savingsSearchResponse·=·SearchHelper.getSearch(requestSpec,·responseSpec,
              
················getClientResponse.getAccountNo(),·Boolean.FALSE,·getResources(savingsResources));
             -········
             +
              ········//·Verify·valid·entityStatus
             -········savingsSearchResponse.stream()
             
-················.filter(result·->·"SAVING".equalsIgnoreCase(result.getEntityType()))
             -················.forEach(result·->·{
             
-····················assertNotNull(result.getEntityStatus(),·"SAVING·entity·should·have·entityStatus");
             
-····················assertNotNull(result.getEntityStatus().getId(),·"SAVING·entityStatus·should·have·id");
             
-····················assertNotNull(result.getEntityStatus().getCode(),·"SAVING·entityStatus·should·have·code");
             -················});
             
+········savingsSearchResponse.stream().filter(result·->·"SAVING".equalsIgnoreCase(result.getEntityType())).forEach(result·->·{
             
+············assertNotNull(result.getEntityStatus(),·"SAVING·entity·should·have·entityStatus");
             
+············assertNotNull(result.getEntityStatus().getId(),·"SAVING·entityStatus·should·have·id");
             
+············assertNotNull(result.getEntityStatus().getCode(),·"SAVING·entityStatus·should·have·code");
             +········});
              
              
········final·List<String>·shareResources·=·Arrays.asList("shares");
              
········final·ArrayList<GetSearchResponse>·shareSearchResponse·=·SearchHelper.getSearch(requestSpec,·responseSpec,
              
················getClientResponse.getAccountNo(),·Boolean.FALSE,·getResources(shareResources));
             -········
             +
              ········//·Verify·valid·entityStatus
             -········shareSearchResponse.stream()
             
-················.filter(result·->·"SHARE".equalsIgnoreCase(result.getEntityType()))
             -················.forEach(result·->·{
             
-····················assertNotNull(result.getEntityStatus(),·"SHARE·entity·should·have·entityStatus");
             
-····················assertNotNull(result.getEntityStatus().getId(),·"SHARE·entityStatus·should·have·id");
             
-····················assertNotNull(result.getEntityStatus().getCode(),·"SHARE·entityStatus·should·have·code");
             -················});
             
+········shareSearchResponse.stream().filter(result·->·"SHARE".equalsIgnoreCase(result.getEntityType())).forEach(result·->·{
             
+············assertNotNull(result.getEntityStatus(),·"SHARE·entity·should·have·entityStatus");
             
+············assertNotNull(result.getEntityStatus().getId(),·"SHARE·entityStatus·should·have·id");
             
+············assertNotNull(result.getEntityStatus().getCode(),·"SHARE·entityStatus·should·have·code");
             +········});
              ····}
              
              ····private·String·getResources(final·List<String>·resources)·{
     Run './gradlew :integration-tests:spotlessApply' to fix these violations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to