2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package saccubus.converter;
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;
19 public class ConverterTest {
22 public static void setUpClass() throws Exception {
26 public static void tearDownClass() throws Exception {
34 public void tearDown() {
38 public void testConverter() throws Exception {
39 TextProgressListener listener = new TextProgressListener() {
42 public void setText(String text) {
43 System.out.println(text);
46 ConvertStopFlag flag = new ConvertStopFlag(ConvertStopFlag.StateChangeListener.EMPTY_LISTENER);
48 Converter conv = new Converter("sm7139747", null, listener, flag);
52 // * Test of call method, of class Converter.
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.");
66 // * Test of run method, of class Converter.
69 // public void testRun() {
70 // System.out.println("run");
71 // Converter instance = null;
73 // // TODO review the generated test code and remove the default call to fail.
74 // fail("The test case is a prototype.");
78 // * Test of isConverted method, of class Converter.
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.");
92 // * Test of getStopFlag method, of class Converter.
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.");