From db5c839a78cf49b790565043e0c9c9298da48b6e Mon Sep 17 00:00:00 2001 From: Alex Theedom Date: Mon, 22 Aug 2016 18:44:34 +0100 Subject: [PATCH] Minor changes after review --- .../src/test/java/com/baeldung/CharToStringTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core-java-8/src/test/java/com/baeldung/CharToStringTest.java b/core-java-8/src/test/java/com/baeldung/CharToStringTest.java index 9ff662a8fe..185b5b3171 100644 --- a/core-java-8/src/test/java/com/baeldung/CharToStringTest.java +++ b/core-java-8/src/test/java/com/baeldung/CharToStringTest.java @@ -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);