Amendments to the test method names
This commit is contained in:
parent
db5c839a78
commit
539fe75116
|
@ -7,7 +7,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||||
public class CharToStringTest {
|
public class CharToStringTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenChar_whenCallingStringValueOf_shouldConvertToString() throws Exception {
|
public void givenChar_whenCallingStringValueOf_shouldConvertToString(){
|
||||||
final char givenChar = 'x';
|
final char givenChar = 'x';
|
||||||
|
|
||||||
final String result = String.valueOf(givenChar);
|
final String result = String.valueOf(givenChar);
|
||||||
|
@ -16,7 +16,7 @@ public class CharToStringTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenChar_whenCallingToStringOnCharacter_shouldConvertToString() throws Exception {
|
public void givenChar_whenCallingToStringOnCharacter_shouldConvertToString(){
|
||||||
final char givenChar = 'x';
|
final char givenChar = 'x';
|
||||||
|
|
||||||
final String result = Character.toString(givenChar);
|
final String result = Character.toString(givenChar);
|
||||||
|
@ -25,7 +25,7 @@ public class CharToStringTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenChar_whenCallingCharacterConstructor_shouldConvertToString3() throws Exception {
|
public void givenChar_whenCallingCharacterConstructor_shouldConvertToString3(){
|
||||||
final char givenChar = 'x';
|
final char givenChar = 'x';
|
||||||
|
|
||||||
final String result = new Character(givenChar).toString();
|
final String result = new Character(givenChar).toString();
|
||||||
|
@ -34,7 +34,7 @@ public class CharToStringTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenChar_whenConcatenated_shouldConvertToString4() throws Exception {
|
public void givenChar_whenConcatenated_shouldConvertToString4(){
|
||||||
final char givenChar = 'x';
|
final char givenChar = 'x';
|
||||||
|
|
||||||
final String result = givenChar + "";
|
final String result = givenChar + "";
|
||||||
|
@ -43,7 +43,7 @@ public class CharToStringTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenChar_whenFormated_shouldConvertToString5() throws Exception {
|
public void givenChar_whenFormated_shouldConvertToString5(){
|
||||||
final char givenChar = 'x';
|
final char givenChar = 'x';
|
||||||
|
|
||||||
final String result = String.format("%c", givenChar);
|
final String result = String.format("%c", givenChar);
|
||||||
|
|
Loading…
Reference in New Issue