From f55174af939c15cb4eac3ba51022f51c166ec6ba Mon Sep 17 00:00:00 2001 From: "Smokowski, Steve (ss835w)" Date: Fri, 21 Sep 2018 05:20:24 -0400 Subject: Fix Stream Fix Bean scanning so it picks up the resttemplate removed unnecessary RestTemplate Bean configurations Change-Id: I094bec8e9513a2e02ebf00215291136ed6d54a18 Issue-ID: SO-1080 Signed-off-by: Smokowski, Steve (ss835w) --- .../src/test/java/org/onap/so/TestApplication.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mso-api-handlers/mso-requests-db-repositories/src/test/java') diff --git a/mso-api-handlers/mso-requests-db-repositories/src/test/java/org/onap/so/TestApplication.java b/mso-api-handlers/mso-requests-db-repositories/src/test/java/org/onap/so/TestApplication.java index 5b6fbc8378..9bb5cab9b5 100644 --- a/mso-api-handlers/mso-requests-db-repositories/src/test/java/org/onap/so/TestApplication.java +++ b/mso-api-handlers/mso-requests-db-repositories/src/test/java/org/onap/so/TestApplication.java @@ -27,7 +27,7 @@ import org.springframework.context.annotation.Profile; import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; import org.springframework.web.client.RestTemplate; -@SpringBootApplication(scanBasePackages = { "org.onap.so.db" }) +@SpringBootApplication(scanBasePackages = { "org.onap.so" }) @Profile("test") public class TestApplication { public static void main(String... args) { @@ -35,8 +35,4 @@ public class TestApplication { System.getProperties().setProperty("mso.db", "MARIADB"); System.getProperties().setProperty("server.name", "Springboot"); } - @Bean - public RestTemplate restTemplate() { - return new RestTemplate( new HttpComponentsClientHttpRequestFactory()); - } } -- cgit 1.2.3-korg