@Test public void testNullToStringArray() { String[] st = new ApacheAPIConverter().toStringArray(null); assertTrue(st[0].equals("*")); }
String[] toStringArray(List<Field> entities) { if (entities == null || entities.isEmpty()) { String[] result = new String[1]; result[0] = "*"; return result; } String[] result = new String[entities.size()]; for (int i = 0; i < entities.size(); i++) { result[i] = entities.get(i).getName(); } return result; }
ApacheAPIConverter { String[] toStringArray(List<Field> entities) { if (entities == null || entities.isEmpty()) { String[] result = new String[1]; result[0] = "*"; return result; } String[] result = new String[entities.size()]; for (int i = 0; i < entities.size(); i++) { result[i] = entities.get(i).getName(); } return result; } }
ApacheAPIConverter { String[] toStringArray(List<Field> entities) { if (entities == null || entities.isEmpty()) { String[] result = new String[1]; result[0] = "*"; return result; } String[] result = new String[entities.size()]; for (int i = 0; i < entities.size(); i++) { result[i] = entities.get(i).getName(); } return result; }  }
ApacheAPIConverter { String[] toStringArray(List<Field> entities) { if (entities == null || entities.isEmpty()) { String[] result = new String[1]; result[0] = "*"; return result; } String[] result = new String[entities.size()]; for (int i = 0; i < entities.size(); i++) { result[i] = entities.get(i).getName(); } return result; }  Modification toModification(ModificationDetails modificationDetails); }
ApacheAPIConverter { String[] toStringArray(List<Field> entities) { if (entities == null || entities.isEmpty()) { String[] result = new String[1]; result[0] = "*"; return result; } String[] result = new String[entities.size()]; for (int i = 0; i < entities.size(); i++) { result[i] = entities.get(i).getName(); } return result; }  Modification toModification(ModificationDetails modificationDetails);  }