fix cache, MangaLEL +search
[nikiroo-utils.git] / src / be / nikiroo / fanfix / test / BasicSupportTest.java
index dba0ef027f8be86e593019f5cacaccb13eeba511..b731c441860bb6b8d3baf10da8ca8fdaa783fc11 100644 (file)
@@ -15,7 +15,8 @@ import be.nikiroo.fanfix.data.Paragraph;
 import be.nikiroo.fanfix.data.Paragraph.ParagraphType;
 import be.nikiroo.fanfix.data.Story;
 import be.nikiroo.fanfix.supported.BasicSupport;
-import be.nikiroo.fanfix.supported.BasicSupport.SupportType;
+import be.nikiroo.fanfix.supported.BasicSupport_Deprecated;
+import be.nikiroo.fanfix.supported.SupportType;
 import be.nikiroo.utils.IOUtils;
 import be.nikiroo.utils.Progress;
 import be.nikiroo.utils.test.TestCase;
@@ -334,11 +335,10 @@ class BasicSupportTest extends TestLauncher {
 
                                        @Override
                                        public void test() throws Exception {
-                                               BasicSupport support = BasicSupport
-                                                               .getSupport(SupportType.TEXT);
+                                               BasicSupport support = BasicSupport.getSupport(
+                                                               SupportType.TEXT, tmp.toURI().toURL());
 
-                                               Story story = support
-                                                               .process(tmp.toURI().toURL(), null);
+                                               Story story = support.process(null);
 
                                                assertEquals(2, story.getChapters().size());
                                                assertEquals(1, story.getChapters().get(1)
@@ -377,11 +377,10 @@ class BasicSupportTest extends TestLauncher {
 
                                        @Override
                                        public void test() throws Exception {
-                                               BasicSupport support = BasicSupport
-                                                               .getSupport(SupportType.TEXT);
+                                               BasicSupport support = BasicSupport.getSupport(
+                                                               SupportType.TEXT, tmp.toURI().toURL());
 
-                                               Story story = support
-                                                               .process(tmp.toURI().toURL(), null);
+                                               Story story = support.process(null);
 
                                                assertEquals(2, story.getChapters().size());
                                                assertEquals(1, story.getChapters().get(1)
@@ -394,12 +393,7 @@ class BasicSupportTest extends TestLauncher {
                });
        }
 
-       private class BasicSupportEmpty extends BasicSupport {
-               @Override
-               protected String getSourceName() {
-                       return null;
-               }
-
+       private class BasicSupportEmpty extends BasicSupport_Deprecated {
                @Override
                protected boolean supports(URL url) {
                        return false;