From a39a0026eebabe4866c81bcd12143ca40aa30e31 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Thu, 4 Aug 2022 13:26:39 +0100 Subject: get_input property value deprecated format Signed-off-by: MichaelMorris Issue-ID: SDC-4123 Change-Id: Ief79a25bbe41d67b378db6c4ad19b0d29c1830b2 --- .../openecomp/sdc/be/servlets/ComponentInstanceServletTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'catalog-be/src/test/java') diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ComponentInstanceServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ComponentInstanceServletTest.java index 342f9eb2ba..e77a855ef8 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ComponentInstanceServletTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/ComponentInstanceServletTest.java @@ -66,6 +66,7 @@ import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.TestInstance.Lifecycle; import org.mockito.ArgumentMatchers; import org.mockito.Mockito; +import org.openecomp.sdc.be.components.impl.ComponentBusinessLogicProvider; import org.openecomp.sdc.be.components.impl.ComponentInstanceBusinessLogic; import org.openecomp.sdc.be.components.impl.ComponentNodeFilterBusinessLogic; import org.openecomp.sdc.be.components.impl.GroupBusinessLogic; @@ -130,6 +131,7 @@ class ComponentInstanceServletTest extends JerseyTest { private ResourceImportManager resourceImportManager; private ServiceBusinessLogic serviceBusinessLogic; private ComponentNodeFilterBusinessLogic componentNodeFilterBusinessLogic; + private ComponentBusinessLogicProvider componentBusinessLogicProvider; private ConfigurationManager configurationManager; private User user; private String inputData; @@ -201,7 +203,7 @@ class ComponentInstanceServletTest extends JerseyTest { .accept(MediaType.APPLICATION_JSON) .header("USER_ID", USER_ID) .get(Response.class); - + assertThat(response.getStatus()).isEqualTo(HttpStatus.OK_200); } @@ -342,6 +344,7 @@ class ComponentInstanceServletTest extends JerseyTest { bind(resourceImportManager).to(ResourceImportManager.class); bind(serviceBusinessLogic).to(ServiceBusinessLogic.class); bind(componentNodeFilterBusinessLogic).to(ComponentNodeFilterBusinessLogic.class); + bind(componentBusinessLogicProvider).to(ComponentBusinessLogicProvider.class); } }) .property("contextConfig", context); @@ -362,6 +365,7 @@ class ComponentInstanceServletTest extends JerseyTest { responseFormat = Mockito.mock(ResponseFormat.class); serviceBusinessLogic = Mockito.mock(ServiceBusinessLogic.class); componentNodeFilterBusinessLogic = Mockito.mock(ComponentNodeFilterBusinessLogic.class); + componentBusinessLogicProvider = Mockito.mock(ComponentBusinessLogicProvider.class); userValidations = Mockito.mock(UserValidations.class); } @@ -482,6 +486,7 @@ class ComponentInstanceServletTest extends JerseyTest { .path(path) .request(MediaType.APPLICATION_JSON) .header("USER_ID", USER_ID).post(Entity.entity(properties, MediaType.APPLICATION_JSON)); + assertThat(response.getStatus()).isEqualTo(HttpStatus.NOT_FOUND_404); } -- cgit 1.2.3-korg