Hello,
I am running the following unit test:
@RunWith(SpringJUnit4ClassRunner.class)
public class ProcessTest {
private ProcessEngineConfiguration processEngineConfiguration;
private ProcessEngine processEngine;
@Before
public void setUp() {
this.processEngineConfiguration = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();
this.processEngine = processEngineConfiguration.buildProcessEngine();
}
@Test
@Deployment (resources = "test.bpmn")
public void shouldStartProcess() {
ProcessInstance processInstance = processEngine.getRuntimeService().startProcessInstanceByKey("test");
}
}
I have the file test.bpmn under the resources folder.
<bpmn2:process id="test" isExecutable="true"> // I assume that process id is the process instance key??
When I run the test I get the following exception:
org.camunda.bpm.engine.exception.NullValueException: no processes deployed with key 'test': processDefinition is null.
The process is somehow not deployed can someone tell me what am I doing wrong here?
Thank you
Best regards,