AnsweredAssumed Answered

Setting the classpath of process definition files in JUnit

Question asked by navitect on Aug 23, 2018
Latest reply on Sep 15, 2018 by navitect

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.

Outcomes