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);
@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)
@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)
});
}
- private class BasicSupportEmpty extends BasicSupport {
+ private class BasicSupportEmpty extends BasicSupport_Deprecated {
@Override
protected String getSourceName() {
return null;