use of org.camunda.bpm.engine.repository.DeleteProcessDefinitionsBuilder in project camunda-bpm-platform by camunda.
the class ProcessDefinitionRestServiceInteractionTest method testDeleteDefinitionsByKey.
@Test
public void testDeleteDefinitionsByKey() {
given().pathParam("key", MockProvider.EXAMPLE_PROCESS_DEFINITION_KEY).expect().statusCode(Status.NO_CONTENT.getStatusCode()).when().delete(SINGLE_PROCESS_DEFINITION_BY_KEY_DELETE_URL);
DeleteProcessDefinitionsBuilder builder = repositoryServiceMock.deleteProcessDefinitions().byKey(MockProvider.EXAMPLE_PROCESS_DEFINITION_KEY);
verify(builder).delete();
}
use of org.camunda.bpm.engine.repository.DeleteProcessDefinitionsBuilder in project camunda-bpm-platform by camunda.
the class ProcessDefinitionRestServiceInteractionTest method testDeleteDefinitionsByKeySkipCustomListeners.
@Test
public void testDeleteDefinitionsByKeySkipCustomListeners() {
given().pathParam("key", MockProvider.EXAMPLE_PROCESS_DEFINITION_KEY).queryParam("skipCustomListeners", true).expect().statusCode(Status.NO_CONTENT.getStatusCode()).when().delete(SINGLE_PROCESS_DEFINITION_BY_KEY_DELETE_URL);
DeleteProcessDefinitionsBuilder builder = repositoryServiceMock.deleteProcessDefinitions().byKey(MockProvider.EXAMPLE_PROCESS_DEFINITION_KEY).skipCustomListeners();
verify(builder).delete();
}
Aggregations