Package com.alibaba.json.bvt.serializer.jsonp

Source Code of com.alibaba.json.bvt.serializer.jsonp.JSONPObjectTest

package com.alibaba.json.bvt.serializer.jsonp;

import java.util.ArrayList;
import java.util.HashMap;

import junit.framework.TestCase;

import org.junit.Assert;

import com.alibaba.fastjson.JSONPObject;


public class JSONPObjectTest extends TestCase {
    public void test_jsonp() throws Exception {
        JSONPObject jsonp = new JSONPObject("checkValid");
        jsonp.addParameter(new HashMap<String, Object>());
        jsonp.addParameter(new ArrayList<Object>());
       
        String text = jsonp.toString();
       
        Assert.assertEquals("checkValid({},[])", text);
    }
}
TOP

Related Classes of com.alibaba.json.bvt.serializer.jsonp.JSONPObjectTest

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.