HaikuReview { public static boolean isVowel(String s) { for (char c : s.toCharArray()) { for (char v : VOWELS) { if (c == v) { return true; } } } return false; }  static String processHaiku(String haiku); static int getNumberOfLines(String input); static int getNumberOfSyllables(String input); static boolean isSyllable(String input); static boolean isVowel(String s);  }
@Test public void testIsVowel() throws Exception { String[] input = {"a", "e", "i", "o", "u", "y"}; for (String s : input) { boolean isVowel = HaikuReview.isVowel(s); assertThat(isVowel).isTrue(); } }
@Test public void testIsNotVowel() throws Exception { String input = "b"; boolean isVowel = HaikuReview.isVowel(input); assertThat(isVowel).isFalse(); }