Skip to content

Commit ac84f1b

Browse files
author
Stephen Braimah
committed
updated StringCharArrayConversionTest class method names to follow BDD naming conventions
1 parent b6bb1e1 commit ac84f1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core-java/src/test/java/com/baeldung/java/conversion/StringCharArrayConversionTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
public class StringCharArrayConversionTest {
99

1010
@Test
11-
public void stringToCharArray() throws Exception {
11+
public void givenString_whenConvertedToCharArray_ThenCorrect() throws Exception {
1212
String beforeConvCharArr = "Text";
1313
char[] afterConvCharArr = {'T','e','x','t'};
1414

1515
assertArrayEquals(beforeConvCharArr.toCharArray(),afterConvCharArr);
1616
}
1717

1818
@Test
19-
public void charArrayToString() throws Exception {
19+
public void givenCharArray_whenConvertedToString_ThenCorrect() throws Exception {
2020
char[] beforeConvStr = {'T','e','x','t'};
2121
String afterConvStr = "Text";
2222

0 commit comments

Comments
 (0)