TerminalPage { public TerminalPage(FileParser fileParser, int columns) throws IOException { this.fileParser = fileParser; lines = fileParser.loadPage(columns); } TerminalPage(FileParser fileParser, int columns); String getLine(int num); List<Integer> findWord(String word); int size(); String getFileName(); List<String> getLines(); boolean hasData(); void clear();  }
@Test public void testTerminalPage() throws IOException { TerminalPage tp = new TerminalPage(parser, 80); Assert.assertTrue(tp.hasData()); Assert.assertTrue(tp.size() > 0); Assert.assertNotNull(tp.getLines()); Assert.assertEquals("ASCIIDOC(1)", tp.getFileName()); Assert.assertNotNull(tp.findWord("is")); Assert.assertTrue(tp.getLine(8).contains("DocBook")); }