bkkothari2255 opened a new pull request, #83:
URL: https://github.com/apache/sling-org-apache-sling-models-impl/pull/83
Issue: SLING-13115
Continuing the JUnit 5 migration for the `org.apache.sling.models.impl`
package.
This PR covers the **final batch** of the root package.
Changes:
Migrated Files:
- `ServiceAdaptersTest.java`
- `StaticFieldInjectionTest.java`
- `ViaTest.java`
Key Updates:
- Replaced `MockitoJUnitRunner` with `@ExtendWith(MockitoExtension.class)`.
- Updated imports to `org.junit.jupiter.api`.
- Replaced `@Test(expected)` with `assertThrows`.
- Replaced `OsgiContext` @Rule with
`@ExtendWith(OsgiContextExtension.class)`.
- Applied `lenient()` strictness to shared setup methods where necessary to
preserve legacy behavior.
--
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]