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