Minor changes after review

This commit is contained in:
Alex Theedom 2016-08-22 18:44:34 +01:00
parent a34bd465d4
commit db5c839a78
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_shouldConvertToString1() throws Exception {
public void givenChar_whenCallingStringValueOf_shouldConvertToString() throws Exception {
final char givenChar = 'x';
final String result = String.valueOf(givenChar);
@ -16,7 +16,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_shouldConvertToString2() throws Exception {
public void givenChar_whenCallingToStringOnCharacter_shouldConvertToString() throws Exception {
final char givenChar = 'x';
final String result = Character.toString(givenChar);
@ -25,7 +25,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_shouldConvertToString3() throws Exception {
public void givenChar_whenCallingCharacterConstructor_shouldConvertToString3() throws Exception {
final char givenChar = 'x';
final String result = new Character(givenChar).toString();
@ -34,7 +34,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_shouldConvertToString4() throws Exception {
public void givenChar_whenConcatenated_shouldConvertToString4() throws Exception {
final char givenChar = 'x';
final String result = givenChar + "";
@ -43,7 +43,7 @@ public class CharToStringTest {
}
@Test
public void givenChar_shouldConvertToString5() throws Exception {
public void givenChar_whenFormated_shouldConvertToString5() throws Exception {
final char givenChar = 'x';
final String result = String.format("%c", givenChar);