@DisplayNameGeneration
- 테스트 클래스에 Custom한 display name generator를 등록함
DisplayNameGenerator | Behavior |
Standard | Matches the standard display name generation behavior in place since JUnit Jupiter 5.0 was released. |
Simple | Removes trailing parentheses for methods with no parameters. |
ReplaceUnderscores | Replaces underscores with spaces. |
IndicativeSentences | Generates complete sentences by concatenating the names of the test and the enclosing classes. |
@DisplayName
- 테스트 클래스 혹은 메소드에 custom한 display name을 등록함
클래스에
@DisplayNameGeneration
을 등록하고 메소드에 @DisplayName
을 작성하면 메소드에 작성된 display name이 우선됨