Files
alfresco-community-repo/config/test/alfresco/test-workflow-context.xml
N Smith 1dfbefe4d5 Nick S: Created a JBPMEngineUnitTest which uses much less of the Spring context and is much faster to run.
Also created a OneToManyMap and a OneToManyBiMap to help mock up the NamespaceService.

*** IMPORTANT!!! ***
The test requires a new database schema. The schema has the same name as the original schema but has _test after it, i.e. ${db.name}_test


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15746 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-14 10:58:14 +00:00

34 lines
1.1 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- -->
<!-- Alfresco BPM Registry -->
<!-- -->
<bean id="test_bpm_engineRegistry" class="org.alfresco.repo.workflow.BPMEngineRegistry" />
<bean id="test_bpm_engine" class="org.alfresco.repo.workflow.BPMEngine"
abstract="true">
<property name="BPMEngineRegistry" ref="test_bpm_engineRegistry" />
</bean>
<!-- -->
<!-- jBPM Implementation -->
<!-- -->
<bean id="test_jbpm_configuration"
class="org.alfresco.repo.workflow.jbpm.AlfrescoJbpmConfigurationFactoryBean">
<property name="sessionFactory" ref="testSessionFactory" />
<property name="configuration"
value="classpath:test/alfresco/jbpm.cfg.xml" />
</bean>
<bean id="test_jbpm_template"
class="org.alfresco.repo.workflow.jbpm.JBPMTransactionTemplate">
<constructor-arg index="0" ref="test_jbpm_configuration" />
</bean>
</beans>