Bhavik Kothari created SLING-13064:
--------------------------------------

             Summary: [Sling Models] Migrate 'via' package unit tests to JUnit 5
                 Key: SLING-13064
                 URL: https://issues.apache.org/jira/browse/SLING-13064
             Project: Sling
          Issue Type: Improvement
            Reporter: Bhavik Kothari


Continuing the JUnit 5 migration efforts (following SLING-13052, SLING-13062 
and SLING-13063).

This task migrates the unit tests in the `org.apache.sling.models.impl.via` 
package to JUnit 5.
These tests cover various "Via" providers and ResourceTypeForcing wrappers,
 * AbstractResourceTypeViaProvider
 * BeanPropertyViaProvider
 * ChildResourceViaProvider
 * ForcedResourceTypeViaProvider
 * OriginalResourceTypeViaProvider
 * ResourceSuperTypeViaProvider
 * ResourceTypeForcingJakartaRequestWrapper
 * ResourceTypeForcingRequestWrapper
 * ResourceTypeForcingResourceWrapper

 

Changes:
 - Replacing `MockitoJUnitRunner` with `@ExtendWith(MockitoExtension.class)`.
 - Updating all imports to `org.junit.jupiter.api`.
 - Applying `lenient()` strictness to shared setup method to preserve legacy 
test behavior and prevent `UnnecessaryStubbingException` without altering the 
original test logic



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

Reply via email to