[ 
https://issues.apache.org/jira/browse/SLING-13115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seifert resolved SLING-13115.
------------------------------------
    Fix Version/s: Models Implementation 2.0.2
         Assignee: Stefan Seifert
       Resolution: Fixed

thanks!

> [Sling Models] Migrate ServiceAdapters, StaticFieldInjection, and Via Tests 
> to JUnit 5
> --------------------------------------------------------------------------------------
>
>                 Key: SLING-13115
>                 URL: https://issues.apache.org/jira/browse/SLING-13115
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Models
>            Reporter: Bhavik Kothari
>            Assignee: Stefan Seifert
>            Priority: Major
>              Labels: junit5, models
>             Fix For: Models Implementation 2.0.2
>
>
> Continuing the JUnit 5 migration for the `org.apache.sling.models.impl` 
> package. 
> This task covers 3 test classes
> Files to migrate:
>  - ServiceAdaptersTest
>  - StaticFieldInjectionTest
>  - ViaTest
> Key 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
>  - Replace `OsgiContext` @Rule with `@ExtendWith(OsgiContextExtension.class)`



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

Reply via email to