赞
踩
引入包:
- <dependency>
- <groupId>cn.smallbun.screw</groupId>
- <artifactId>screw-core</artifactId>
- <version>1.0.3</version>
- </dependency>
编写测试类
- import cn.smallbun.screw.core.Configuration;
- import cn.smallbun.screw.core.engine.EngineConfig;
- import cn.smallbun.screw.core.engine.EngineFileType;
- import cn.smallbun.screw.core.engine.EngineTemplateType;
- import cn.smallbun.screw.core.execute.DocumentationExecute;
- import cn.smallbun.screw.core.process.ProcessConfig;
- import com.zaxxer.hikari.HikariConfig;
- import com.zaxxer.hikari.HikariDataSource;
-
-
- import org.junit.jupiter.api.Test;
-
- import javax.sql.DataSource;
- import java.util.ArrayList;
-
- public class ScrewTest {
-
- @Test
- void testScrew() {
-
- //数据源
- HikariConfig hikariConfig = new HikariConfig();
- hikariConfig.setDriverClassName("com.microsoft.sqlserver.jdbc.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。