1
0
mirror of synced 2026-02-08 11:47:49 +08:00

修复测试代码中的重复调用

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-26 14:58:57 +00:00
parent 0fa17f485e
commit d49e21cb34

View File

@@ -174,7 +174,6 @@ public class WxCpServiceGetMsgAuditAccessTokenTest {
public void testGetMsgAuditAccessToken_WithoutSecret() {
config.setMsgAuditSecret(null);
BaseWxCpServiceImpl service = createTestService(config);
service.setWxCpConfigStorage(config);
// 验证当 secret 为 null 时抛出异常
assertThatThrownBy(() -> service.getMsgAuditAccessToken(true))
@@ -189,7 +188,6 @@ public class WxCpServiceGetMsgAuditAccessTokenTest {
public void testGetMsgAuditAccessToken_WithEmptySecret() {
config.setMsgAuditSecret(" ");
BaseWxCpServiceImpl service = createTestService(config);
service.setWxCpConfigStorage(config);
// 验证当 secret 为空字符串时抛出异常
assertThatThrownBy(() -> service.getMsgAuditAccessToken(true))