cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the classpath of process definition files in JUnit

navitect
Champ on-the-rise
Champ on-the-rise

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 ACCEPTED ANSWER

bassam_al-saror
Star Collaborator
Star Collaborator

does this work?

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

View answer in original post

2 REPLIES 2

bassam_al-saror
Star Collaborator
Star Collaborator

does this work?

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

navitect
Champ on-the-rise
Champ on-the-rise

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