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

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


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


    }
   
    public void test_double() throws Exception {
        JSONArrayAdd udf = new JSONArrayAdd();
       
        String text = udf.evaluate("[]", "$", 1D, 2D);
        Assert.assertEquals("[1,2]", 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.