From 6647fccc486f4d8c19a43285c03d1ac6ab49a4df Mon Sep 17 00:00:00 2001 From: "youHong.ai" <774495953@qq.com> Date: Tue, 22 Nov 2022 12:43:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9baseTest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- src/main/java/aiyh/utils/zwl/common/ToolUtil.java | 1 + src/test/java/baseTest/BaseTest.java | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 870b467..e2a9a12 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ log /target/ /log/ -/test/ +#/test/ .DS_Store /src/main/resources/WEB-INF/prop/weaver.properties /lib/classbean diff --git a/src/main/java/aiyh/utils/zwl/common/ToolUtil.java b/src/main/java/aiyh/utils/zwl/common/ToolUtil.java index 8755bdf..26d3d21 100644 --- a/src/main/java/aiyh/utils/zwl/common/ToolUtil.java +++ b/src/main/java/aiyh/utils/zwl/common/ToolUtil.java @@ -5,6 +5,7 @@ import aiyh.utils.zwl.common.logging.LoggerFactory; import weaver.conn.ConnStatementDataSource; import weaver.conn.RecordSet; import weaver.general.BaseBean; +import weaver.general.GCONST; import weaver.general.TimeUtil; import weaver.general.Util; diff --git a/src/test/java/baseTest/BaseTest.java b/src/test/java/baseTest/BaseTest.java index 30f7cc0..2de3a31 100644 --- a/src/test/java/baseTest/BaseTest.java +++ b/src/test/java/baseTest/BaseTest.java @@ -4,6 +4,7 @@ import cn.hutool.core.lang.Console; import org.junit.Before; import org.junit.Test; import weaver.conn.RecordSet; +import weaver.general.GCONST; /** * @author EBU7-dev1-ayh @@ -14,8 +15,9 @@ import weaver.conn.RecordSet; public class BaseTest { @Before public void before() { - weaver.general.GCONST.setServerName("ecology"); - weaver.general.GCONST.setRootPath("/Users/aoey.oct.22/company/Fan_wei/code/idea/ecology9-project/src/main/resources/"); + GCONST.setServerName("ecology"); + GCONST.setRootPath("/Users/aoey.oct.22/company/Fan_wei/code/idea/ecology9-project/src/main/resources/"); + GCONST.setSystemFilePath("/Users/aoey.oct.22/company/Fan_wei/code/idea/ecology9-project/src/main/resources/file"); } @Test @@ -29,6 +31,7 @@ public class BaseTest { System.out.println("授权到期日期:" + rs.getString(3)); System.out.println("版本:" + rs.getString(4)); Console.log(sql); + System.out.println(GCONST.getSysFilePath()); } } }