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