Bhavik Kothari created SLING-13066:
--------------------------------------

             Summary: [Sling Models] Migrate implpicker and basic root tests to 
JUnit 5
                 Key: SLING-13066
                 URL: https://issues.apache.org/jira/browse/SLING-13066
             Project: Sling
          Issue Type: Improvement
          Components: Sling Models
            Reporter: Bhavik Kothari


Continuing the JUnit 5 migration (following SLING-13064).

This task covers the implpicker package and the first batch of the root `impl` 
package (files starting A-C).

Files:
- FirstImplementationPickerTest (`implpicker`)
- AdapterFactoryTest (covered in SLING-13052)
- AdapterImplementationsTest
- AnnotationConflictsTest
- CachingTest
- ConstructorTest
- ConstructorVisibilityTest
- CustomInjectorTest

 

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
 - Correcting Assertion Argument Order
 - Adding missing Assertion statements 



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

Reply via email to