@Test void testGetTokenInvalid() { Position pos = new Position(0, -1); assertEquals("", model.getTokenBeforePosition(pos)); }
public String getTokenBeforePosition(Position position) { Line route = getLine(position.getLine()); if (route == null) { return ""; } return retrieveTokenBeginning(position, route); }
MyDocumentModel { public String getTokenBeforePosition(Position position) { Line route = getLine(position.getLine()); if (route == null) { return ""; } return retrieveTokenBeginning(position, route); } }
MyDocumentModel { public String getTokenBeforePosition(Position position) { Line route = getLine(position.getLine()); if (route == null) { return ""; } return retrieveTokenBeginning(position, route); } MyDocumentModel(String text, AnalysisResult analysisResult);  MyDocumentModel(String text); }
MyDocumentModel { public String getTokenBeforePosition(Position position) { Line route = getLine(position.getLine()); if (route == null) { return ""; } return retrieveTokenBeginning(position, route); } MyDocumentModel(String text, AnalysisResult analysisResult);  MyDocumentModel(String text); Line getLine(int number); String getTokenBeforePosition(Position position); String getFullTokenAtPosition(Position position); }
MyDocumentModel { public String getTokenBeforePosition(Position position) { Line route = getLine(position.getLine()); if (route == null) { return ""; } return retrieveTokenBeginning(position, route); } MyDocumentModel(String text, AnalysisResult analysisResult);  MyDocumentModel(String text); Line getLine(int number); String getTokenBeforePosition(Position position); String getFullTokenAtPosition(Position position);  }