From 33256aa78ea05416b385df5862838f39975c73d4 Mon Sep 17 00:00:00 2001 From: "ramprasad.devarakonda@gmail.com" Date: Sat, 29 Feb 2020 18:38:11 +0000 Subject: [PATCH] BAEL-3324 | Fix broken integration tests --- .../src/main/java/com/baeldung/config/MvcConfig.java | 2 +- .../web/controller/{ => customer}/CustomerRestController.java | 2 +- .../{ => customer}/CustomerRestControllerIntegrationTest.java | 2 +- .../{ => customer}/CustomerRestControllerUnitTest.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename spring-rest-http/src/main/java/com/baeldung/web/controller/{ => customer}/CustomerRestController.java (98%) rename spring-rest-http/src/test/java/com/baeldung/web/controller/{ => customer}/CustomerRestControllerIntegrationTest.java (98%) rename spring-rest-http/src/test/java/com/baeldung/web/controller/{ => customer}/CustomerRestControllerUnitTest.java (99%) diff --git a/spring-rest-http/src/main/java/com/baeldung/config/MvcConfig.java b/spring-rest-http/src/main/java/com/baeldung/config/MvcConfig.java index ea2c536757..6e8b41bbed 100644 --- a/spring-rest-http/src/main/java/com/baeldung/config/MvcConfig.java +++ b/spring-rest-http/src/main/java/com/baeldung/config/MvcConfig.java @@ -21,7 +21,7 @@ import java.util.List; */ @Configuration @EnableWebMvc -@ComponentScan({ "com.baeldung.web", "com.baeldung.requestmapping" }) +@ComponentScan({ "com.baeldung.web.controller.status", "com.baeldung.requestmapping" }) public class MvcConfig implements WebMvcConfigurer { public MvcConfig() { diff --git a/spring-rest-http/src/main/java/com/baeldung/web/controller/CustomerRestController.java b/spring-rest-http/src/main/java/com/baeldung/web/controller/customer/CustomerRestController.java similarity index 98% rename from spring-rest-http/src/main/java/com/baeldung/web/controller/CustomerRestController.java rename to spring-rest-http/src/main/java/com/baeldung/web/controller/customer/CustomerRestController.java index 9c248b6d2d..edae10de27 100644 --- a/spring-rest-http/src/main/java/com/baeldung/web/controller/CustomerRestController.java +++ b/spring-rest-http/src/main/java/com/baeldung/web/controller/customer/CustomerRestController.java @@ -1,4 +1,4 @@ -package com.baeldung.web.controller; +package com.baeldung.web.controller.customer; import com.baeldung.model.Customer; import com.baeldung.service.CustomerService; diff --git a/spring-rest-http/src/test/java/com/baeldung/web/controller/CustomerRestControllerIntegrationTest.java b/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerIntegrationTest.java similarity index 98% rename from spring-rest-http/src/test/java/com/baeldung/web/controller/CustomerRestControllerIntegrationTest.java rename to spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerIntegrationTest.java index f4d9ff1b92..535bcb1904 100644 --- a/spring-rest-http/src/test/java/com/baeldung/web/controller/CustomerRestControllerIntegrationTest.java +++ b/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerIntegrationTest.java @@ -1,4 +1,4 @@ -package com.baeldung.web.controller; +package com.baeldung.web.controller.customer; import com.baeldung.model.Customer; import com.baeldung.service.CustomerService; diff --git a/spring-rest-http/src/test/java/com/baeldung/web/controller/CustomerRestControllerUnitTest.java b/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerUnitTest.java similarity index 99% rename from spring-rest-http/src/test/java/com/baeldung/web/controller/CustomerRestControllerUnitTest.java rename to spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerUnitTest.java index d0fb255a5d..6b1293e2c1 100644 --- a/spring-rest-http/src/test/java/com/baeldung/web/controller/CustomerRestControllerUnitTest.java +++ b/spring-rest-http/src/test/java/com/baeldung/web/controller/customer/CustomerRestControllerUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.web.controller; +package com.baeldung.web.controller.customer; import com.baeldung.model.Customer; import com.baeldung.service.CustomerService;