1: 2: 3: 4: 5: 6:
ArrayList<String> actual = MyClass.methodImTesting("some input"); ArrayList<String> expected = new ArrayList<String>(); expected.add("1"); expected.add("2"); expected.add("3"); assertEquals(expected, actual);
1:
ArrayList<String> expected = new ArrayList<String>(Arrays.asList(new String[] {"a", "b" }));