Commit | Line | Data |
---|---|---|
a71d4075 NR |
1 | package be.nikiroo.gofetch.test; |
2 | ||
a71d4075 NR |
3 | import java.io.IOException; |
4 | import java.io.InputStream; | |
a71d4075 | 5 | import java.net.URL; |
a71d4075 NR |
6 | |
7 | import be.nikiroo.gofetch.support.LWN; | |
8 | import be.nikiroo.gofetch.support.Type; | |
9 | ||
10 | public class TestLWN extends TestBase { | |
6e234797 NR |
11 | static private Type type = Type.LWN; |
12 | static private TestBase base = null; | |
a71d4075 NR |
13 | |
14 | public TestLWN(String[] args) { | |
15 | super(new LWN() { | |
16 | @Override | |
17 | protected InputStream open(URL url) throws IOException { | |
6e234797 | 18 | return base.download(url); |
a71d4075 NR |
19 | } |
20 | ||
21 | @Override | |
22 | public Type getType() { | |
6e234797 | 23 | return type; |
a71d4075 NR |
24 | } |
25 | }, args); | |
6e234797 NR |
26 | |
27 | base = this; | |
a71d4075 NR |
28 | } |
29 | } |