one of my projects was mixing JUnit 4 and JUnit 5 which made him use JUnit 4 provider?
also I put one JUnit 5 dependency instead of partials, for reparation
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.11.1</version>
<scope>test</scope>
</dependency>
instead of junit-jupiter-engine, junit-platform-runner and junit-jupiter-params dependencies