You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.8 KiB
77 lines
1.8 KiB
package com.insigma.service.impl;
|
|
|
|
|
|
import com.insigma.config.AppCfg;
|
|
import com.insigma.entry.IndexObj;
|
|
import com.insigma.entry.TabColObj;
|
|
import com.insigma.utils.DbUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.junit.Test;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
@Slf4j
|
|
public class LinuxTongWebKingBaseTest {
|
|
|
|
static {
|
|
DbUtil.url = "";
|
|
DbUtil.usr = "";
|
|
DbUtil.pwd = "";
|
|
AppCfg.DB = "";
|
|
AppCfg.MW = "";
|
|
AppCfg.HZB = "";
|
|
AppCfg.BROWSER = "";
|
|
}
|
|
|
|
private LinuxTongWebKingBase linuxTongWebKingBase = new LinuxTongWebKingBase();
|
|
|
|
@Test
|
|
public void rebuildIndex() {
|
|
assertTrue(linuxTongWebKingBase.rebuildIndex(IndexObj.getData()));
|
|
log.info("测试完成!");
|
|
}
|
|
|
|
@Test
|
|
public void setDbSize() {
|
|
assertTrue(linuxTongWebKingBase.setDbSize(500));
|
|
log.info("测试完成!");
|
|
}
|
|
|
|
@Test
|
|
public void cleanDbCache() {
|
|
assertTrue(linuxTongWebKingBase.cleanDbCache(TabColObj.getSQL(), TabColObj.getData()));
|
|
log.info("测试完成!");
|
|
}
|
|
|
|
@Test
|
|
public void registrationDbService() {
|
|
assertTrue(linuxTongWebKingBase.registrationDbService());
|
|
log.info("测试完成!");
|
|
}
|
|
|
|
@Test
|
|
public void cleanMwCache() {
|
|
assertTrue(linuxTongWebKingBase.cleanMwCache());
|
|
log.info("测试完成!");
|
|
}
|
|
|
|
@Test
|
|
public void setMwSize() {
|
|
assertTrue(linuxTongWebKingBase.setMwSize(500));
|
|
log.info("测试完成!");
|
|
}
|
|
|
|
@Test
|
|
public void registrationMwService() {
|
|
assertTrue(linuxTongWebKingBase.registrationMwService());
|
|
log.info("测试完成!");
|
|
}
|
|
|
|
@Test
|
|
public void runShell() {
|
|
assertTrue(linuxTongWebKingBase.runShell("vim a.txt"));
|
|
log.info("测试完成!");
|
|
}
|
|
}
|