Containerization feature of SO
[so.git] / bpmn / so-bpmn-infrastructure-common / src / test / resources / applicationContext_forPnfTesting.xml
1 <beans xmlns="http://www.springframework.org/schema/beans"
2   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   xmlns:context="http://www.springframework.org/schema/context"
4   xsi:schemaLocation="http://www.springframework.org/schema/beans
5                          http://www.springframework.org/schema/beans/spring-beans.xsd
6                          http://www.springframework.org/schema/context
7                          http://www.springframework.org/schema/context/spring-context-2.5.xsd" >
8
9   <bean id="dataSource" class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy">
10     <property name="targetDataSource">
11       <bean class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
12         <property name="driverClass" value="org.h2.Driver" />
13         <property name="url"
14           value="jdbc:h2:mem:process-engine;DB_CLOSE_DELAY=1000" />
15         <property name="username" value="sa" />
16         <property name="password" value="" />
17       </bean>
18     </property>
19   </bean>
20
21   <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
22     <property name="dataSource" ref="dataSource" />
23   </bean>
24
25   <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration">
26     <property name="processEngineName" value="engine" />
27     <property name="dataSource" ref="dataSource" />
28     <property name="transactionManager" ref="transactionManager" />
29     <property name="databaseSchemaUpdate" value="true" />
30     <property name="jobExecutorActivate" value="false" />
31     <!--<property name="deploymentResources" value="classpath*:*.bpmn" />-->
32   </bean>
33
34   <bean id="processEngine" class="org.camunda.bpm.engine.spring.ProcessEngineFactoryBean">
35     <property name="processEngineConfiguration" ref="processEngineConfiguration" />
36   </bean>
37
38   <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
39   <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
40   <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
41   <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
42   <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />
43
44   <context:annotation-config />
45
46   <bean id="processEngineRule" class="org.camunda.bpm.engine.test.ProcessEngineRule">
47     <property name="processEngine" ref="processEngine" />
48   </bean>
49
50   <bean id="aaiConnection" class="org.onap.so.bpmn.infrastructure.pnf.delegate.AaiConnectionTestImpl"/>
51
52   <bean id="checkAaiForCorrelationIdDelegate" class="org.onap.so.bpmn.infrastructure.pnf.delegate.CheckAaiForCorrelationIdDelegate">
53     <property name="aaiConnection" ref="aaiConnection"/>
54   </bean>
55
56   <bean id="createAaiEntryWithPnfIdDelegate" class="org.onap.so.bpmn.infrastructure.pnf.delegate.CreateAaiEntryWithPnfIdDelegate">
57     <property name="aaiConnection" ref="aaiConnection"/>
58   </bean>
59
60   <bean id="informDmaapClient" class="org.onap.so.bpmn.infrastructure.pnf.delegate.InformDmaapClient">
61     <property name="dmaapClient" ref="dmaapClient"/>
62   </bean>
63
64   <bean id="dmaapClient" class="org.onap.so.bpmn.infrastructure.pnf.delegate.DmaapClientTestImpl"/>
65
66
67   <bean id="pnfCheckInputs" class="org.onap.so.bpmn.infrastructure.pnf.delegate.PnfCheckInputs">
68     <property name="defaultTimeout" value="PT1S"/>
69   </bean>
70 </beans>