YahooWebSearchCommand extends AbstractYahooSearchCommand { @Override protected String getFilter() { return super.getFilter(); } YahooWebSearchCommand(final Context cxt); ResultList<ResultItem> execute(); @Override YahooWebCommandConfig getSearchConfiguration(); @Override String getTransformedQuery();  }
@Test public void testSiteRestriction() throws Exception{ assertEquals( "Site filter not found", "aftonbladet.se", executeTestOfQuery("site:aftonbladet.se banan", "banan", "+site:aftonbladet.se") .getFilterBuilder().getFilter("site")); assertEquals( "Site filter not found", "aftonbladet.se", executeTestOfQuery("banan site:aftonbladet.se", "banan", "+site:aftonbladet.se") .getFilterBuilder().getFilter("site")); }