Correct annotations and mode

Report a typo

We need to use methods annotated by @BeforeAll and @AfterAll in our tests; we also need to use a new instance of the test class for each test method.
Can we set the @TestInstance annotation to TestInstance.Lifecycle.PER_METHOD mode and use @BeforeAll and @AfterAll?

Select one or more options from the list
___

Create a free account to access the full topic