Setting the classpath of process definition files in JUnit

cancel
Showing results for 
Search instead for 
Did you mean: 
navitect
Active Member

Setting the classpath of process definition files in JUnit

Jump to solution

I'm using the process designer in Eclipse to develop and test my processes. How do I correctly set the path to the process definition files to the default source directory (src/main/resources/diagrams) that's used in Junit 4?

I've tried all sorts of variations, however the only solution I've found is to copy the process definition files into the test directory with just the name of the file declared in the Junit source file.

@Test
    @Deployment(resources = { "ServiceTest.bpmn" })
    public void test() {

This doesn't seem very satisfactory, especially as having bpmn files in this directory seems to stop the creation of deployment artifacts.

1 Solution

Accepted Solutions
bassam_al-saror
Alfresco Employee

Re: Setting the classpath of process definition files in JUnit

Jump to solution

does this work?

@Deployment(resources = "diagrams/ServiceTest.bpmn")

View solution in original post

2 Replies
bassam_al-saror
Alfresco Employee

Re: Setting the classpath of process definition files in JUnit

Jump to solution

does this work?

@Deployment(resources = "diagrams/ServiceTest.bpmn")

navitect
Active Member

Re: Setting the classpath of process definition files in JUnit

Jump to solution

Thanks, that works. Thought I'd tried that along with various other possibilities.