@Test(dataProvider = "massMessages") public void testMediaMassGroupMessageSend(String massMsgType, String mediaId) throws WxErrorException { WxMpMassTagMessage massMessage = new WxMpMassTagMessage(); massMessage.setMsgType(massMsgType); massMessage.setMediaId(mediaId); 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);  }