HaikuReview { public static boolean hasWord(String input) { if (input == null) return false; return (input.matches("[a-z]+")); }  static boolean hasThreeLines(String input); static boolean hasWord(String input); static boolean checkWordsInEachLine(String haiku);  }
@Test public void testAlmostWordForLinePasses(){ String text = "one"; assertThat( HaikuReview.hasWord(text) ).isEqualTo(true); }
@Test public void testAlmostWordForLineFails(){ String text = ""; assertThat(HaikuReview.hasWord(text) ).isEqualTo(false); }