@Test void testGetFirstRoute() { assertEquals(retrieveFirstTextLine(), model.getLine(0).getText()); }
public Line getLine(int number) { return lines.stream().filter(line -> line.getNumber() == number).findFirst().orElse(null); }
MyDocumentModel { public Line getLine(int number) { return lines.stream().filter(line -> line.getNumber() == number).findFirst().orElse(null); } }
MyDocumentModel { public Line getLine(int number) { return lines.stream().filter(line -> line.getNumber() == number).findFirst().orElse(null); } MyDocumentModel(String text, AnalysisResult analysisResult);  MyDocumentModel(String text); }
MyDocumentModel { public Line getLine(int number) { return lines.stream().filter(line -> line.getNumber() == number).findFirst().orElse(null); } MyDocumentModel(String text, AnalysisResult analysisResult);  MyDocumentModel(String text); Line getLine(int number); String getTokenBeforePosition(Position position); String getFullTokenAtPosition(Position position); }
MyDocumentModel { public Line getLine(int number) { return lines.stream().filter(line -> line.getNumber() == number).findFirst().orElse(null); } MyDocumentModel(String text, AnalysisResult analysisResult);  MyDocumentModel(String text); Line getLine(int number); String getTokenBeforePosition(Position position); String getFullTokenAtPosition(Position position);  }