private Object[] getTestData() { String[] sortme = { "foo", "bar", "qux", "baz", "moof" }; int[] indexes = { 0, 1, 2, 3, 4 }; return new Object[]{ sortme, indexes };
private Object[] getTestData() throws IOException { InputStream in = getClass().getResource("words.txt").openStream(); BufferedReader r = new BufferedReader(new InputStreamReader(in)); List list = new ArrayList(); String line; while ((line = r.readLine()) != null) { list.add(line); } return list.toArray();
    private Object[] getTestData() {        String[] sortme = { "foo", "bar", "qux", "baz", "moof" };        int[] indexes = { 0, 1, 2, 3, 4 };        return new Object[]{ sortme, indexes };    }