Revision 44592 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.lib/org.gvsig.expressionevaluator.lib.impl/src/test/java/org/gvsig/expresionevaluator/impl/TestScript1.java

View differences:

TestScript1.java
4 4
import junit.framework.TestCase;
5 5
import org.apache.commons.io.IOUtils;
6 6
import org.apache.commons.lang3.StringUtils;
7
import org.gvsig.expressionevaluator.Expression;
8 7
import org.gvsig.expressionevaluator.ExpressionEvaluatorLocator;
9 8
import org.gvsig.expressionevaluator.ExpressionEvaluatorManager;
10 9
import org.gvsig.expressionevaluator.impl.javascripting.CosaScriptEngineFactory;
......
31 30
    // TODO add test methods here. The name must begin with 'test'. For example:
32 31
    // public void testHello() {}
33 32
    public void testScript1() throws Exception {
34
        InputStream is = this.getClass().getResource("/org/gvsig/expressionevaluator/impl/TestScript1_1.txt").openStream();
33
        InputStream is = this.getClass().getResource("/org/gvsig/expressionevaluator/impl/TestScript1_1."+CosaScriptEngineFactory.LANGUAGE_NAME).openStream();
35 34
        String source = StringUtils.join(IOUtils.readLines(is), "\n");
36 35
        ExpressionEvaluatorManager manager = ExpressionEvaluatorLocator.getManager();
37 36

  
......
51 50
    }
52 51

  
53 52
    public void testScript2() throws Exception {
54
        InputStream is = this.getClass().getResource("/org/gvsig/expressionevaluator/impl/TestScript1_2.txt").openStream();
53
        InputStream is = this.getClass().getResource("/org/gvsig/expressionevaluator/impl/TestScript1_2."+CosaScriptEngineFactory.LANGUAGE_NAME).openStream();
55 54
        String source = StringUtils.join(IOUtils.readLines(is), "\n");
56 55
        ExpressionEvaluatorManager manager = ExpressionEvaluatorLocator.getManager();
57 56

  
......
72 71
    }
73 72

  
74 73
    public void testScript3() throws Exception {
75
        InputStream is = this.getClass().getResource("/org/gvsig/expressionevaluator/impl/TestScript1_2.txt").openStream();
74
        InputStream is = this.getClass().getResource("/org/gvsig/expressionevaluator/impl/TestScript1_2."+CosaScriptEngineFactory.LANGUAGE_NAME).openStream();
76 75
        String source = StringUtils.join(IOUtils.readLines(is), "\n");
77 76
        ExpressionEvaluatorManager manager = ExpressionEvaluatorLocator.getManager();
78 77

  

Also available in: Unified diff