use of com.alibaba.fastjson.support.spring.FastjsonSockJsMessageCodec in project fastjson by alibaba.
the class FastjsonSockJsMessageCodecTest_encode method test_encode.
public void test_encode() throws Exception {
FastjsonSockJsMessageCodec fastjsonCodec = new FastjsonSockJsMessageCodec();
Jackson2SockJsMessageCodec jacksonCodec = new Jackson2SockJsMessageCodec();
String v0 = "a0\"\0", v1 = "a1";
String fastjsonResult = fastjsonCodec.encode(v0, v1);
String jacksonResult = jacksonCodec.encode(v0, v1);
Assert.assertEquals(jacksonResult, fastjsonResult);
}
Aggregations