use of org.activiti.api.process.model.Deployment in project Activiti by Activiti.
the class ProcessRuntimeIT method should_selectLatestDeployment.
@Test
public void should_selectLatestDeployment() {
Deployment deployment = processRuntime.selectLatestDeployment();
assertThat(deployment.getVersion()).isEqualTo(1);
assertThat(deployment.getProjectReleaseVersion()).isEqualTo("1");
assertThat(deployment.getName()).isEqualTo("SpringAutoDeployment");
}
use of org.activiti.api.process.model.Deployment in project Activiti by Activiti.
the class ProcessRuntimeIT method should_OnlyProcessDefinitionsFromLatestVersionRetrieved.
@Test
public void should_OnlyProcessDefinitionsFromLatestVersionRetrieved() {
Deployment deployment = processRuntime.selectLatestDeployment();
Page<ProcessDefinition> processDefinitionPage = processRuntime.processDefinitions(PAGEABLE);
assertThat(processDefinitionPage.getContent().stream().filter(c -> c.getKey().equals(SUPER_PROCESS))).extracting(ProcessDefinition::getAppVersion).containsOnly(deployment.getVersion().toString());
}
Aggregations