@Test public void testGetQuery() throws Exception { SearchEngine instance = new SearchEngine(); instance.setHistory("Once upon a time"); instance.setFile("Makefile"); instance.setDefinition("\"std::string\""); instance.setSymbol("toString"); instance.setFreetext("OpenGrok"); assertTrue(instance.isValidQuery()); assertEquals("+defs:\"std string\" +full:opengrok +hist:once +hist:upon +hist:time +path:makefile +refs:toString", instance.getQuery()); }
public String getQuery() { return query != null ? query.toString() : null; }
SearchEngine { public String getQuery() { return query != null ? query.toString() : null; } }
SearchEngine { public String getQuery() { return query != null ? query.toString() : null; } SearchEngine(); }
SearchEngine { public String getQuery() { return query != null ? query.toString() : null; } SearchEngine(); boolean isValidQuery(); String getQuery(); Query getQueryObject(); QueryBuilder getQueryBuilder(); IndexSearcher getSearcher(); int search(HttpServletRequest req, String... projectNames); int search(HttpServletRequest req); int search(); ScoreDoc[] scoreDocs(); Document doc(int docId); void results(int start, int end, List<Hit> ret); void destroy(); String getDefinition(); void setDefinition(String definition); String getFile(); void setFile(String file); String getFreetext(); void setFreetext(String freetext); String getHistory(); void setHistory(String history); String getSymbol(); void setSymbol(String symbol); String getType(); void setType(String fileType); }
SearchEngine { public String getQuery() { return query != null ? query.toString() : null; } SearchEngine(); boolean isValidQuery(); String getQuery(); Query getQueryObject(); QueryBuilder getQueryBuilder(); IndexSearcher getSearcher(); int search(HttpServletRequest req, String... projectNames); int search(HttpServletRequest req); int search(); ScoreDoc[] scoreDocs(); Document doc(int docId); void results(int start, int end, List<Hit> ret); void destroy(); String getDefinition(); void setDefinition(String definition); String getFile(); void setFile(String file); String getFreetext(); void setFreetext(String freetext); String getHistory(); void setHistory(String history); String getSymbol(); void setSymbol(String symbol); String getType(); void setType(String fileType); static final Version LUCENE_VERSION; static final String LUCENE_VERSION_HELP; }