Browse Source

增加测试方法

master
qggwy 3 years ago
parent
commit
74d85222d6
  1. 14
      src/test/java/com/insigma/service/impl/LinuxTongWebKingBaseTest.java
  2. 14
      src/test/java/com/insigma/service/impl/WindowsTomcatMysqlTest.java

14
src/test/java/com/insigma/service/impl/LinuxTongWebKingBaseTest.java

@ -16,13 +16,13 @@ import static org.junit.jupiter.api.Assertions.*;
public class LinuxTongWebKingBaseTest { public class LinuxTongWebKingBaseTest {
static { static {
DbUtil.url = ""; DbUtil.url = "jdbc:mysql://127.0.0.1:35017/hy_qggwy";
DbUtil.usr = ""; DbUtil.usr = "root";
DbUtil.pwd = ""; DbUtil.pwd = "admin";
AppCfg.DB = ""; AppCfg.DB = "GWY20_Mysql";
AppCfg.MW = ""; AppCfg.MW = "GWY20_Tomcat";
AppCfg.HZB = ""; AppCfg.HZB = "D:/hzb2021";
AppCfg.BROWSER = ""; AppCfg.BROWSER = "360se.exe";
} }
private LinuxTongWebKingBase linuxTongWebKingBase = new LinuxTongWebKingBase(); private LinuxTongWebKingBase linuxTongWebKingBase = new LinuxTongWebKingBase();

14
src/test/java/com/insigma/service/impl/WindowsTomcatMysqlTest.java

@ -13,13 +13,13 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
public class WindowsTomcatMysqlTest { public class WindowsTomcatMysqlTest {
static { static {
DbUtil.url = ""; DbUtil.url = "jdbc:mysql://127.0.0.1:35017/hy_qggwy";
DbUtil.usr = ""; DbUtil.usr = "root";
DbUtil.pwd = ""; DbUtil.pwd = "admin";
AppCfg.DB = ""; AppCfg.DB = "GWY20_Mysql";
AppCfg.MW = ""; AppCfg.MW = "GWY20_Tomcat";
AppCfg.HZB = ""; AppCfg.HZB = "D:/hzb2021";
AppCfg.BROWSER = ""; AppCfg.BROWSER = "360se.exe";
} }
WindowsTomcatMysql windowsTomcatMysql = new WindowsTomcatMysql(); WindowsTomcatMysql windowsTomcatMysql = new WindowsTomcatMysql();

Loading…
Cancel
Save