提交 c528a534 authored 作者: YunaiV's avatar YunaiV

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

上级 7a08c293
...@@ -124,7 +124,7 @@ public class YunpianSmsClientTest extends BaseMockitoUnitTest { ...@@ -124,7 +124,7 @@ public class YunpianSmsClientTest extends BaseMockitoUnitTest {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public void testDoGetSmsTemplate() throws Throwable { public void testDoGetSmsTemplate() throws Throwable {
// 准备参数 // 准备参数
String apiTemplateId = randomString(); String apiTemplateId = String.valueOf(randomLongId());
// mock tpl 方法 // mock tpl 方法
TplApi tplApi = mock(TplApi.class); TplApi tplApi = mock(TplApi.class);
when(client.tpl()).thenReturn(tplApi); when(client.tpl()).thenReturn(tplApi);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论