HaikuReview { public static boolean hasThreeLines(String input) { if (input == null) return false; String[] arrayResult = input.split("/"); return ( arrayResult.length == 3); }  static boolean hasThreeLines(String input); static boolean hasWord(String input); static boolean checkWordsInEachLine(String haiku);  }
@Test public void testNumberLinesPasses() { assertThat( HaikuReview.hasThreeLines("one line/two lines/three lines") ).isEqualTo(true); }
@Test public void testNumberLinesFails() { assertThat( HaikuReview.hasThreeLines("one line/two lines") ).isEqualTo(false); }