HaikuReview { public String[] asLines(String input) { return input.split(LINE_SEPARATOR); }  boolean validateLineCount(String input); int countWords(String input); String[] asLines(String input); int countSyllables(String input); boolean isHaiku(String input); String review(String input); static final int FIRST_LINE_SYLLABLE_COUNT; static final int SECOND_LINE_SYLLABLE_COUNT; static final int THIRD_LINE_SYLLABLE_COUNT; static final String RESULT_VALID; static final String RESULT_SEPARATOR; static final String RESULT_NO; }
@Test public void testSplitsLines() { String[] lines = haikuReview.asLines(VALID_INPUT_ONE); assertThat(lines.length).isEqualTo(3); }
@Test public void testEachLineIsSplitCorrectly() { String[] lines = haikuReview.asLines(VALID_INPUT_ONE); assertThat(lines[0]).isEqualTo("happy purple frog"); assertThat(lines[1]).isEqualTo("eating bugs in the marshes"); assertThat(lines[2]).isEqualTo("get indigestion"); }