Package com.alibaba.json.bvt.asm

Source Code of com.alibaba.json.bvt.asm.TestNonASM

package com.alibaba.json.bvt.asm;

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

import com.alibaba.fastjson.parser.ParserConfig;

public class TestNonASM extends TestCase {

    public void test_no_asm() throws Exception {
        ParserConfig mapping = new ParserConfig();
       
        mapping.setAsmEnable(false);
        Assert.assertEquals(false, mapping.isAsmEnable());
       
        mapping.setAsmEnable(true);
        Assert.assertEquals(true, mapping.isAsmEnable());
    }
   
    public void test_error() throws Exception {
       
    }
}
TOP

Related Classes of com.alibaba.json.bvt.asm.TestNonASM

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.