|
|
@ -53,6 +53,10 @@ public class SpringBootCallable implements Callable {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 生成单元测试java目录
|
|
|
|
// 生成单元测试java目录
|
|
|
|
File testJavaDir = Tool.createPath(projectDir.getAbsolutePath(), "src", "test", "java");
|
|
|
|
File testJavaDir = Tool.createPath(projectDir.getAbsolutePath(), "src", "test", "java");
|
|
|
|
|
|
|
|
File testDomainDir = testJavaDir;
|
|
|
|
|
|
|
|
for (String s : project.getProjectBasePackage().split("\\.")) {
|
|
|
|
|
|
|
|
testDomainDir = Tool.createPath(testDomainDir.getAbsolutePath(), s);
|
|
|
|
|
|
|
|
}
|
|
|
|
// 生成单元测试resources目录
|
|
|
|
// 生成单元测试resources目录
|
|
|
|
File testResourcesDir = Tool.createPath(projectDir.getAbsolutePath(), "src", "test", "resources");
|
|
|
|
File testResourcesDir = Tool.createPath(projectDir.getAbsolutePath(), "src", "test", "resources");
|
|
|
|
|
|
|
|
|
|
|
@ -121,7 +125,7 @@ public class SpringBootCallable implements Callable {
|
|
|
|
|
|
|
|
|
|
|
|
{//生成Test
|
|
|
|
{//生成Test
|
|
|
|
System.out.println("生成模块:Test");
|
|
|
|
System.out.println("生成模块:Test");
|
|
|
|
generateTest(testJavaDir, project, dataBase, option);
|
|
|
|
generateTest(testDomainDir, project, dataBase, option);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{//生成Test Resources
|
|
|
|
{//生成Test Resources
|
|
|
|