generated is better than vendor in this case
[gofetch.git] / TestTooLinux.java
... / ...
CommitLineData
1package be.nikiroo.gofetch.test;
2
3import java.io.File;
4import java.io.IOException;
5import java.io.InputStream;
6import java.net.MalformedURLException;
7import java.net.URL;
8
9import be.nikiroo.gofetch.support.TooLinux;
10import be.nikiroo.gofetch.support.Type;
11
12public 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}