aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/resources
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2021-02-22 09:50:07 +0000
committerVasyl Razinkov <vasyl.razinkov@est.tech>2021-02-22 11:57:03 +0000
commit086406a3af88a1f77e2be783e6f458dc3c66d4ca (patch)
treef677da1b183d54729c6f9cffe3ae2a85f238c85f /catalog-be/src/test/resources
parent2b609a313cfa4ab4b523f20627541264ad1e30f5 (diff)
Fix locally failing TCs in catalog-be
Migrate to Junit 5 TCs that extends JerseyTest Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I4c81e70836ee5e634291d74cd1773d221dce3702 Issue-ID: SDC-3377 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Diffstat (limited to 'catalog-be/src/test/resources')
-rw-r--r--catalog-be/src/test/resources/application-context-test.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/catalog-be/src/test/resources/application-context-test.xml b/catalog-be/src/test/resources/application-context-test.xml
index c45680ca90..10b12ffa9c 100644
--- a/catalog-be/src/test/resources/application-context-test.xml
+++ b/catalog-be/src/test/resources/application-context-test.xml
@@ -29,4 +29,46 @@
<bean id="userAdmin" class="org.mockito.Mockito" factory-method="mock">
<constructor-arg value="org.openecomp.sdc.be.user.UserBusinessLogic" />
</bean>
+ <bean id="componentInstanceBusinessLogic" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.components.impl.ComponentInstanceBusinessLogic" />
+ </bean>
+ <bean id="servletUtils" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.impl.ServletUtils" />
+ </bean>
+ <bean id="resourceImportManager" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.components.impl.ResourceImportManager" />
+ </bean>
+ <bean id="elementBusinessLogic" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.components.impl.ElementBusinessLogic" />
+ </bean>
+ <bean id="assetMetadataConverter" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.ecomp.converters.AssetMetadataConverter" />
+ </bean>
+ <bean id="lifecycleBusinessLogic" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.components.lifecycle.LifecycleBusinessLogic" />
+ </bean>
+ <bean id="resourceBusinessLogic" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.components.impl.ResourceBusinessLogic" />
+ </bean>
+ <bean id="serviceBusinessLogic" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.components.impl.ServiceBusinessLogic" />
+ </bean>
+ <bean id="compositionBusinessLogic" class="org.mockito.Mockito" factory-method="mock">
+ <constructor-arg value="org.openecomp.sdc.be.components.impl.CompositionBusinessLogic" />
+ </bean>
+
+ <bean class="org.openecomp.sdc.be.externalapi.servlet.CrudExternalServlet">
+ <constructor-arg ref="userAdmin" />
+ <constructor-arg ref="componentInstanceBusinessLogic" />
+ <constructor-arg ref="componentUtils"/>
+ <constructor-arg ref="servletUtils" />
+ <constructor-arg ref="resourceImportManager" />
+ <constructor-arg ref="elementBusinessLogic" />
+ <constructor-arg ref="assetMetadataConverter" />
+ <constructor-arg ref="lifecycleBusinessLogic" />
+ <constructor-arg ref="resourceBusinessLogic" />
+ <constructor-arg ref="serviceBusinessLogic" />
+ </bean>
+
+
</beans>