1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 /***
29 * @see com.sun.syndication.fetcher.impl.AbstractJettyTest#getFeedFetcher()
30 */
31 protected FeedFetcher getFeedFetcher() {
32 return new HttpURLFeedFetcher();
33 }
34
35 protected FeedFetcher getFeedFetcher(FeedFetcherCache cache) {
36 return new HttpURLFeedFetcher(cache);
37 }
38
39 /***
40 * @see com.sun.syndication.fetcher.impl.AbstractJettyTest#getAuthenticatedFeedFetcher()
41 */
42 public FeedFetcher getAuthenticatedFeedFetcher() {
43
44 java.net.Authenticator.setDefault(new TestBasicAuthenticator());
45
46 FeedFetcher feedFetcher = getFeedFetcher();
47
48 return feedFetcher;
49 }
50
51
52
53 }