import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
-import static org.junit.Assert.*;
import saccubus.ConvertStopFlag;
+import saccubus.net.TextProgressListener;
/**
*
* @author yuki
*/
public class ConverterTest {
-
+
@BeforeClass
public static void setUpClass() throws Exception {
}
@AfterClass
public static void tearDownClass() throws Exception {
}
-
+
@Before
public void setUp() {
}
-
+
@After
public void tearDown() {
}
@Test
- public void testConverter() throws Exception{
- Converter conv = new Converter("sm7139747",null,null,null,null);
- conv.call();
+ public void testConverter() throws Exception {
+ TextProgressListener listener = new TextProgressListener() {
+
+ @Override
+ public void setText(String text) {
+ System.out.println(text);
+ }
+ };
+ ConvertStopFlag flag = new ConvertStopFlag(ConvertStopFlag.StateChangeListener.EMPTY_LISTENER);
+
+ Converter conv = new Converter("sm7139747", null, listener, flag);
+ conv.call();
}
// /**
// * Test of call method, of class Converter.