01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License as published by
09: * the Free Software Foundation; either version 2 of the License, or
10: * (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
20: * USA
21: *
22: *
23: *
24: */
25: package com.bostechcorp.cbesb.migrarion;
26:
27: import java.io.File;
28:
29: import com.bostechcorp.cbesb.migration.x12.X12Support;
30:
31: import junit.framework.TestCase;
32:
33: public class TestSupport extends TestCase {
34: public void testSupport() {
35: long stime, etime;
36: stime = System.currentTimeMillis();
37: System.out.println("run: start=" + stime);
38: File sourceFile = new File("target/test-data/in/zip/003050.zip");
39: File targetFile = new File("target/test-data/out/");
40: X12Support instance = new X12Support();
41: try {
42: instance.transform(sourceFile, targetFile, false);
43: } catch (Exception ex) {
44: System.err.println(ex.getMessage());
45:
46: }
47: System.out.println("done");
48: etime = System.currentTimeMillis();
49: System.out.println("run : end=" + etime + " elapsed="
50: + (etime - stime));
51: }
52: }
|