summaryrefslogtreecommitdiffstats
path: root/contrib/java/src/org/uscxml/tests/TestW3CECMA.java
blob: 2b2a36e378f01d152d2e04909cd92280a1ad14cd (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
34
35
package org.uscxml.tests;

import java.io.File;

import org.uscxml.Factory;
import org.uscxml.Interpreter;
import org.uscxml.datamodel.ecmascript.ECMAScriptDataModel;

public class TestW3CECMA {

	public static String testDir = "/Users/sradomski/Documents/TK/Code/uscxml/test/w3c/ecma";
	
	public static void main(String[] args) {
		System.load("/Users/sradomski/Documents/TK/Code/uscxml/build/cli/lib/libuscxmlNativeJava64.jnilib");

		ECMAScriptDataModel datamodel = new ECMAScriptDataModel();
		Factory.getInstance().registerDataModel(datamodel);

    	Interpreter interpreter = Interpreter.fromURI("/Users/sradomski/Documents/TK/Code/uscxml/test/w3c/ecma/test176.scxml");
    	interpreter.interpret();
    	System.exit(0);
		
//		File dir = new File(testDir);
//		File[] filesList = dir.listFiles();
//		for (File file : filesList) {
//		    if (file.isFile() && file.getName().endsWith(".scxml")) {
//		    	System.out.println("### " + file.getName() + " #####");
//		    	Interpreter interpreter = Interpreter.fromURI(file.getAbsolutePath());
//		    	interpreter.interpret();
//		    }
//		}

	}

}