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