diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-09-22 20:25:08 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-09-22 20:25:08 +0300 |
commit | 5a824bbfbe95afd3b1fbaae8c029a8b4c5ad5401 (patch) | |
tree | 85524a7e7b0a98fec29fec278ffbf44641f0b9f6 /vid-app-common/src/test/java | |
parent | 15eeb03b12f2c8afd34c38ffad9f2d3a30e4af23 (diff) |
Remove injections from filter, as filter is not Spring-controlled
Change-Id: Iecb4d6fbb79c5920d088fe536e6622690f8f881e
Issue-ID: VID-253
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/test/java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/controller/filter/PromiseRequestIdFilterTest.java | 4 | ||||
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestHeadersTest.java | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/filter/PromiseRequestIdFilterTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/filter/PromiseRequestIdFilterTest.java index a1d15f543..5f80e04a0 100644 --- a/vid-app-common/src/test/java/org/onap/vid/controller/filter/PromiseRequestIdFilterTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/controller/filter/PromiseRequestIdFilterTest.java @@ -52,7 +52,6 @@ import org.mockito.ArgumentCaptor; import org.mockito.Mockito; import org.mockito.stubbing.Answer; import org.onap.portalsdk.core.web.support.UserUtils; -import org.onap.vid.logging.Headers; import org.springframework.mock.web.MockHttpServletResponse; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; @@ -68,8 +67,7 @@ public class PromiseRequestIdFilterTest { private static final String transactionIdHeader = "x-transactionid"; private static final String requestIdHeader = "x-requestid"; - private final PromiseRequestIdFilter promiseRequestIdFilter = - new PromiseRequestIdFilter(new Headers()); + private final PromiseRequestIdFilter promiseRequestIdFilter = new PromiseRequestIdFilter(); @Test public void givenRequestIdHeader_headerValueNotChanged() throws IOException, ServletException { diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestHeadersTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestHeadersTest.java index 3ea025870..ac05ea706 100644 --- a/vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestHeadersTest.java +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/OutgoingRequestHeadersTest.java @@ -51,7 +51,6 @@ import org.onap.vid.aai.util.AAIRestInterface; import org.onap.vid.aai.util.ServletRequestHelper; import org.onap.vid.aai.util.SystemPropertyHelper; import org.onap.vid.controller.filter.PromiseRequestIdFilter; -import org.onap.vid.logging.Headers; import org.onap.vid.testUtils.TestUtils; import org.onap.vid.utils.Logging; import org.onap.vid.utils.Unchecked; @@ -66,8 +65,7 @@ import org.testng.annotations.Test; public class OutgoingRequestHeadersTest { - private static final PromiseRequestIdFilter promiseRequestIdFilter = - new PromiseRequestIdFilter(new Headers()); + private static final PromiseRequestIdFilter promiseRequestIdFilter = new PromiseRequestIdFilter(); // @InjectMocks // private RestMsoImplementation restMsoImplementation; |