Merge pull request #7164 from arhohuttunen/master
BAEL-2911 - JUnit Custom Display Name Generator API
This commit is contained in:
commit
6b16a4cb64
@ -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() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user