From 5d3a5002b549a0e892305499b671ab4aa87a897f Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 9 Dec 2023 11:12:32 +0800 Subject: [PATCH] chore: specify application name --- .../metersphere/api/{Application.java => ApiApplication.java} | 4 ++-- .../metersphere/bug/{Application.java => BugApplication.java} | 4 ++-- .../functional/{Application.java => CaseApplication.java} | 4 ++-- .../project/{Application.java => ProjectApplication.java} | 4 ++-- .../system/{Application.java => SystemApplication.java} | 4 ++-- .../plan/{Application.java => TestPlanApplication.java} | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) rename backend/services/api-test/src/test/java/io/metersphere/api/{Application.java => ApiApplication.java} (92%) rename backend/services/bug-management/src/test/java/io/metersphere/bug/{Application.java => BugApplication.java} (92%) rename backend/services/case-management/src/test/java/io/metersphere/functional/{Application.java => CaseApplication.java} (92%) rename backend/services/project-management/src/test/java/io/metersphere/project/{Application.java => ProjectApplication.java} (91%) rename backend/services/system-setting/src/test/java/io/metersphere/system/{Application.java => SystemApplication.java} (91%) rename backend/services/test-plan/src/test/java/io/metersphere/plan/{Application.java => TestPlanApplication.java} (91%) diff --git a/backend/services/api-test/src/test/java/io/metersphere/api/Application.java b/backend/services/api-test/src/test/java/io/metersphere/api/ApiApplication.java similarity index 92% rename from backend/services/api-test/src/test/java/io/metersphere/api/Application.java rename to backend/services/api-test/src/test/java/io/metersphere/api/ApiApplication.java index af30479fd5..0f2a08b528 100644 --- a/backend/services/api-test/src/test/java/io/metersphere/api/Application.java +++ b/backend/services/api-test/src/test/java/io/metersphere/api/ApiApplication.java @@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan; }) @ServletComponentScan @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.api", "io.metersphere.system", "io.metersphere.project"}) -public class Application { +public class ApiApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(ApiApplication.class, args); } } diff --git a/backend/services/bug-management/src/test/java/io/metersphere/bug/Application.java b/backend/services/bug-management/src/test/java/io/metersphere/bug/BugApplication.java similarity index 92% rename from backend/services/bug-management/src/test/java/io/metersphere/bug/Application.java rename to backend/services/bug-management/src/test/java/io/metersphere/bug/BugApplication.java index 83f3e98ec8..ae04ecff3c 100644 --- a/backend/services/bug-management/src/test/java/io/metersphere/bug/Application.java +++ b/backend/services/bug-management/src/test/java/io/metersphere/bug/BugApplication.java @@ -20,8 +20,8 @@ import org.springframework.context.annotation.ComponentScan; }) @ServletComponentScan @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project", "io.metersphere.bug"}) -public class Application { +public class BugApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(BugApplication.class, args); } } diff --git a/backend/services/case-management/src/test/java/io/metersphere/functional/Application.java b/backend/services/case-management/src/test/java/io/metersphere/functional/CaseApplication.java similarity index 92% rename from backend/services/case-management/src/test/java/io/metersphere/functional/Application.java rename to backend/services/case-management/src/test/java/io/metersphere/functional/CaseApplication.java index 7dc1a09781..75a50710bd 100644 --- a/backend/services/case-management/src/test/java/io/metersphere/functional/Application.java +++ b/backend/services/case-management/src/test/java/io/metersphere/functional/CaseApplication.java @@ -21,9 +21,9 @@ import org.springframework.context.annotation.ComponentScan; }) @ServletComponentScan @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project", "io.metersphere.functional"}) -public class Application { +public class CaseApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(CaseApplication.class, args); } } diff --git a/backend/services/project-management/src/test/java/io/metersphere/project/Application.java b/backend/services/project-management/src/test/java/io/metersphere/project/ProjectApplication.java similarity index 91% rename from backend/services/project-management/src/test/java/io/metersphere/project/Application.java rename to backend/services/project-management/src/test/java/io/metersphere/project/ProjectApplication.java index 2d25d6c69f..ef22efa497 100644 --- a/backend/services/project-management/src/test/java/io/metersphere/project/Application.java +++ b/backend/services/project-management/src/test/java/io/metersphere/project/ProjectApplication.java @@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan; }) @ServletComponentScan @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system", "io.metersphere.project"}) -public class Application { +public class ProjectApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(ProjectApplication.class, args); } } diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/Application.java b/backend/services/system-setting/src/test/java/io/metersphere/system/SystemApplication.java similarity index 91% rename from backend/services/system-setting/src/test/java/io/metersphere/system/Application.java rename to backend/services/system-setting/src/test/java/io/metersphere/system/SystemApplication.java index 82b595f92d..2e5aaad6e8 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/Application.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/SystemApplication.java @@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan; }) @ServletComponentScan @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system"}) -public class Application { +public class SystemApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(SystemApplication.class, args); } } diff --git a/backend/services/test-plan/src/test/java/io/metersphere/plan/Application.java b/backend/services/test-plan/src/test/java/io/metersphere/plan/TestPlanApplication.java similarity index 91% rename from backend/services/test-plan/src/test/java/io/metersphere/plan/Application.java rename to backend/services/test-plan/src/test/java/io/metersphere/plan/TestPlanApplication.java index b1428254d4..cc4cf7a37e 100644 --- a/backend/services/test-plan/src/test/java/io/metersphere/plan/Application.java +++ b/backend/services/test-plan/src/test/java/io/metersphere/plan/TestPlanApplication.java @@ -20,9 +20,9 @@ import org.springframework.context.annotation.ComponentScan; }) @ServletComponentScan @ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.plan", "io.metersphere.system"}) -public class Application { +public class TestPlanApplication { public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(TestPlanApplication.class, args); } }