修复部分单元测试报错的问题

This commit is contained in:
YunaiV
2022-11-13 21:08:15 +08:00
parent a543b8c67a
commit 12d045ea58
4 changed files with 22 additions and 22 deletions

View File

@ -124,7 +124,7 @@ public class YunpianSmsClientTest extends BaseMockitoUnitTest {
@SuppressWarnings("unchecked")
public void testDoGetSmsTemplate() throws Throwable {
// 准备参数
String apiTemplateId = randomString();
String apiTemplateId = String.valueOf(randomLongId());
// mock tpl 方法
TplApi tplApi = mock(TplApi.class);
when(client.tpl()).thenReturn(tplApi);