mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-01-23 21:32:09 +08:00
🎨 修复单元测试代码引用错误
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user