diff options
author | 2018-09-12 16:15:54 -0400 | |
---|---|---|
committer | 2018-09-12 16:16:05 -0400 | |
commit | 67b21f3bbf54828093fd27634d4d090111c04502 (patch) | |
tree | a7e7c4e477c2fe6c186d6811e7cb30904e3c7866 /mso-api-handlers/mso-requests-db-repositories/src/test/java/org/onap | |
parent | 4bcb139985525cd91a556794179f7faa53bf3938 (diff) |
Improve test coverage for requestdbclient
RequestsDbClient Junits and some fixes for RequestsDbClient
Change-Id: Icc2185030220d7bf973be5a23a51b6b5e313a360
Issue-ID: SO-1033
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'mso-api-handlers/mso-requests-db-repositories/src/test/java/org/onap')
-rw-r--r-- | mso-api-handlers/mso-requests-db-repositories/src/test/java/org/onap/so/TestApplication.java | 7 |
1 files changed, 7 insertions, 0 deletions
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 00d212a23e..5b6fbc8378 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 @@ -22,7 +22,10 @@ package org.onap.so; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Profile; +import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; +import org.springframework.web.client.RestTemplate; @SpringBootApplication(scanBasePackages = { "org.onap.so.db" }) @Profile("test") @@ -32,4 +35,8 @@ public class TestApplication { System.getProperties().setProperty("mso.db", "MARIADB"); System.getProperties().setProperty("server.name", "Springboot"); } + @Bean + public RestTemplate restTemplate() { + return new RestTemplate( new HttpComponentsClientHttpRequestFactory()); + } } |