Junit Testing (Version 5) Flashcards
What does @TestFactory do?
denotes a method that’s a test factory for dynamic tests
What does @DisplayName do?
defines a custom display name for a test class or test method
What does @Nested do?
Denotes that the annotated class is a nested, non-static test class
What does @Tag do?
Declares tags for filtering tests
What does @ExtendWith do?
registers custom extensions
What does @BeforeEach do?
Denotes that the annotated method will be executed before each test method
What does @AfterEach do?
denotes that the annotated method will be executed after each test method
What does @BeforeAll do?
Denotes that the annotated method will be executed before all test methods in the current class
What does @AfterAll do?
denotes that the annotated method will be executed after all test methods in the current class
What does @Disable do?
disables a test class or method