@Test public void shouldReturnAnEmptyListIfInputStringIsEmpty() { assertTrue(anagrams.get("").isEmpty()); }
public List<String> get(String input) { List<String> result = null; if (input == null) { throw new IllegalArgumentException("You can't pass a null String as input."); } else if (input.isEmpty()) { result = new LinkedList<String>(); } else { result = getAnagramsInner("", input); } return result; }
Anagrams { public List<String> get(String input) { List<String> result = null; if (input == null) { throw new IllegalArgumentException("You can't pass a null String as input."); } else if (input.isEmpty()) { result = new LinkedList<String>(); } else { result = getAnagramsInner("", input); } return result; } }
Anagrams { public List<String> get(String input) { List<String> result = null; if (input == null) { throw new IllegalArgumentException("You can't pass a null String as input."); } else if (input.isEmpty()) { result = new LinkedList<String>(); } else { result = getAnagramsInner("", input); } return result; }  }
Anagrams { public List<String> get(String input) { List<String> result = null; if (input == null) { throw new IllegalArgumentException("You can't pass a null String as input."); } else if (input.isEmpty()) { result = new LinkedList<String>(); } else { result = getAnagramsInner("", input); } return result; }  List<String> get(String input); }
Anagrams { public List<String> get(String input) { List<String> result = null; if (input == null) { throw new IllegalArgumentException("You can't pass a null String as input."); } else if (input.isEmpty()) { result = new LinkedList<String>(); } else { result = getAnagramsInner("", input); } return result; }  List<String> get(String input);  }