|  |  | @@ -4,6 +4,7 @@ import com.google.inject.Inject; | 
		
	
		
			
			|  |  |  | import me.chanjar.weixin.common.api.WxConsts; | 
		
	
		
			
			|  |  |  | import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; | 
		
	
		
			
			|  |  |  | import me.chanjar.weixin.common.exception.WxErrorException; | 
		
	
		
			
			|  |  |  | import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; | 
		
	
		
			
			|  |  |  | import me.chanjar.weixin.mp.bean.WxMpMassGroupMessage; | 
		
	
		
			
			|  |  |  | import me.chanjar.weixin.mp.bean.WxMpMassNews; | 
		
	
		
			
			|  |  |  | import me.chanjar.weixin.mp.bean.WxMpMassOpenIdsMessage; | 
		
	
	
		
			
				|  |  | @@ -33,7 +34,7 @@ public class WxMpMassMessageAPITest { | 
		
	
		
			
			|  |  |  | @Test | 
		
	
		
			
			|  |  |  | public void testTextMassOpenIdsMessageSend() throws WxErrorException { | 
		
	
		
			
			|  |  |  | // 发送群发消息 | 
		
	
		
			
			|  |  |  | ApiTestModule.WxXmlMpInMemoryConfigStorage configProvider = (ApiTestModule.WxXmlMpInMemoryConfigStorage) wxService.wxMpConfigStorage; | 
		
	
		
			
			|  |  |  | ApiTestModule.WxXmlMpInMemoryConfigStorage configProvider = (ApiTestModule.WxXmlMpInMemoryConfigStorage) wxService.getWxMpConfigStorage(); | 
		
	
		
			
			|  |  |  | WxMpMassOpenIdsMessage massMessage = new WxMpMassOpenIdsMessage(); | 
		
	
		
			
			|  |  |  | massMessage.setMsgType(WxConsts.MASS_MSG_TEXT); | 
		
	
		
			
			|  |  |  | massMessage.setContent("测试群发消息\n欢迎欢迎,热烈欢迎\n换行测试\n超链接:<a href=\"http://www.baidu.com\">Hello World</a>"); | 
		
	
	
		
			
				|  |  | @@ -47,7 +48,7 @@ public class WxMpMassMessageAPITest { | 
		
	
		
			
			|  |  |  | @Test(dataProvider="massMessages") | 
		
	
		
			
			|  |  |  | public void testMediaMassOpenIdsMessageSend(String massMsgType, String mediaId) throws WxErrorException, IOException { | 
		
	
		
			
			|  |  |  | // 发送群发消息 | 
		
	
		
			
			|  |  |  | ApiTestModule.WxXmlMpInMemoryConfigStorage configProvider = (ApiTestModule.WxXmlMpInMemoryConfigStorage) wxService.wxMpConfigStorage; | 
		
	
		
			
			|  |  |  | ApiTestModule.WxXmlMpInMemoryConfigStorage configProvider = (ApiTestModule.WxXmlMpInMemoryConfigStorage) wxService.getWxMpConfigStorage(); | 
		
	
		
			
			|  |  |  | WxMpMassOpenIdsMessage massMessage = new WxMpMassOpenIdsMessage(); | 
		
	
		
			
			|  |  |  | massMessage.setMsgType(massMsgType); | 
		
	
		
			
			|  |  |  | massMessage.setMediaId(mediaId); | 
		
	
	
		
			
				|  |  | 
 |