BAEL-4387 Fix method name

This commit is contained in:
Sebastian Luna 2020-08-19 06:30:51 -05:00
parent 2679498f32
commit 3bfaf7a556
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.arrayconvertion;
package com.baeldung.arrayconversion;
import org.junit.Test;
@ -6,10 +6,10 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ArrayToListConvertion {
public class ArrayToListConversion {
@Test(expected = UnsupportedOperationException.class)
public void givenAnArray_whenConvertToList_returnUnmodifiableList() {
public void givenAnArray_whenConvertingToList_returnUnmodifiableList() {
String[] stringArray = new String[] { "A", "B", "C", "D" };
List<String> stringList = Arrays.asList(stringArray);
System.out.println(stringList);
@ -20,7 +20,7 @@ public class ArrayToListConvertion {
}
@Test
public void givenAnArray_whenConvertToList_returnModifiableList() {
public void givenAnArray_whenConvertingToList_returnModifiableList() {
String[] stringArray = new String[] { "A", "B", "C", "D" };
List<String> stringList = new ArrayList<>(Arrays.asList(stringArray));
System.out.println(stringList);