KModuleDeploymentService extends AbstractDeploymentService { static boolean isProcessFile(final String fileName) { return fileName.matches(".+bpmn(2|-cm)?$"); } KModuleDeploymentService(); void onInit(); @Override void deploy(DeploymentUnit unit); @Override void undeploy(DeploymentUnit unit, Function<DeploymentUnit, Boolean> beforeUndeploy); void setBpmn2Service(DefinitionService bpmn2Service); void setMerger(DeploymentDescriptorMerger merger); void setFormManagerService(FormManagerService formManagerService); void setExecutorService(ExecutorService executorService); @Override void activate(String deploymentId); @Override void deactivate(String deploymentId);  }
@Test public void testIsProcessFile() throws Exception { assertTrue(KModuleDeploymentService.isProcessFile("abc.bpmn")); assertTrue(KModuleDeploymentService.isProcessFile("abc.bpmn2")); assertTrue(KModuleDeploymentService.isProcessFile("abc.bpmn-cm")); assertFalse(KModuleDeploymentService.isProcessFile("abc.bpmn2-cm")); }