From 73704ca280a9bb850e8a28940c71fa3b3fca802c Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Thu, 15 Jan 2026 17:26:43 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81=E5=BC=95=E7=94=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cp/tp/service/impl/WxCpTpCustomizedServiceImplTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpCustomizedServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpCustomizedServiceImplTest.java index b3c9eda6c..82fdb1d2a 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpCustomizedServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpCustomizedServiceImplTest.java @@ -13,8 +13,8 @@ import org.testng.annotations.Test; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_CUSTOMIZED_APP_DETAIL; import static me.chanjar.weixin.cp.constant.WxCpApiPathConsts.Tp.GET_TEMPLATE_LIST; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Matchers.any; +import static org.mockito.Matchers.eq; import static org.mockito.Mockito.when; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; @@ -39,7 +39,7 @@ public class WxCpTpCustomizedServiceImplTest { */ @BeforeClass public void setUp() { - MockitoAnnotations.openMocks(this); + MockitoAnnotations.initMocks(this); configStorage = new WxCpTpDefaultConfigImpl(); when(wxCpTpService.getWxCpTpConfigStorage()).thenReturn(configStorage); wxCpTpCustomizedService = new WxCpTpCustomizedServiceImpl(wxCpTpService);