Browse Source

fix test case

master
Binary Wang 7 years ago
committed by Binary Wang
parent
commit
3a2c0f3864
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaMsgServiceImplTest.java

+ 2
- 6
weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaMsgServiceImplTest.java View File

@@ -9,9 +9,7 @@ import com.google.common.collect.Lists;
import com.google.inject.Inject; import com.google.inject.Inject;
import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.common.exception.WxErrorException; import me.chanjar.weixin.common.exception.WxErrorException;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import org.testng.annotations.*;


import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
@@ -68,9 +66,7 @@ public class WxMaMsgServiceImplTest {
.emphasisKeyword("keyword1.DATA") .emphasisKeyword("keyword1.DATA")
.build(); .build();


String msgId = this.wxService.getMsgService().sendTemplateMsg(templateMessage);
Assert.assertNotNull(msgId);
System.out.println(msgId);
this.wxService.getMsgService().sendTemplateMsg(templateMessage);
} }


} }

Loading…
Cancel
Save