1 17 package com.sun.syndication.fetcher.impl; 18 19 import com.sun.syndication.fetcher.FeedFetcher; 20 21 22 public class HttpURLFeedFetcherTest extends AbstractJettyTest { 23 24 public HttpURLFeedFetcherTest(String s) { 25 super(s); 26 } 27 28 31 protected FeedFetcher getFeedFetcher() { 32 return new HttpURLFeedFetcher(); 33 } 34 35 protected FeedFetcher getFeedFetcher(FeedFetcherCache cache) { 36 return new HttpURLFeedFetcher(cache); 37 } 38 39 42 public FeedFetcher getAuthenticatedFeedFetcher() { 43 java.net.Authenticator.setDefault(new TestBasicAuthenticator()); 45 46 FeedFetcher feedFetcher = getFeedFetcher(); 47 48 return feedFetcher; 49 } 50 51 52 53 } 54 | Popular Tags |