/**
 * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package itesla.test;

import itesla.converter.Converter;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class iTesla {
	private static Converter converter;
	private static Converter converter_init;
	private static final String pathFRM;
	private static final String pathOUT;

	public static void main(String[] args) throws IOException {
		pathFRM = args[1];
		pathOUT = args[2];
		converter = new Converter(pathFRM, pathOUT, false);
		converter_init = new Converter(pathFRM, pathOUT, true);
		try {
			converter.convert2MO();
			//converter.printLinkNames();
			converter_init.convert2MO();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		/*
		 * Function that returns all the sets of parameters in a hashmap.
		 * The key of this hashmap is the reference id of the parameters set.
		 * The value of this hashmap is another hashmap wih the name of the parameter and its value
		 */
		HashMap<Integer, HashMap<String, String>> allParameterSets = converter.parData.getParameters();
		
		/*
		 * Function that returns a specific set of parameters given by its reference id
		 */
		Integer idSet = 1;
		HashMap<String, String> nthParameterSet = converter.parData.getSetParameters(idSet);
		
		for (Map.Entry<String, String> entry : nthParameterSet.entrySet()) {
			System.out.println(entry.getKey() + "; " + entry.getValue());
		}
		
		HashMap<String, String> interfaceVariables = converter.getInterfaceVariables();
		for (Map.Entry<String, String> entry : interfaceVariables.entrySet()) {
			System.out.println(entry.getKey() + "; " + entry.getValue());
		}
		
		List<String> init_friParameters = converter.getInit_friParameters();
		for (String initParameter : init_friParameters) {
			System.out.println(initParameter);
		}
		
		System.out.println("-------------------");
		List<String> init_InterfaceParameters = converter.getInit_InterfaceParameters();
		for (String initInterfaceParameter : init_InterfaceParameters) {
			System.out.println(initInterfaceParameter);
		}
		System.out.println("THE END");		
	}
}

@@ -460,16 +460,38 @@
 il.Map;%0A
+import org.junit.Test;
 %0A%0Apublic
@@ -589,123 +589,34 @@
 it;%0A
-%09private static final String pathFRM;%0A%09private static final String pathOUT;%0A%0A%09public static void main(String%5B%5D args
+%0A%09@Test%0A%09public void test(
 ) th
@@ -636,16 +636,23 @@
 ion %7B%0A%09%09
+String 
 pathFRM 
@@ -657,36 +657,123 @@
 M = 
-args%5B1%5D;%0A%09%09pathOUT = args%5B2%5D
+getClass().getResource(%22/edftur1c.frm%22).toString();%0A%09%09String pathOUT = getClass().getResource(%22/output%22).toString()
 ;%0A%09%09
@@ -921,41 +921,8 @@
 ();%0A
-%09%09%09//converter.printLinkNames();%0A
 %09%09%09c
@@ -1017,354 +1017,8 @@
 %09/*%0A
-%09%09 * Function that returns all the sets of parameters in a hashmap.%0A%09%09 * The key of this hashmap is the reference id of the parameters set.%0A%09%09 * The value of this hashmap is another hashmap wih the name of the parameter and its value%0A%09%09 */%0A%09%09HashMap%3CInteger, HashMap%3CString, String%3E%3E allParameterSets = converter.parData.getParameters();%0A%09%09%0A%09%09/*%0A
 %09%09 *

Remove hard-coded pathes