Skip to content

Commit 6517c26

Browse files
author
Grzegorz Piwowarek
committed
Refactor variable's name
1 parent 79e2c3e commit 6517c26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎assertj/src/test/java/com/baeldung/assertj/introduction/AssertJJava8Test.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ public void givenString_shouldSatisfy() throws Exception {
116116

117117
@Test
118118
public void givenString_shouldMatch() throws Exception {
119-
final String givenString = "";
119+
final String emptyString = "";
120120

121-
assertThat(givenString)
121+
assertThat(emptyString)
122122
.matches(String::isEmpty);
123123
}
124124

0 commit comments

Comments
 (0)