summaryrefslogtreecommitdiffstats
path: root/collaboration/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/src/test/java/org/apache/tuscany/sca/diagram/layout/DiagramGeneratorTestCase.java
blob: ee0feb86bbb424a3b7b8c021b48ab791d3db0cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**********************************************************************
 * NAME:
 *   DiagramGeneratorTestCase
 *
 * AUTHOR:
 *   rfeng
 *
 * DESCRIPTION:
 *   
 *
 * Copyright (c) Shutterfly, Inc. 2010. All Rights reserved.
 **********************************************************************/

package org.apache.tuscany.sca.diagram.layout;

import java.io.File;

import org.apache.tuscany.sca.diagram.main.Main;
import org.junit.Test;

public class DiagramGeneratorTestCase {

    @Test
    public final void test() throws Exception {
        for (File xml : new File("input").listFiles()) {
            if (xml.getName().endsWith(".xml")) {
                System.out.println(xml);
                Main.generate(new File("target"), true, false, false, xml.toString());
            }
        }
    }

}