@Test public void testExecuteDefault() throws Exception { sut = new BasicPluginFeedFetcher(fetcher); context.checking(new Expectations() { { oneOf(fetcher).fetchFeed(URL_TEXT, Collections.EMPTY_MAP, PROXY_HOST, PROXY_PORT, TIMEOUT); will(returnValue(feed)); } }); Map<String, SyndFeed> result = sut.execute(URL_TEXT, users, PROXY_HOST, PROXY_PORT, TIMEOUT); context.assertIsSatisfied(); assertEquals(1, result.size()); assertSame(feed, result.get(null)); }
@Override public Map<String, SyndFeed> execute(final String inFeedUrl, final Collection<String> inRequestors, final String inProxyHost, final String inProxyPort, final int inTimeout) throws Exception { return Collections.singletonMap(null, fetcher.fetchFeed(inFeedUrl, httpHeaders, inProxyHost, inProxyPort, inTimeout)); }
BasicPluginFeedFetcher implements PluginFeedFetcherStrategy { @Override public Map<String, SyndFeed> execute(final String inFeedUrl, final Collection<String> inRequestors, final String inProxyHost, final String inProxyPort, final int inTimeout) throws Exception { return Collections.singletonMap(null, fetcher.fetchFeed(inFeedUrl, httpHeaders, inProxyHost, inProxyPort, inTimeout)); } }
BasicPluginFeedFetcher implements PluginFeedFetcherStrategy { @Override public Map<String, SyndFeed> execute(final String inFeedUrl, final Collection<String> inRequestors, final String inProxyHost, final String inProxyPort, final int inTimeout) throws Exception { return Collections.singletonMap(null, fetcher.fetchFeed(inFeedUrl, httpHeaders, inProxyHost, inProxyPort, inTimeout)); } BasicPluginFeedFetcher(final FeedFetcher inFetcher);  BasicPluginFeedFetcher(final FeedFetcher inFetcher, final String inSiteUrlRegEx,
            final Map<String, String> inHttpHeaders); }
BasicPluginFeedFetcher implements PluginFeedFetcherStrategy { @Override public Map<String, SyndFeed> execute(final String inFeedUrl, final Collection<String> inRequestors, final String inProxyHost, final String inProxyPort, final int inTimeout) throws Exception { return Collections.singletonMap(null, fetcher.fetchFeed(inFeedUrl, httpHeaders, inProxyHost, inProxyPort, inTimeout)); } BasicPluginFeedFetcher(final FeedFetcher inFetcher);  BasicPluginFeedFetcher(final FeedFetcher inFetcher, final String inSiteUrlRegEx,
            final Map<String, String> inHttpHeaders); @Override String getSiteUrlRegEx(); @Override Map<String, SyndFeed> execute(final String inFeedUrl, final Collection<String> inRequestors,
            final String inProxyHost, final String inProxyPort, final int inTimeout); }
BasicPluginFeedFetcher implements PluginFeedFetcherStrategy { @Override public Map<String, SyndFeed> execute(final String inFeedUrl, final Collection<String> inRequestors, final String inProxyHost, final String inProxyPort, final int inTimeout) throws Exception { return Collections.singletonMap(null, fetcher.fetchFeed(inFeedUrl, httpHeaders, inProxyHost, inProxyPort, inTimeout)); } BasicPluginFeedFetcher(final FeedFetcher inFetcher);  BasicPluginFeedFetcher(final FeedFetcher inFetcher, final String inSiteUrlRegEx,
            final Map<String, String> inHttpHeaders); @Override String getSiteUrlRegEx(); @Override Map<String, SyndFeed> execute(final String inFeedUrl, final Collection<String> inRequestors,
            final String inProxyHost, final String inProxyPort, final int inTimeout);  }