@Test public void search() { final int pages = 5; String expected = "https: GoogleSearcher searcher = new GoogleSearcher(); Result actual = searcher.search(new Query("Hello"), pages); Assert.assertEquals(expected, actual.next()); }
@Override public Result search(Query query) { return search(query, 1); }
GoogleSearcher implements Searcher { @Override public Result search(Query query) { return search(query, 1); } }
GoogleSearcher implements Searcher { @Override public Result search(Query query) { return search(query, 1); } GoogleSearcher(); }
GoogleSearcher implements Searcher { @Override public Result search(Query query) { return search(query, 1); } GoogleSearcher(); @Override Result search(Query query); @Override Result search(Query query, int pages); }
GoogleSearcher implements Searcher { @Override public Result search(Query query) { return search(query, 1); } GoogleSearcher(); @Override Result search(Query query); @Override Result search(Query query, int pages);  }