ivamly commented on PR #1519:
URL: https://github.com/apache/commons-lang/pull/1519#issuecomment-3784775523

   @garydgregory, thank you for the detailed feedback!
   
   I've implemented the changes: added the helper method and sorted the 
methods. However, I've run into challenges testing the arithmetic exception 
path.
   
   **The issue**: The project uses EasyMock, which doesn't support mocking 
static methods. Attempting to test this directly by creating an array near 
Integer.MAX_VALUE consistently causes an OutOfMemoryError, and such a test 
likely won't run reliably in CI or for other developers
   
   **My question**: What's the established pattern for testing such scenarios 
in project?
   
   I'd appreciate your guidance on the best path forward.


-- 
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