bkkothari2255 opened a new pull request, #82:
URL: https://github.com/apache/sling-org-apache-sling-models-impl/pull/82

   Issue: SLING-13101
   
   Continuing the JUnit 5 migration for the `org.apache.sling.models.impl` 
package. 
   This PR covers **12 test classes** starting with the letters **P through R**.
   
   ### Changes
   * **JUnit 5 Migration:**
       * Replaced `MockitoJUnitRunner` with 
`@ExtendWith(MockitoExtension.class)`.
       * Updated all imports to `org.junit.jupiter.api`.
       * Replaced `@Test(expected)` with `assertThrows`.
   * **Modernization & Cleanup:**
       * Replaced deprecated `new Integer()` with `Integer.valueOf()`.
       * Updated `RandomStringUtils.randomAlphabetic(10)` to 
`RandomStringUtils.secureStrong().nextAlphabetic(10)`.
       * Removed redundant `throws` clauses.
       * Added missing assertion statements where necessary.
   * **Strictness Handling:**
       * Applied `lenient()` strictness to shared setup methods to preserve 
legacy test behavior and prevent `UnnecessaryStubbingException` without 
altering the original logic.


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