Amendments to the test method names

This commit is contained in:
Alex Theedom 2016-08-22 18:54:32 +01:00
parent db5c839a78
commit 539fe75116
1 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class CharToStringTest {
@Test
public void givenChar_whenCallingStringValueOf_shouldConvertToString() throws Exception {
public void givenChar_whenCallingStringValueOf_shouldConvertToString(){
final char givenChar = 'x';
final String result = String.valueOf(givenChar);
@ -16,7 +16,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_whenCallingToStringOnCharacter_shouldConvertToString() throws Exception {
public void givenChar_whenCallingToStringOnCharacter_shouldConvertToString(){
final char givenChar = 'x';
final String result = Character.toString(givenChar);
@ -25,7 +25,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_whenCallingCharacterConstructor_shouldConvertToString3() throws Exception {
public void givenChar_whenCallingCharacterConstructor_shouldConvertToString3(){
final char givenChar = 'x';
final String result = new Character(givenChar).toString();
@ -34,7 +34,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_whenConcatenated_shouldConvertToString4() throws Exception {
public void givenChar_whenConcatenated_shouldConvertToString4(){
final char givenChar = 'x';
final String result = givenChar + "";
@ -43,7 +43,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_whenFormated_shouldConvertToString5() throws Exception {
public void givenChar_whenFormated_shouldConvertToString5(){
final char givenChar = 'x';
final String result = String.format("%c", givenChar);