Package com.alibaba.json.bvt.serializer

Source Code of com.alibaba.json.bvt.serializer.SerialContextTest

package com.alibaba.json.bvt.serializer;

import junit.framework.Assert;
import junit.framework.TestCase;

import com.alibaba.fastjson.serializer.SerialContext;


public class SerialContextTest extends TestCase {
    public void test_context() throws Exception {
        SerialContext root = new SerialContext(null, null, null);
        SerialContext context = new SerialContext(root, null, "x");
        Assert.assertEquals("x", context.getFieldName());
        Assert.assertEquals("$.x", context.toString());
    }
}
TOP

Related Classes of com.alibaba.json.bvt.serializer.SerialContextTest

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.