ReverseString { public String reverseString(String s) { return null; }  String reverseString(String s);  }
@Test public void testAll() { String[] origin = new String[] {"", "123", "a.", "asdfg", "asdfgh"}; String[] result = {"", "321", ".a", "gfdsa", "hgfdsa"}; for (int i = 0; i < origin.length; i++) { Assert.assertEquals(result[i], testObject.reverseString(origin[i])); } }