@Test public void testSearchStrategy() throws Exception { SearchStrategy strategy = SearchStrategy .parse(new ConfigThingy("", "Suchstrategie(ds (column \"${suchanfrage2}\" column2 \"${suchanfrage1}\") " + "ds (column \"${suchanfrage2}\" column2 \"${suchanfrage1}\"))")); List<Query> queries = strategy.getTemplate(2); assertEquals(2, queries.size()); Query query = queries.get(0); assertEquals(2, query.numberOfQueryParts()); }
private SearchStrategy() { this.mapWordcountToListOfQuerys = new HashMap<>(); }
SearchStrategy { private SearchStrategy() { this.mapWordcountToListOfQuerys = new HashMap<>(); } }
SearchStrategy { private SearchStrategy() { this.mapWordcountToListOfQuerys = new HashMap<>(); } private  SearchStrategy(); }
SearchStrategy { private SearchStrategy() { this.mapWordcountToListOfQuerys = new HashMap<>(); } private  SearchStrategy(); static SearchStrategy parse(ConfigThingy conf); List<Query> getTemplate(int wordcount); }
SearchStrategy { private SearchStrategy() { this.mapWordcountToListOfQuerys = new HashMap<>(); } private  SearchStrategy(); static SearchStrategy parse(ConfigThingy conf); List<Query> getTemplate(int wordcount);  }