X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Ftest%2FBasicSupportTest.java;h=a3f5221df5c62db03b1e1e970074e036dbdec59a;hb=0ffa47548f474c1330d8d723300d9aa7a4894736;hp=40da442c0a76afb7f3c4514f8e35242c984f9da3;hpb=e8eeea0a321493d270c35f594a8bf392cc95f4df;p=nikiroo-utils.git diff --git a/src/be/nikiroo/fanfix/test/BasicSupportTest.java b/src/be/nikiroo/fanfix/test/BasicSupportTest.java index 40da442..a3f5221 100644 --- a/src/be/nikiroo/fanfix/test/BasicSupportTest.java +++ b/src/be/nikiroo/fanfix/test/BasicSupportTest.java @@ -15,13 +15,14 @@ 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; import be.nikiroo.utils.test.TestLauncher; -public class BasicSupportTest extends TestLauncher { +class BasicSupportTest extends TestLauncher { // quote chars private char openQuote = Instance.getTrans().getCharacter( StringId.OPEN_SINGLE_QUOTE); @@ -180,7 +181,7 @@ public class BasicSupportTest extends TestLauncher { public void setUp() throws Exception { super.setUp(); - }; + } @Override public void tearDown() throws Exception { @@ -325,20 +326,19 @@ public class BasicSupportTest extends TestLauncher { + "Fanfan." + "\n" + "\n" + "Chapter 2: Chap2" + "\n" + "\n" // + "Tulipe." + "\n"); - }; + } @Override public void tearDown() throws Exception { tmp.delete(); - }; + } @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) @@ -368,20 +368,19 @@ public class BasicSupportTest extends TestLauncher { + "Fanfan." + "\n" + "\n" + "Chapter 2: Chap2" + "\n" + "\n" // + "Tulipe." + "\n"); - }; + } @Override public void tearDown() throws Exception { tmp.delete(); - }; + } @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,7 +393,7 @@ public class BasicSupportTest extends TestLauncher { }); } - private class BasicSupportEmpty extends BasicSupport { + private class BasicSupportEmpty extends BasicSupport_Deprecated { @Override protected String getSourceName() { return null;