Statistics
| Revision:

svn-gvsig-desktop / 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 / TestLoadResource.java @ 44006

History | View | Annotate | Download (1.06 KB)

1 43989 jjdelcerro
package org.gvsig.expresionevaluator.impl;
2
3
import static junit.framework.Assert.assertEquals;
4
import junit.framework.TestCase;
5
import org.gvsig.expressionevaluator.impl.ExpressionEvaluatorImplLibrary;
6
import org.gvsig.expressionevaluator.Function;
7 44006 jjdelcerro
import org.gvsig.expressionevaluator.impl.function.numeric.ACosFunction;
8
import org.gvsig.expressionevaluator.impl.function.spatial.STAreaFunction;
9 43989 jjdelcerro
10
/**
11
 *
12
 * @author jjdelcerro
13
 */
14 44006 jjdelcerro
public class TestLoadResource extends TestCase {
15 43989 jjdelcerro
16 44006 jjdelcerro
    public TestLoadResource(String testName) {
17 43989 jjdelcerro
        super(testName);
18
    }
19
20
    @Override
21
    protected void setUp() throws Exception {
22
        super.setUp();
23
        new ExpressionEvaluatorImplLibrary().initialize();
24
    }
25
26
    @Override
27
    protected void tearDown() throws Exception {
28
        super.tearDown();
29
    }
30
31
    // TODO add test methods here. The name must begin with 'test'. For example:
32
    // public void testHello() {}
33
34
    public void testFunctionExpression1() {
35 44006 jjdelcerro
        Function fn = new STAreaFunction();
36
        assertEquals("ST_Area({{geometry}})", fn.template());
37 43989 jjdelcerro
    }
38
}