1
0
mirror of synced 2025-12-23 18:48:00 +08:00

添加获得模板ID的接口方法实现 for issue #63

This commit is contained in:
Binary Wang
2016-10-17 23:43:31 +08:00
parent 77db3c2dae
commit d7298ab790
3 changed files with 41 additions and 6 deletions

View File

@@ -1,18 +1,20 @@
package me.chanjar.weixin.mp.api.impl;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import com.google.inject.Inject;
import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.api.ApiTestModule;
import me.chanjar.weixin.mp.api.WxXmlMpInMemoryConfigStorage;
import me.chanjar.weixin.mp.bean.WxMpIndustry;
import me.chanjar.weixin.mp.bean.WxMpTemplateData;
import me.chanjar.weixin.mp.bean.WxMpTemplateMessage;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* <pre>
@@ -56,4 +58,11 @@ public class WxMpTemplateMsgServiceImplTest {
Assert.assertTrue(result);
}
@Test
public void testAddTemplate() throws Exception {
String result = this.wxService.getTemplateMsgService().addTemplate("TM00015");
Assert.assertNotNull(result);
System.err.println(result);
}
}