Compare commits

...

2 Commits

Author SHA1 Message Date
wangsiyuan 2834117f0f 更新 QyWeChatAppInfoMapperTest.java 2023-12-12 18:43:59 +08:00
wangsiyuan e1ea384d94 更新 WeChatMsgTest.java 2023-12-12 18:43:56 +08:00
2 changed files with 7 additions and 7 deletions

View File

@ -15,6 +15,7 @@ public class QyWeChatAppInfoMapperTest {
@Autowired
private QyWeChatAppInfoMapper qyWeChatAppInfoMapper;
@Test
public void testSelect() {
System.out.println(("----- select by id test ------"));
@ -41,12 +42,11 @@ public class QyWeChatAppInfoMapperTest {
System.out.println("Test complete");
}
@Test
public void testAllColum(){
for (int i = 1; i < 12; i++) {
QyWeChatAppInfo qyWeChatAppInfo = qyWeChatAppInfoMapper.selectById(i);
PhoneNumberValidation phoneNumberValidation = new PhoneNumberValidation();
phoneNumberValidation.isValidPhoneNumber(qyWeChatAppInfo.getPhoneNumber());
}
public void testAllColum() {
QyWeChatAppInfo qyWeChatAppInfo = qyWeChatAppInfoMapper.selectById(1);
PhoneNumberValidation phoneNumberValidation = new PhoneNumberValidation();
phoneNumberValidation.isValidPhoneNumber(qyWeChatAppInfo.getPhoneNumber());
}
}

View File

@ -13,7 +13,7 @@ class WeChatMsgTest {
weChatMsg.setTitle("Example Title");
weChatMsg.setSender("Example Sender");
weChatMsg.setMessage("Example Message");
weChatMsg.setCurrentTime("2023-12-12 18:43:04");
assertFalse(weChatMsg.isInvalid(), "WeChatMsg should be valid when all fields are valid.");
}