diff options
author | Igor Dysko <igor1.dysko@orange.com> | 2020-07-22 14:29:21 +0200 |
---|---|---|
committer | Igor Dysko <igor1.dysko@orange.com> | 2020-07-22 14:29:21 +0200 |
commit | 48b99fe5add8e59789b74d49eca6732813d2ae97 (patch) | |
tree | 0fc8784f6b6166183cb2aecd393a2eeeeaf0281f /src/test/java/org | |
parent | de4fc52226078ed9276323416c3b5129e6780973 (diff) |
Update to spring boot 2
Update of code and dependencies
Issue-ID: AAI-2530
Signed-off-by: Igor Dysko <igor1.dysko@orange.com>
Change-Id: Iff78a028c237586a285c410a7522744f8a488b58
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/onap/aai/AAIGremlinQueryTest.java | 2 | ||||
-rw-r--r-- | src/test/java/org/onap/aai/GraphAdminTestConfiguration.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/onap/aai/AAIGremlinQueryTest.java b/src/test/java/org/onap/aai/AAIGremlinQueryTest.java index 3115b87..55506a9 100644 --- a/src/test/java/org/onap/aai/AAIGremlinQueryTest.java +++ b/src/test/java/org/onap/aai/AAIGremlinQueryTest.java @@ -28,7 +28,7 @@ import org.onap.aai.dbmap.AAIGraph; import org.onap.aai.exceptions.AAIException; import org.onap.aai.util.AAIConfig; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.context.embedded.LocalServerPort; +import org.springframework.boot.web.server.LocalServerPort; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotation.Import; import org.springframework.http.*; diff --git a/src/test/java/org/onap/aai/GraphAdminTestConfiguration.java b/src/test/java/org/onap/aai/GraphAdminTestConfiguration.java index 3c68006..c53a0d4 100644 --- a/src/test/java/org/onap/aai/GraphAdminTestConfiguration.java +++ b/src/test/java/org/onap/aai/GraphAdminTestConfiguration.java @@ -81,7 +81,7 @@ public class GraphAdminTestConfiguration { .build(); RestTemplate restTemplate = builder - .requestFactory(new HttpComponentsClientHttpRequestFactory(client)) + .requestFactory(() -> new HttpComponentsClientHttpRequestFactory(client)) .build(); restTemplate.setErrorHandler(new ResponseErrorHandler() { |