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

添加删除模板的接口方法实现 for issue #63

This commit is contained in:
Binary Wang
2016-10-18 18:29:43 +08:00
parent 550bbe3d1b
commit acc129111a
3 changed files with 45 additions and 15 deletions

View File

@@ -1,15 +1,6 @@
package me.chanjar.weixin.mp.api.impl;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
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;
@@ -17,6 +8,13 @@ import me.chanjar.weixin.mp.bean.template.WxMpTemplate;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateData;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateIndustry;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* <pre>
@@ -74,4 +72,11 @@ public class WxMpTemplateMsgServiceImplTest {
System.err.println(result);
}
@Test
public void testDelPrivateTemplate() throws Exception {
String templateId = "RPcTe7-4BkU5A2J3imC6W0b4JbjEERcJg0whOMKJKIc";
boolean result = this.wxService.getTemplateMsgService().delPrivateTemplate(templateId);
Assert.assertTrue(result);
}
}