Add support for 7sur7.be
[gofetch.git] / src / be / nikiroo / gofetch / test / TestSeptSurSept.java
diff --git a/src/be/nikiroo/gofetch/test/TestSeptSurSept.java b/src/be/nikiroo/gofetch/test/TestSeptSurSept.java
new file mode 100644 (file)
index 0000000..7ecece4
--- /dev/null
@@ -0,0 +1,29 @@
+package be.nikiroo.gofetch.test;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+
+import be.nikiroo.gofetch.support.SeptSurSept;
+import be.nikiroo.gofetch.support.Type;
+
+public class TestSeptSurSept extends TestBase {
+       static private Type type = Type.SEPT_SUR_SEPT;
+       static private TestBase base = null;
+
+       public TestSeptSurSept(String[] args) {
+               super(new SeptSurSept() {
+                       @Override
+                       protected InputStream open(URL url) throws IOException {
+                               return base.download(url);
+                       }
+
+                       @Override
+                       public Type getType() {
+                               return type;
+                       }
+               }, args);
+
+               base = this;
+       }
+}