BAEL-4387 Improve method naming

This commit is contained in:
Sebastian Luna 2020-08-19 06:34:26 -05:00
parent 3bfaf7a556
commit bd0a7a2822
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import java.util.List;
public class ArrayToListConversion { public class ArrayToListConversion {
@Test(expected = UnsupportedOperationException.class) @Test(expected = UnsupportedOperationException.class)
public void givenAnArray_whenConvertingToList_returnUnmodifiableList() { public void givenAnArray_whenConvertingToList_returnUnmodifiableListUnitTest() {
String[] stringArray = new String[] { "A", "B", "C", "D" }; String[] stringArray = new String[] { "A", "B", "C", "D" };
List<String> stringList = Arrays.asList(stringArray); List<String> stringList = Arrays.asList(stringArray);
System.out.println(stringList); System.out.println(stringList);
@ -20,7 +20,7 @@ public class ArrayToListConversion {
} }
@Test @Test
public void givenAnArray_whenConvertingToList_returnModifiableList() { public void givenAnArray_whenConvertingToList_returnModifiableListUnitTest() {
String[] stringArray = new String[] { "A", "B", "C", "D" }; String[] stringArray = new String[] { "A", "B", "C", "D" };
List<String> stringList = new ArrayList<>(Arrays.asList(stringArray)); List<String> stringList = new ArrayList<>(Arrays.asList(stringArray));
System.out.println(stringList); System.out.println(stringList);