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 @ 44098
History | View | Annotate | Download (1.12 KB)
1 |
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 |
import org.gvsig.expressionevaluator.impl.function.numeric.ACosFunction; |
8 |
import org.gvsig.expressionevaluator.impl.function.spatial.STAreaFunction; |
9 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
10 |
|
11 |
/**
|
12 |
*
|
13 |
* @author jjdelcerro
|
14 |
*/
|
15 |
public class TestLoadResource extends TestCase { |
16 |
|
17 |
public TestLoadResource(String testName) { |
18 |
super(testName);
|
19 |
} |
20 |
|
21 |
@Override
|
22 |
protected void setUp() throws Exception { |
23 |
super.setUp();
|
24 |
new DefaultLibrariesInitializer().fullInitialize();
|
25 |
} |
26 |
|
27 |
@Override
|
28 |
protected void tearDown() throws Exception { |
29 |
super.tearDown();
|
30 |
} |
31 |
|
32 |
// TODO add test methods here. The name must begin with 'test'. For example:
|
33 |
// public void testHello() {}
|
34 |
|
35 |
public void testFunctionExpression1() { |
36 |
Function fn = new STAreaFunction();
|
37 |
assertEquals("ST_Area({{geometry}})", fn.template());
|
38 |
} |
39 |
} |