REM:
1. 单元测试时,迪普设备超时时间设置为1s
2. 增加单元测试POM配置
This commit is contained in:
HuangXin 2020-09-28 09:19:42 +08:00
parent 3317156b82
commit 7c777cbadf
3 changed files with 8 additions and 1 deletions

View File

@ -33,7 +33,7 @@ mybatis.mapper-locations=classpath*:mappers/*.xml
mybatis.type-aliases-package=com.dispose.pojo.entity mybatis.type-aliases-package=com.dispose.pojo.entity
mybatis.configuration.default-enum-type-handler=com.dispose.common.CommonEnumHandler mybatis.configuration.default-enum-type-handler=com.dispose.common.CommonEnumHandler
#config log #config log
logging.config=file:config/logback_debug.xml logging.config=file:config/logback.xml
#config tomcat #config tomcat
server.tomcat.max-threads=128 server.tomcat.max-threads=128
#Json sort #Json sort

View File

@ -292,6 +292,9 @@
<configuration> <configuration>
<testFailureIgnore>true</testFailureIgnore> <testFailureIgnore>true</testFailureIgnore>
<skip>false</skip> <skip>false</skip>
<includes>
<include>**/com/dispose/test/**/*.java</include>
</includes>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>

View File

@ -2,6 +2,7 @@ package com.dispose.test.common;
import com.dispose.common.AuthConfigValue; import com.dispose.common.AuthConfigValue;
import com.dispose.common.DisposeConfigValue; import com.dispose.common.DisposeConfigValue;
import com.dispose.common.DpTechConfigValue;
import com.dispose.common.ErrorCode; import com.dispose.common.ErrorCode;
import com.dispose.mapper.UserAccountMapper; import com.dispose.mapper.UserAccountMapper;
import com.dispose.pojo.entity.UserAccount; import com.dispose.pojo.entity.UserAccount;
@ -83,6 +84,9 @@ public class CommonEnvironment {
if (ret.getFirstParam() == ErrorCode.ERR_OK) { if (ret.getFirstParam() == ErrorCode.ERR_OK) {
this.loginToken = ret.getSecondParam(); this.loginToken = ret.getSecondParam();
} }
DpTechConfigValue.SOAP_CONNECT_TIMEOUT_SECOND = 1;
DpTechConfigValue.SOAP_RECEIVE_TIMEOUT_SECOND = 1;
} }
/** /**