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);