Package com.alibaba.fastjson.support.odps.udf

Examples of com.alibaba.fastjson.support.odps.udf.JSONSet.evaluate()


public class JSONSetTest extends TestCase {
    public void test_udf() throws Exception {
        JSONSet udf = new JSONSet();
       
        String text = udf.evaluate("[0,1,2]", "$[1]", new Long(123));
        Assert.assertEquals("[0,123,2]", text);
    }
   
    public void test_double() throws Exception {
        JSONSet udf = new JSONSet();
View Full Code Here


    }
   
    public void test_double() throws Exception {
        JSONSet udf = new JSONSet();
       
        String text = udf.evaluate("[1,2,3]", "[0]", 123.2D);
        Assert.assertEquals("[123.2,2,3]", text);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.