Compare commits
2 Commits
e1db480067
...
2834117f0f
| Author | SHA1 | Date | |
|---|---|---|---|
| 2834117f0f | |||
| e1ea384d94 |
@@ -15,6 +15,7 @@ public class QyWeChatAppInfoMapperTest {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private QyWeChatAppInfoMapper qyWeChatAppInfoMapper;
|
private QyWeChatAppInfoMapper qyWeChatAppInfoMapper;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSelect() {
|
public void testSelect() {
|
||||||
System.out.println(("----- select by id test ------"));
|
System.out.println(("----- select by id test ------"));
|
||||||
@@ -41,12 +42,11 @@ public class QyWeChatAppInfoMapperTest {
|
|||||||
|
|
||||||
System.out.println("Test complete");
|
System.out.println("Test complete");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAllColum(){
|
public void testAllColum() {
|
||||||
for (int i = 1; i < 12; i++) {
|
QyWeChatAppInfo qyWeChatAppInfo = qyWeChatAppInfoMapper.selectById(1);
|
||||||
QyWeChatAppInfo qyWeChatAppInfo = qyWeChatAppInfoMapper.selectById(i);
|
PhoneNumberValidation phoneNumberValidation = new PhoneNumberValidation();
|
||||||
PhoneNumberValidation phoneNumberValidation = new PhoneNumberValidation();
|
phoneNumberValidation.isValidPhoneNumber(qyWeChatAppInfo.getPhoneNumber());
|
||||||
phoneNumberValidation.isValidPhoneNumber(qyWeChatAppInfo.getPhoneNumber());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class WeChatMsgTest {
|
|||||||
weChatMsg.setTitle("Example Title");
|
weChatMsg.setTitle("Example Title");
|
||||||
weChatMsg.setSender("Example Sender");
|
weChatMsg.setSender("Example Sender");
|
||||||
weChatMsg.setMessage("Example Message");
|
weChatMsg.setMessage("Example Message");
|
||||||
|
weChatMsg.setCurrentTime("2023-12-12 18:43:04");
|
||||||
assertFalse(weChatMsg.isInvalid(), "WeChatMsg should be valid when all fields are valid.");
|
assertFalse(weChatMsg.isInvalid(), "WeChatMsg should be valid when all fields are valid.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user