Junit Testing (Version 5) Flashcards

1
Q

What does @TestFactory do?

A

denotes a method that’s a test factory for dynamic tests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does @DisplayName do?

A

defines a custom display name for a test class or test method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does @Nested do?

A

Denotes that the annotated class is a nested, non-static test class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does @Tag do?

A

Declares tags for filtering tests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does @ExtendWith do?

A

registers custom extensions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does @BeforeEach do?

A

Denotes that the annotated method will be executed before each test method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does @AfterEach do?

A

denotes that the annotated method will be executed after each test method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does @BeforeAll do?

A

Denotes that the annotated method will be executed before all test methods in the current class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does @AfterAll do?

A

denotes that the annotated method will be executed after all test methods in the current class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does @Disable do?

A

disables a test class or method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly