View Javadoc
1   package com.foxinmy.weixin4j.wxa.api;
2   
3   import static org.junit.Assert.assertTrue;
4   
5   import org.junit.Test;
6   
7   import com.alibaba.fastjson.JSON;
8   
9   public class WxaQrCodeParameterTest {
10  
11  	@Test
12  	public void test() {
13  		WxaQrCodeParameter param = new WxaQrCodeParameter("myPath", 100);
14  		String json = JSON.toJSONString(param);
15  		assertTrue(json.contains("\"path\":\"myPath\""));
16  		assertTrue(json.contains("\"width\":100"));
17  	}
18  
19  }