@TestInstance has two modes:
- LifeCycle.PER_METHOD (DEFAULT) - JUnit creates a new instance of the test-class for each test-method it contains
- LifeCycle.PER_CLASS - enables us to ask JUnit to create only one instance of the test class and reuse it between tests
1 - Code Examples
|
|