@Test(expected = IllegalArgumentException.class) public void testSender_4() { String from = "13621603604"; String[] to = { "13621603604" }; String content = null; MobileMessage message = new MobileMessage(from, to, content); DebugSmsSender sender = new DebugSmsSender(); sender.IS_UNIT_TEST = true; sender.send(message); Assert.assertNull(sender.getMsgHistory(to[0])); }
public String getMsgHistory(String phone) { return msgHistory.get(phone); }
DebugSmsSender extends AbstractSmsSender { public String getMsgHistory(String phone) { return msgHistory.get(phone); } }
DebugSmsSender extends AbstractSmsSender { public String getMsgHistory(String phone) { return msgHistory.get(phone); }  }
DebugSmsSender extends AbstractSmsSender { public String getMsgHistory(String phone) { return msgHistory.get(phone); }  String getMsgHistory(String phone); String removeMsgHistory(String phone); String doSend(String content, String phoneNo, SmsMsgSendType smsMsgSendType); @Override boolean is4Debug(); }
DebugSmsSender extends AbstractSmsSender { public String getMsgHistory(String phone) { return msgHistory.get(phone); }  String getMsgHistory(String phone); String removeMsgHistory(String phone); String doSend(String content, String phoneNo, SmsMsgSendType smsMsgSendType); @Override boolean is4Debug();  }