### Question:
EnterpriseWeChatUtils { public static String markdownByAlert(AlertData alert) { String result = ""; if (alert.getShowType().equals(ShowType.TABLE.getDescp())) { result = markdownTable(alert.getTitle(), alert.getContent()); } else if (alert.getShowType().equals(ShowType.TEXT.getDescp())) { result = markdownText(alert.getTitle(), alert.getContent()); } return result; }  static boolean isEnable(); static String getToken(); static String makeTeamSendMsg(String toParty, String agentId, String msg); static String makeTeamSendMsg(Collection<String> toParty, String agentId, String msg); static String makeUserSendMsg(String toUser, String agentId, String msg); static String makeUserSendMsg(Collection<String> toUser, String agentId, String msg); static String sendEnterpriseWeChat(String charset, String data, String token); static String markdownTable(String title, String content); static String markdownText(String title, String content); static String markdownByAlert(AlertData alert); static final Logger logger; static final String ENTERPRISE_WE_CHAT_AGENT_ID; static final String ENTERPRISE_WE_CHAT_USERS; }### Answer:
@Test public void testMarkdownByAlertForText() { Alert alertForText = createAlertForText(); AlertData alertData = new AlertData(); alertData.setTitle(alertForText.getTitle()) .setShowType(alertForText.getShowType().getDescp()) .setContent(alertForText.getContent()); String result = EnterpriseWeChatUtils.markdownByAlert(alertData); Assert.assertNotNull(result); }
@Test public void testMarkdownByAlertForTable() { Alert alertForText = createAlertForTable(); AlertData alertData = new AlertData(); alertData.setTitle(alertForText.getTitle()) .setShowType(alertForText.getShowType().getDescp()) .setContent(alertForText.getContent()); String result = EnterpriseWeChatUtils.markdownByAlert(alertData); Assert.assertNotNull(result); }