@@ -7,7 +7,7 @@ class RemovePrefixTest {
77
88
99 @Test
10- public void givenWhenCasePrefixIsRemoved_thenReturnTrue () {
10+ public void whenCasePrefixIsRemoved_thenReturnTrue () {
1111 def trimPrefix = {
1212 it. startsWith(' Groovy' ) ? it. minus(' Groovy' ) : it
1313 }
@@ -16,7 +16,7 @@ class RemovePrefixTest {
1616 }
1717
1818 @Test
19- public void givenWhenPrefixIsRemoved_thenReturnTrue () {
19+ public void whenPrefixIsRemovedWithIgnoreCase_thenReturnTrue () {
2020
2121 String prefix = " groovy-"
2222 String trimPrefix = " Groovy-Tutorials at Baeldung"
@@ -29,7 +29,7 @@ class RemovePrefixTest {
2929 }
3030
3131 @Test
32- public void givenWhenPrefixIsRemovedUsingRegex_thenReturnTrue () {
32+ public void whenPrefixIsRemovedUsingRegex_thenReturnTrue () {
3333
3434 def regex = ~" ^([Gg])roovy-"
3535 String trimPrefix = " Groovy-Tutorials at Baeldung"
@@ -38,7 +38,7 @@ class RemovePrefixTest {
3838 Assert . assertEquals (" Tutorials at Baeldung" , result)
3939 }
4040
41- @Test public void givenWhenPrefixIsRemovedUsingReplaceFirst_thenReturnTrue () {
41+ @Test public void whenPrefixIsRemovedUsingReplaceFirst_thenReturnTrue () {
4242 def regex = ~" ^groovy"
4343 String trimPrefix = " groovyTutorials at Baeldung's groovy page"
4444 String result = trimPrefix. replaceFirst(regex, " " )
@@ -47,7 +47,7 @@ class RemovePrefixTest {
4747 }
4848
4949 @Test
50- public void givenWhenPrefixIsRemovedUsingReplaceAll_thenReturnTrue () {
50+ public void whenPrefixIsRemovedUsingReplaceAll_thenReturnTrue () {
5151
5252 String trimPrefix = " groovyTutorials at Baeldung groovy"
5353 String result = trimPrefix. replaceAll(/ ^groovy/ , " " )
0 commit comments