@Test public void returns_list_of_strings() { String[] array = {"a", "b", "c"}; List<Object> objects = this.builder.getList(array); assertEquals(3, objects.size()); assertEquals("a", objects.get(0)); assertEquals("b", objects.get(1)); assertEquals("c", objects.get(2)); }
public List<Object> getList(String[] strings) { List<Object> objectList = new ArrayList<Object>(); Collections.addAll(objectList, strings); return objectList; }
StringListBuilder { public List<Object> getList(String[] strings) { List<Object> objectList = new ArrayList<Object>(); Collections.addAll(objectList, strings); return objectList; } }
StringListBuilder { public List<Object> getList(String[] strings) { List<Object> objectList = new ArrayList<Object>(); Collections.addAll(objectList, strings); return objectList; }  }
StringListBuilder { public List<Object> getList(String[] strings) { List<Object> objectList = new ArrayList<Object>(); Collections.addAll(objectList, strings); return objectList; }  List<Object> getList(String[] strings); }
StringListBuilder { public List<Object> getList(String[] strings) { List<Object> objectList = new ArrayList<Object>(); Collections.addAll(objectList, strings); return objectList; }  List<Object> getList(String[] strings);  }