New: reddit linux_gaming
[gofetch.git] / src / be / nikiroo / gofetch / test / TestReddit.java
CommitLineData
b19b3632
NR
1
2package be.nikiroo.gofetch.test;
3
4import java.io.IOException;
5import java.io.InputStream;
6import java.net.URL;
7
8import be.nikiroo.gofetch.support.Reddit;
9import be.nikiroo.gofetch.support.Type;
10
11public class TestReddit extends TestBase {
12 static private Type type = Type.REDDIT;
13 static private TestBase base = null;
14
15 public TestReddit(String[] args) {
16 super(new Reddit() {
17 @Override
18 protected InputStream open(URL url) throws IOException {
19 return base.download(url);
20 }
21
22 @Override
23 public Type getType() {
24 return type;
25 }
26 }, args);
27
28 base = this;
29 }
30}