Exemple #1
0
 @Test
 public void empty_string_return_empty_list() {
   Anagram anagram = new Anagram("a", "b");
   List<String> actual = anagram.fetch("");
   assertEquals(expected(), actual);
 }
Exemple #2
0
 private void assertAnagram(List<String> expected, String word, String... words) {
   Anagram anagram = new Anagram(words);
   List<String> actual = anagram.fetch(word);
   assertEquals(expected, actual);
 }
Exemple #3
0
 public void Assert(String expected, String toSend) {
   Anagram anagram = new Anagram();
   assertEquals(expected, anagram.run(toSend));
 }