Split the @Test annotation in new line
This commit is contained in:
parent
43fb479c81
commit
40ebac5142
|
@ -45,7 +45,8 @@ class RemovePrefixTest {
|
||||||
Assert.assertEquals(expected, actual)
|
Assert.assertEquals(expected, actual)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test public void whenPrefixIsRemovedUsingReplaceFirst_thenReturnTrue() {
|
@Test
|
||||||
|
public void whenPrefixIsRemovedUsingReplaceFirst_thenReturnTrue() {
|
||||||
def regex = ~"^groovy"
|
def regex = ~"^groovy"
|
||||||
String trimPrefix = "groovyTutorials at Baeldung's groovy page"
|
String trimPrefix = "groovyTutorials at Baeldung's groovy page"
|
||||||
String actual = trimPrefix.replaceFirst(regex, "")
|
String actual = trimPrefix.replaceFirst(regex, "")
|
||||||
|
|
Loading…
Reference in New Issue