07-12-2016 02:55 PM
String deploymentId = activitiRule.getRepositoryService()
.createDeployment()
.addClasspathResource("diagrams/my-process.bpmn")
.tenantId(tenantId)
.deploy()
.getId();
activitiRule.getRepositoryService().deleteDeployment(deploymentId, true);
07-13-2016 01:19 AM
It appears a tenant ID cannot be specified in the @Deployment declaration, correct?Yes
Is this the best way to deploy a process for a specific tenant in a JUnit test?From my point of view with the current code base, yes
Is there a more elegant solution that someone has come up with to ensure all @Test methods start with a nice clean instance of the repository?Have a look on the @Deployment annotation impl. It is done in the similar way.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.