测试代码优化
This commit is contained in:
@@ -45,7 +45,7 @@ public class MobileAppTest {
|
||||
private static String loginUrl = "/login"
|
||||
+ "?username=" + DesUtils.encode("system", "thinkgem,jeesite,com")
|
||||
+ "&password=" + DesUtils.encode("admin", "thinkgem,jeesite,com")
|
||||
+ "¶m_deviceType=mobileApp&__sid=";
|
||||
+ "¶m_deviceType=mobileApp¶m_lang=zh_CN&__sid=";
|
||||
|
||||
/**
|
||||
* 存储的会话编号,则通过getSid()获取。
|
||||
|
||||
23
modules/core/src/test/java/config/application.yml
Normal file
23
modules/core/src/test/java/config/application.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
# 产品或项目名称、版本、版权年份
|
||||
productName: JeeSite Demo
|
||||
productVersion: V4.1
|
||||
copyrightYear: 2018
|
||||
|
||||
# 软件提供商公司或个人名称
|
||||
companyName: ThinkGem
|
||||
|
||||
# 数据库连接
|
||||
jdbc:
|
||||
|
||||
# Mysql 数据库配置
|
||||
type: mysql
|
||||
driver: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/jeesite?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
|
||||
username: root
|
||||
password: 123456
|
||||
testSql: SELECT 1
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
config: classpath:logback.xml
|
||||
8
modules/core/src/test/java/config/j2cache.properties
Normal file
8
modules/core/src/test/java/config/j2cache.properties
Normal file
@@ -0,0 +1,8 @@
|
||||
#J2Cache configuration
|
||||
|
||||
j2cache.broadcast = none
|
||||
|
||||
j2cache.L1.provider_class = caffeine
|
||||
j2cache.L2.provider_class = none
|
||||
|
||||
caffeine.region.default = 10000, 1h
|
||||
19
modules/core/src/test/java/logback.xml
Normal file
19
modules/core/src/test/java/logback.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false" scan="false">
|
||||
|
||||
<!-- Console log output -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} %-5level [%logger{50}] - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
|
||||
<root level="WARN">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!-- Framework level setting -->
|
||||
<include resource="config/logger-core.xml"/>
|
||||
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user