AnsweredAssumed Answered

Deployment annotation in unit test: undeploy does not work

Question asked by sor1 on May 31, 2012
Latest reply on Jun 25, 2012 by frederikheremans1
With V 5.9, in a unit test, if I use the deployment annotation , it is said in the user guide that the process should be undeployed at the end of the test but it is not the case:

   @Test
    @Deployment(resources = { "com/toto/MyProcess.bpmn20.xml" })
    public void testMyProcess()
    {
        […]
        runtimeService.startProcessInstanceByKey(mProcessInstanceKey);
        […]
    }

In activiti explorer, the process is still present in the deployment list; its name is the name of my test.
What's wrong? What should I do to undeploy automatically the deployment of MyProcess.bpmn20.xml?

Outcomes