use of org.camunda.bpm.engine.repository.Resource in project camunda-bpm-platform by camunda.
the class BpmnDeploymentTest method testDeploymentIdOfResource.
@Deployment(resources = { "org/camunda/bpm/engine/test/bpmn/deployment/BpmnDeploymentTest.testGetBpmnXmlFileThroughService.bpmn20.xml" })
public void testDeploymentIdOfResource() {
String deploymentId = repositoryService.createDeploymentQuery().singleResult().getId();
List<Resource> resources = repositoryService.getDeploymentResources(deploymentId);
assertEquals(1, resources.size());
Resource resource = resources.get(0);
assertEquals(deploymentId, resource.getDeploymentId());
}
use of org.camunda.bpm.engine.repository.Resource in project camunda-bpm-platform by camunda.
the class EmbeddedProcessApplicationTest method testDeployAppWithAdditionalResourceSuffixes.
public void testDeployAppWithAdditionalResourceSuffixes() {
registerProcessEngine();
TestApplicationWithAdditionalResourceSuffixes processApplication = new TestApplicationWithAdditionalResourceSuffixes();
processApplication.deploy();
Deployment deployment = repositoryService.createDeploymentQuery().singleResult();
assertNotNull(deployment);
List<Resource> deploymentResources = repositoryService.getDeploymentResources(deployment.getId());
assertEquals(4, deploymentResources.size());
processApplication.undeploy();
assertEquals(0, repositoryService.createDeploymentQuery().count());
}
Aggregations