File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
core-java-11/src/test/java/com/baeldung/patternreuse
core-java-text/src/test/java/com/baeldung/patternreuse Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414public class PatternJava11UnitTest {
1515
1616 @ Test
17- public void givenPreCompiledPattern_whenCallAsMatchPredicate_thenReturnMatchPredicateToMatchesThePatternInTheListElements () {
17+ public void givenPreCompiledPattern_whenCallAsMatchPredicate_thenReturnMatchPredicateToMatchesPattern () {
1818 List <String > namesToValidate = Arrays .asList ("Fabio Silva" , "Fabio Luis Silva" );
1919 Pattern firstLastNamePreCompiledPattern = Pattern .compile ("[a-zA-Z]{3,} [a-zA-Z]{3,}" );
2020
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public void givenPreCompiledPattern_whenCallMatcher_thenReturnAMatcherToMatches(
3030 }
3131
3232 @ Test
33- public void givenPreCompiledPattern_whenCallAsPredicate_thenReturnPredicateToFindThePatternInTheListElements () {
33+ public void givenPreCompiledPattern_whenCallAsPredicate_thenReturnPredicateToFindPatternInTheList () {
3434 List <String > namesToValidate = Arrays .asList ("Fabio Silva" , "Mr. Silva" );
3535 Predicate <String > patternsAsPredicate = FIRST_LAST_NAME_PRE_COMPILED_PATTERN .asPredicate ();
3636
@@ -52,7 +52,7 @@ public void givenPreCompiledPattern_whenCallSplit_thenReturnArrayWithValuesSplit
5252 }
5353
5454 @ Test
55- public void givenPreCompiledPattern_whenCallSplitAsStream_thenReturnArrayWithValuesSplitByThePattern () {
55+ public void givenPreCompiledPattern_whenCallSplitAsStream_thenReturnArraySplitByThePattern () {
5656 Stream <String > textSplitAsStream = SPLIT_PRE_COMPILED_PATTERN .splitAsStream ("My_Name__is__Fabio_Silva" );
5757 String [] textSplit = textSplitAsStream .toArray (String []::new );
5858
You can’t perform that action at this time.
0 commit comments