I\'m using JUnit since I started this project and everything works just fine. I have a couple of hundreds tests, and of course, here and there I start them all. Right click on r
In my case, we are moving from JUnit 4 to JUnit 5 and I mixed the @Test
of them.
In short:
@RunWith()
of JUnit 4, you must use @org.junit.Test
to annotate test methods.@ExtendWith()
of JUnit 5, you must use @org.junit.jupiter.api.Test
instead.When I change the import, my class can be run as test class again.