Skip to content

Commit

Permalink
BAEL-2911 - JUnit Custom Display Name Generator API
Browse files Browse the repository at this point in the history
  • Loading branch information
arhohuttunen committed Jun 23, 2019
1 parent 9d7d7b4 commit 7b244aa
Showing 1 changed file with 20 additions and 0 deletions.
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() {
}
}
}

0 comments on commit 7b244aa

Please sign in to comment.