OSDN Git Service

過去ログ取得時点をConverterコンストラクタ引数からProfileに移動
[coroid/inqubus.git] / frontend / test / saccubus / converter / ConverterTest.java
1 /*
2  * To change this template, choose Tools | Templates
3  * and open the template in the editor.
4  */
5 package saccubus.converter;
6
7 import org.junit.After;
8 import org.junit.AfterClass;
9 import org.junit.Before;
10 import org.junit.BeforeClass;
11 import org.junit.Test;
12 import saccubus.ConvertStopFlag;
13 import saccubus.net.TextProgressListener;
14
15 /**
16  *
17  * @author yuki
18  */
19 public class ConverterTest {
20
21     @BeforeClass
22     public static void setUpClass() throws Exception {
23     }
24
25     @AfterClass
26     public static void tearDownClass() throws Exception {
27     }
28
29     @Before
30     public void setUp() {
31     }
32
33     @After
34     public void tearDown() {
35     }
36
37     @Test
38     public void testConverter() throws Exception {
39         TextProgressListener listener = new TextProgressListener() {
40
41             @Override
42             public void setText(String text) {
43                 System.out.println(text);
44             }
45         };
46         ConvertStopFlag flag = new ConvertStopFlag(ConvertStopFlag.StateChangeListener.EMPTY_LISTENER);
47
48         Converter conv = new Converter("sm7139747", null, listener, flag);
49         conv.call();
50     }
51 //    /**
52 //     * Test of call method, of class Converter.
53 //     */
54 //    @Test
55 //    public void testCall() throws Exception {
56 //        System.out.println("call");
57 //        Converter instance = null;
58 //        Boolean expResult = null;
59 //        Boolean result = instance.call();
60 //        assertEquals(expResult, result);
61 //        // TODO review the generated test code and remove the default call to fail.
62 //        fail("The test case is a prototype.");
63 //    }
64 //
65 //    /**
66 //     * Test of run method, of class Converter.
67 //     */
68 //    @Test
69 //    public void testRun() {
70 //        System.out.println("run");
71 //        Converter instance = null;
72 //        instance.run();
73 //        // TODO review the generated test code and remove the default call to fail.
74 //        fail("The test case is a prototype.");
75 //    }
76 //
77 //    /**
78 //     * Test of isConverted method, of class Converter.
79 //     */
80 //    @Test
81 //    public void testIsConverted() {
82 //        System.out.println("isConverted");
83 //        Converter instance = null;
84 //        boolean expResult = false;
85 //        boolean result = instance.isConverted();
86 //        assertEquals(expResult, result);
87 //        // TODO review the generated test code and remove the default call to fail.
88 //        fail("The test case is a prototype.");
89 //    }
90 //
91 //    /**
92 //     * Test of getStopFlag method, of class Converter.
93 //     */
94 //    @Test
95 //    public void testGetStopFlag() {
96 //        System.out.println("getStopFlag");
97 //        Converter instance = null;
98 //        ConvertStopFlag expResult = null;
99 //        ConvertStopFlag result = instance.getStopFlag();
100 //        assertEquals(expResult, result);
101 //        // TODO review the generated test code and remove the default call to fail.
102 //        fail("The test case is a prototype.");
103 //    }
104 }