forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAEL-2911 - JUnit Custom Display Name Generator API
- Loading branch information
1 parent
9d7d7b4
commit 7b244aa
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...-advanced/src/test/java/com/baeldung/displayname/ReplaceUnderscoresGeneratorUnitTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.baeldung.displayname; | ||
|
||
import org.junit.jupiter.api.*; | ||
|
||
@DisplayNameGeneration(DisplayNameGenerator.ReplaceUnderscores.class) | ||
class ReplaceUnderscoresGeneratorUnitTest { | ||
|
||
@Nested | ||
class when_doing_something { | ||
|
||
@Test | ||
void then_should_happen_something() { | ||
} | ||
|
||
@Test | ||
@DisplayName("@DisplayName takes precedence over generation") | ||
void override_generator() { | ||
} | ||
} | ||
} |