Skip to content

Commit 73704ca

Browse files
committed
🎨 修复单元测试代码引用错误
1 parent 0dfedb1 commit 73704ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpCustomizedServiceImplTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_CUSTOMIZED_APP_DETAIL;
1515
import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_TEMPLATE_LIST;
16-
import static org.mockito.ArgumentMatchers.any;
17-
import static org.mockito.ArgumentMatchers.eq;
16+
import static org.mockito.Matchers.any;
17+
import static org.mockito.Matchers.eq;
1818
import static org.mockito.Mockito.when;
1919
import static org.testng.Assert.assertEquals;
2020
import static org.testng.Assert.assertNotNull;
@@ -39,7 +39,7 @@ public class WxCpTpCustomizedServiceImplTest {
3939
*/
4040
@BeforeClass
4141
public void setUp() {
42-
MockitoAnnotations.openMocks(this);
42+
MockitoAnnotations.initMocks(this);
4343
configStorage = new WxCpTpDefaultConfigImpl();
4444
when(wxCpTpService.getWxCpTpConfigStorage()).thenReturn(configStorage);
4545
wxCpTpCustomizedService = new WxCpTpCustomizedServiceImpl(wxCpTpService);

0 commit comments

Comments
 (0)