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

Examples of com.alibaba.fastjson.support.odps.udf.JSONArrayAdd


import com.alibaba.fastjson.support.odps.udf.JSONArrayAdd;


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);
    }
View Full Code Here


        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();
       
        String text = udf.evaluate("[]", "$", 1D, 2D);
        Assert.assertEquals("[1,2]", text);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.fastjson.support.odps.udf.JSONArrayAdd

Copyright © 2018 www.massapicom. 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.