Skip to content

Commit db5c839

Browse files
committed
Minor changes after review
1 parent a34bd46 commit db5c839

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎core-java-8/src/test/java/com/baeldung/CharToStringTest.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class CharToStringTest {
88

99
@Test
10-
public void givenChar_shouldConvertToString1() throws Exception {
10+
public void givenChar_whenCallingStringValueOf_shouldConvertToString() throws Exception {
1111
final char givenChar = 'x';
1212

1313
final String result = String.valueOf(givenChar);
@@ -16,7 +16,7 @@ public void givenChar_shouldConvertToString1() throws Exception {
1616
}
1717

1818
@Test
19-
public void givenChar_shouldConvertToString2() throws Exception {
19+
public void givenChar_whenCallingToStringOnCharacter_shouldConvertToString() throws Exception {
2020
final char givenChar = 'x';
2121

2222
final String result = Character.toString(givenChar);
@@ -25,7 +25,7 @@ public void givenChar_shouldConvertToString2() throws Exception {
2525
}
2626

2727
@Test
28-
public void givenChar_shouldConvertToString3() throws Exception {
28+
public void givenChar_whenCallingCharacterConstructor_shouldConvertToString3() throws Exception {
2929
final char givenChar = 'x';
3030

3131
final String result = new Character(givenChar).toString();
@@ -34,7 +34,7 @@ public void givenChar_shouldConvertToString3() throws Exception {
3434
}
3535

3636
@Test
37-
public void givenChar_shouldConvertToString4() throws Exception {
37+
public void givenChar_whenConcatenated_shouldConvertToString4() throws Exception {
3838
final char givenChar = 'x';
3939

4040
final String result = givenChar + "";
@@ -43,7 +43,7 @@ public void givenChar_shouldConvertToString4() throws Exception {
4343
}
4444

4545
@Test
46-
public void givenChar_shouldConvertToString5() throws Exception {
46+
public void givenChar_whenFormated_shouldConvertToString5() throws Exception {
4747
final char givenChar = 'x';
4848

4949
final String result = String.format("%c", givenChar);

0 commit comments

Comments
 (0)