Commit e033f51a by 水库浪子

添加单元测试相关配置等

1 parent 33f8a79b
...@@ -74,11 +74,14 @@ ...@@ -74,11 +74,14 @@
</dependency> </dependency>
<!--企业微信模块--> <!-- 企业微信模块-->
<!-- <dependency>--> <dependency>
<!-- <groupId>com.linkwechat</groupId>--> <groupId>com.linkwechat</groupId>
<!-- <artifactId>linkwe-wecom</artifactId>--> <artifactId>linkwe-wecom</artifactId>
<!-- </dependency>--> </dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -24,7 +24,11 @@ import java.util.List; ...@@ -24,7 +24,11 @@ import java.util.List;
public class WeCorpAccountController extends BaseController public class WeCorpAccountController extends BaseController
{ {
@Autowired @Autowired
<<<<<<< Updated upstream:linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCorpAccountController.java
private IWeCorpAccountService weCorpAccountService; private IWeCorpAccountService weCorpAccountService;
=======
private IWeCorpAccountService wxCorpAccountService;
>>>>>>> Stashed changes:linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WxCorpAccountController.java
/** /**
* 查询企业id相关配置列表 * 查询企业id相关配置列表
......
...@@ -129,6 +129,12 @@ ...@@ -129,6 +129,12 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file \ No newline at end of file
package com.linkwechat.wecom.service.impl; package com.linkwechat.wecom.service.impl;
import com.linkwechat.wecom.client.WeAccessTokenClient; import com.linkwechat.wecom.client.WeAccessTokenClient;
import com.linkwechat.wecom.domain.dto.WeAccessTokenDtoDto;
import com.linkwechat.wecom.domain.WeCorpAccount;
import com.linkwechat.wecom.service.IWeAccessTokenService; import com.linkwechat.wecom.service.IWeAccessTokenService;
import com.linkwechat.wecom.service.IWeCorpAccountService; import com.linkwechat.wecom.service.IWeCorpAccountService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -24,6 +22,7 @@ public class WeAccessTokenServiceImpl implements IWeAccessTokenService { ...@@ -24,6 +22,7 @@ public class WeAccessTokenServiceImpl implements IWeAccessTokenService {
@Autowired @Autowired
private IWeCorpAccountService iWxCorpAccountService; private IWeCorpAccountService iWxCorpAccountService;
@Autowired @Autowired
private RedisTemplate redisTemplate; private RedisTemplate redisTemplate;
...@@ -47,6 +46,8 @@ public class WeAccessTokenServiceImpl implements IWeAccessTokenService { ...@@ -47,6 +46,8 @@ public class WeAccessTokenServiceImpl implements IWeAccessTokenService {
// } // }
} }
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<description>若依管理系统</description> <description>若依管理系统</description>
<properties> <properties>
<springboot.vaerion>2.1.1.RELEASE</springboot.vaerion>
<linkwe.version>3.1.0</linkwe.version> <linkwe.version>3.1.0</linkwe.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
...@@ -42,7 +43,7 @@ ...@@ -42,7 +43,7 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId> <artifactId>spring-boot-dependencies</artifactId>
<version>2.1.1.RELEASE</version> <version>${springboot.vaerion}</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
...@@ -204,7 +205,12 @@ ...@@ -204,7 +205,12 @@
<version>${lombok.version}</version> <version>${lombok.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${springboot.vaerion}</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!