ecology_maven/test/baseTest/BaseTest.java

35 lines
960 B
Java
Raw Normal View History

2021-12-14 10:28:23 +08:00
package baseTest;
2021-11-14 15:29:16 +08:00
2021-12-14 10:28:23 +08:00
import cn.hutool.core.lang.Console;
import org.junit.Before;
2021-11-14 15:29:16 +08:00
import org.junit.Test;
import weaver.conn.RecordSet;
/**
2021-12-14 10:28:23 +08:00
* @author EBU7-dev1-ayh
* create 2021/12/13 0013 23:08
2021-11-14 15:29:16 +08:00
*/
2021-12-14 10:28:23 +08:00
public class BaseTest {
@Before
public void before() {
weaver.general.GCONST.setServerName("ecology");
weaver.general.GCONST.setRootPath("H:\\ecology-weaver\\web\\");
}
2021-11-14 15:29:16 +08:00
@Test
public void with() {
String sql = "select COMPANYNAME,LICENSE,EXPIREDATE,CVERSION from license ";
RecordSet rs = new RecordSet();
rs.executeQuery(sql);
if (rs.next()) {
System.out.println("公司名称:" + rs.getString(1));
System.out.println("LICENSE:" + rs.getString(2));
System.out.println("授权到期日期:" + rs.getString(3));
System.out.println("版本:" + rs.getString(4));
Console.log(sql);
}
}
}