In this lesson, the default behavior of JUnit 5 regarding the instantiation of test objects is discussed. We'll explore how a new instance is created for each individual
@Test, and why that is a reasonable choice for many cases. We expose this behavior through the
@TestInstance annotation, which is introduced for the first time.
@Testis executed in a new instance of the test class
- The default behavior of JUnit 5 is this approach, called
- The behavior can be expressed through the