Merge pull request #8425 from silvafabio/master

Loredana Crusoveanu suggestions: shorten the names of the test method…
This commit is contained in:
Loredana Crusoveanu
2019-12-23 21:53:43 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ import static org.junit.Assert.assertTrue;
public class PatternJava11UnitTest {
@Test
public void givenPreCompiledPattern_whenCallAsMatchPredicate_thenReturnMatchPredicateToMatchesThePatternInTheListElements() {
public void givenPreCompiledPattern_whenCallAsMatchPredicate_thenReturnMatchPredicateToMatchesPattern() {
List<String> namesToValidate = Arrays.asList("Fabio Silva", "Fabio Luis Silva");
Pattern firstLastNamePreCompiledPattern = Pattern.compile("[a-zA-Z]{3,} [a-zA-Z]{3,}");