Former-commit-id: e22059b398c650c6d0d98df32cee7668ef312e17
master
wangbing 5 years ago
parent aaed7558cf
commit 4d57d1ed9c

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.