ARMS2025 opened a new pull request, #55: URL: https://github.com/apache/sling-org-apache-sling-servlets-resolver/pull/55
We are researchers and analyzed the test doubles (mocks) in the test code of the project. In our analysis of the project, we observed that + 1 stubbing for the `getProperty` method is created in `ServletMounterTest.testCreateServiceProperties` and is stubbed with argument "sling.servlet.methods", but in actual execution, it was called with argument "service.ranking", resulting in a mismatch stubbing. In this pull request, we propose a solution to resolve the mismatch stubbing. Mismatched stubbing occurs when a mocked method is stubbed with specific arguments in a test but later invoked with different arguments in the code, potentially causing unexpected behavior. Mockito recommends addressing these issues, (https://www.javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/exceptions/misusing/PotentialStubbingProblem.html) -- 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: dev-unsubscr...@sling.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org