/**
 * *****************************************************************************
 * Copyright 2012-2013 University of Trento - Department of Information
 * Engineering and Computer Science (DISI)
 *
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the GNU Lesser General Public License (LGPL)
 * version 2.1 which accompanies this distribution, and is available at
 *
 * http://www.gnu.org/licenses/lgpl-2.1.html
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 *****************************************************************************
 */

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.unitn.disi.smatch.test;

import it.unitn.disi.common.components.ConfigurableException;
import it.unitn.disi.smatch.MatchManager;
import it.unitn.disi.smatch.SMatchException;
import java.io.FileNotFoundException;
import java.io.IOException;
import junit.framework.TestCase;

/**
 * @author Moaz Reyad <reyad@disi.unitn.it>
 * @date Jul 11, 2013
 */
public class TestSimpleMatch extends TestCase {

    public TestSimpleMatch() {
        super("Test S-Match");
    }

    public void testSMatch() throws SMatchException, FileNotFoundException, 
            ConfigurableException, IOException, ClassNotFoundException {
        
        String[] convertC = {"convert", "test-data\\cw\\c.txt",
            "test-data\\cw\\c.xml", "-config=src\\main\\resources\\conf\\s-match-Tab2XML.properties"};

        String[] convertW = {"convert", "test-data\\cw\\w.txt",
            "test-data\\cw\\w.xml", "-config=src\\main\\resources\\conf\\s-match-Tab2XML.properties"};

        String[] offlineC = {"offline", "test-data\\cw\\c.xml",
            "test-data\\cw\\c.xml"};

        String[] offlineW = {"offline", "test-data\\cw\\w.xml",
            "test-data\\cw\\w.xml"};
        
        String[] online = {"online", "test-data\\cw\\c.xml",
            "test-data\\cw\\w.xml","test-data\\cw\\result-cw.txt"};

        MatchManager.main(convertC);
        MatchManager.main(convertW);

        MatchManager.main(offlineC);
        MatchManager.main(offlineW);
        
        MatchManager.main(online);
    }
}

@@ -1539,32 +1539,39 @@
 ption %7B%0A        
+       
 %0A        String%5B
@@ -1605,22 +1605,20 @@
 est-data
-%5C%5Ccw%5C%5C
+/cw/
 c.txt%22,%0A
@@ -1635,30 +1635,28 @@
   %22test-data
-%5C%5Ccw%5C%5C
+/cw/
 c.xml%22, %22-co
@@ -1659,32 +1659,30 @@
 %22-config=src
-%5C%5C
+/
 main
-%5C%5C
+/
 resources%5C%5Cc
@@ -1674,32 +1674,30 @@
 in/resources
-%5C%5C
+/
 conf
-%5C%5C
+/
 s-match-Tab2
@@ -1765,22 +1765,20 @@
 est-data
-%5C%5Ccw%5C%5C
+/cw/
 w.txt%22,%0A
@@ -1795,30 +1795,28 @@
   %22test-data
-%5C%5Ccw%5C%5C
+/cw/
 w.xml%22, %22-co
@@ -1827,16 +1827,14 @@
 =src
-%5C%5C
+/
 main
-%5C%5C
+/
 reso
@@ -1842,16 +1842,14 @@
 rces
-%5C%5C
+/
 conf
-%5C%5C
+/
 s-ma
@@ -1917,38 +1917,36 @@
 ine%22, %22test-data
-%5C%5Ccw%5C%5C
+/cw/
 c.xml%22,%0A        
@@ -1955,30 +1955,28 @@
   %22test-data
-%5C%5Ccw%5C%5C
+/cw/
 c.xml%22%7D;%0A%0A  
@@ -2019,30 +2019,28 @@
 , %22test-data
-%5C%5Ccw%5C%5C
+/cw/
 w.xml%22,%0A    
@@ -2053,30 +2053,28 @@
   %22test-data
-%5C%5Ccw%5C%5C
+/cw/
 w.xml%22%7D;%0A   
@@ -2126,22 +2126,20 @@
 est-data
-%5C%5Ccw%5C%5C
+/cw/
 c.xml%22,%0A
@@ -2160,22 +2160,20 @@
 est-data
-%5C%5Ccw%5C%5C
+/cw/
 w.xml%22,%22
@@ -2185,14 +2185,12 @@
 data
-%5C%5Ccw%5C%5C
+/cw/
 resu

Use Unix directory separator in unit test.