@Test public void shouldConvertTheSuppliedArrayToAList() throws Exception { String[] array = {"a", "b", "c"}; List<String> expectedList = listWith("a", "b", "c"); List<String> actualList = Arrays.asList(array); assertThat(actualList, is(expectedList)); }
public static <T> List<T> asList(T[] array) { return listFrom(array); }
Arrays { public static <T> List<T> asList(T[] array) { return listFrom(array); } }
Arrays { public static <T> List<T> asList(T[] array) { return listFrom(array); } private  Arrays(); }
Arrays { public static <T> List<T> asList(T[] array) { return listFrom(array); } private  Arrays(); static List<T> asList(T[] array); static Iterable<T> asIterable(T[] array); }
Arrays { public static <T> List<T> asList(T[] array) { return listFrom(array); } private  Arrays(); static List<T> asList(T[] array); static Iterable<T> asIterable(T[] array);  }