Reorganise test system via Downloader/Cache
[gofetch.git] / src / be / nikiroo / gofetch / test / TestLWN.java
CommitLineData
a71d4075
NR
1package be.nikiroo.gofetch.test;
2
a71d4075
NR
3import java.io.IOException;
4import java.io.InputStream;
a71d4075 5import java.net.URL;
a71d4075
NR
6
7import be.nikiroo.gofetch.support.LWN;
8import be.nikiroo.gofetch.support.Type;
9
10public 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}