I am running JUnit tests that test a Spring Boot application. I have a @Before
method and an @After
one. Then I have a bunch of @Test
methods which are the actual tests.
However, my @Before
and @After
methods execute before and after each test, respectively, instead of executing once before all the tests, and once after all the tests.
Could it be that I'm also using this annotation?
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
EDIT: I see, thanks for the answers
Aucun commentaire:
Enregistrer un commentaire