1 package com.foxinmy.weixin4j.wxa.api;
2
3 import static org.junit.Assert.assertEquals;
4
5 import org.junit.Test;
6
7 import com.alibaba.fastjson.JSON;
8
9 public class AddTemplateParameterTest {
10
11 @Test
12 public void test() {
13 AddTemplateParameter param = new AddTemplateParameter("AT0002", new int[] { 3, 4, 5 });
14 String json = JSON.toJSONString(param);
15 assertEquals("{\"id\":\"AT0002\",\"keyword_id_list\":[3,4,5]}", json);
16 }
17
18 }