Skip to content

Commit 539fe75

Browse files
committed
Amendments to the test method names
1 parent db5c839 commit 539fe75

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_whenCallingStringValueOf_shouldConvertToString() throws Exception {
10+
public void givenChar_whenCallingStringValueOf_shouldConvertToString(){
1111
final char givenChar = 'x';
1212

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

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

2222
final String result = Character.toString(givenChar);
@@ -25,7 +25,7 @@ public void givenChar_whenCallingToStringOnCharacter_shouldConvertToString() thr
2525
}
2626

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

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

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

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

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

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

0 commit comments

Comments
 (0)