Revision 44397 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/TestEvaluatePage.java

View differences:

TestEvaluatePage.java
41 41
    public void testSimple1() {
42 42
        
43 43
        SymbolTable symbolTable = createSymbolTable();
44
        String s = ExpressionUtils.evaluatePage(symbolTable, "el precion es <%=precio%>");
44
        String s = ExpressionUtils.evaluateDynamicText(symbolTable, "el precion es <%=precio%>");
45 45

  
46 46
        assertEquals("el precion es 200", s);
47 47
    }
48 48
    
49 49
    public void testSimple2() {
50
        String s = ExpressionUtils.evaluatePage("el home es <%=HOME()%>");
50
        String s = ExpressionUtils.evaluateDynamicText("el home es <%=HOME()%>");
51 51

  
52 52
        assertEquals("el home es "+ToolsLocator.getFoldersManager().getHome().toString(), s);
53 53
    }
54 54

  
55 55
    public void testSimple3() {
56
        String s = ExpressionUtils.evaluatePage("un fichero temporal <%=UNIQUETEMPORARYFILE('nombre.txt')%>");
56
        String s = ExpressionUtils.evaluateDynamicText("un fichero temporal <%=UNIQUETEMPORARYFILE('nombre.txt')%>");
57 57
        
58 58
        // El resultado viene a ser algo como:
59 59
        //   "un fichero temporal /tmp/tmp-gvsig/nombre-1-16d2f3e4f44.txt"
......
65 65
    public void test1() {
66 66
        
67 67
        SymbolTable symbolTable = createSymbolTable();
68
        String s = ExpressionUtils.evaluatePage(symbolTable, "el precion es <%=precio%> y PI*100 es <%=TOINTEGER(PI*100)%>");
68
        String s = ExpressionUtils.evaluateDynamicText(symbolTable, "el precion es <%=precio%> y PI*100 es <%=TOINTEGER(PI*100)%>");
69 69

  
70 70
        assertEquals("el precion es 200 y PI*100 es 314", s);
71 71
    }

Also available in: Unified diff