devi pathak created FINERACT-2540:
-------------------------------------

             Summary: Add unit tests for IpAddressUtils utility class
                 Key: FINERACT-2540
                 URL: https://issues.apache.org/jira/browse/FINERACT-2540
             Project: Apache Fineract
          Issue Type: Improvement
            Reporter: devi pathak


The IpAddressUtils utility class currently does not have dedicated unit test 
coverage.

This improvement introduces unit tests for the getClientIp() method to verify 
its behavior under different request context scenarios.

The tests cover the following cases:

- When no request context is available
- When a request context exists but the IP attribute is missing
- When a valid IP attribute is present
- When the IP attribute is a non-string object and must be converted via 
toString()

These tests help ensure the correct behavior of client IP extraction logic and 
improve test coverage for request-related utilities in the infrastructure 
module.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to