@Test public void testTextMassGroupMessageSend() throws WxErrorException { WxMpMassTagMessage massMessage = new WxMpMassTagMessage(); massMessage.setMsgType(WxConsts.MassMsgType.TEXT); massMessage.setContent("测试群发消息\n欢迎欢迎，热烈欢迎\n换行测试\n超链接:<a href=\"http: massMessage .setTagId(this.wxService.getUserTagService().tagGet().get(0).getId()); WxMpMassSendResult massResult = this.wxService.getMassMessageService() .massGroupMessageSend(massMessage); assertNotNull(massResult); assertNotNull(massResult.getMsgId()); }
@Override public WxMpMassSendResult massGroupMessageSend(WxMpMassTagMessage message) throws WxErrorException { String responseContent = this.wxMpService.post(WxMpMassMessageService.MESSAGE_MASS_SENDALL_URL, message.toJson()); return WxMpMassSendResult.fromJson(responseContent); }
WxMpMassMessageServiceImpl implements WxMpMassMessageService { @Override public WxMpMassSendResult massGroupMessageSend(WxMpMassTagMessage message) throws WxErrorException { String responseContent = this.wxMpService.post(WxMpMassMessageService.MESSAGE_MASS_SENDALL_URL, message.toJson()); return WxMpMassSendResult.fromJson(responseContent); } }
WxMpMassMessageServiceImpl implements WxMpMassMessageService { @Override public WxMpMassSendResult massGroupMessageSend(WxMpMassTagMessage message) throws WxErrorException { String responseContent = this.wxMpService.post(WxMpMassMessageService.MESSAGE_MASS_SENDALL_URL, message.toJson()); return WxMpMassSendResult.fromJson(responseContent); } WxMpMassMessageServiceImpl(WxMpService wxMpService); }
WxMpMassMessageServiceImpl implements WxMpMassMessageService { @Override public WxMpMassSendResult massGroupMessageSend(WxMpMassTagMessage message) throws WxErrorException { String responseContent = this.wxMpService.post(WxMpMassMessageService.MESSAGE_MASS_SENDALL_URL, message.toJson()); return WxMpMassSendResult.fromJson(responseContent); } WxMpMassMessageServiceImpl(WxMpService wxMpService); @Override WxMpMassUploadResult massNewsUpload(WxMpMassNews news); @Override WxMpMassUploadResult massVideoUpload(WxMpMassVideo video); @Override WxMpMassSendResult massGroupMessageSend(WxMpMassTagMessage message); @Override WxMpMassSendResult massOpenIdsMessageSend(WxMpMassOpenIdsMessage message); @Override WxMpMassSendResult massMessagePreview(WxMpMassPreviewMessage wxMpMassPreviewMessage); @Override void delete(Long msgId, Integer articleIndex); }
WxMpMassMessageServiceImpl implements WxMpMassMessageService { @Override public WxMpMassSendResult massGroupMessageSend(WxMpMassTagMessage message) throws WxErrorException { String responseContent = this.wxMpService.post(WxMpMassMessageService.MESSAGE_MASS_SENDALL_URL, message.toJson()); return WxMpMassSendResult.fromJson(responseContent); } WxMpMassMessageServiceImpl(WxMpService wxMpService); @Override WxMpMassUploadResult massNewsUpload(WxMpMassNews news); @Override WxMpMassUploadResult massVideoUpload(WxMpMassVideo video); @Override WxMpMassSendResult massGroupMessageSend(WxMpMassTagMessage message); @Override WxMpMassSendResult massOpenIdsMessageSend(WxMpMassOpenIdsMessage message); @Override WxMpMassSendResult massMessagePreview(WxMpMassPreviewMessage wxMpMassPreviewMessage); @Override void delete(Long msgId, Integer articleIndex);  }