35 lines
960 B
Java
35 lines
960 B
Java
|
package baseTest;
|
||
|
|
||
|
import cn.hutool.core.lang.Console;
|
||
|
import org.junit.Before;
|
||
|
import org.junit.Test;
|
||
|
import weaver.conn.RecordSet;
|
||
|
|
||
|
/**
|
||
|
* @author EBU7-dev1-ayh
|
||
|
* create 2021/12/13 0013 23:08
|
||
|
*/
|
||
|
|
||
|
|
||
|
public class BaseTest {
|
||
|
@Before
|
||
|
public void before() {
|
||
|
weaver.general.GCONST.setServerName("ecology");
|
||
|
weaver.general.GCONST.setRootPath("H:\\ecology-weaver\\web\\");
|
||
|
}
|
||
|
|
||
|
@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);
|
||
|
}
|
||
|
}
|
||
|
}
|