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 @ 44619
History | View | Annotate | Download (1.12 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 | 44098 | jjdelcerro | import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
10 | 43989 | jjdelcerro | |
11 | /**
|
||
12 | *
|
||
13 | * @author jjdelcerro
|
||
14 | */
|
||
15 | 44006 | jjdelcerro | public class TestLoadResource extends TestCase { |
16 | 43989 | jjdelcerro | |
17 | 44006 | jjdelcerro | public TestLoadResource(String testName) { |
18 | 43989 | jjdelcerro | super(testName);
|
19 | } |
||
20 | |||
21 | @Override
|
||
22 | protected void setUp() throws Exception { |
||
23 | super.setUp();
|
||
24 | 44098 | jjdelcerro | new DefaultLibrariesInitializer().fullInitialize();
|
25 | 43989 | jjdelcerro | } |
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 | 44006 | jjdelcerro | Function fn = new STAreaFunction();
|
37 | assertEquals("ST_Area({{geometry}})", fn.template());
|
||
38 | 43989 | jjdelcerro | } |
39 | } |