@@ -0,0 +1,2201 @@
+package org.camunda.bpm.engine.test.standalone.deploy;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.camunda.bpm.engine.ProcessEngineConfiguration;%0Aimport org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl;%0Aimport org.camunda.bpm.engine.impl.history.HistoryLevel;%0Aimport org.camunda.bpm.engine.repository.DeploymentWithDefinitions;%0Aimport org.camunda.bpm.engine.test.util.ProcessEngineBootstrapRule;%0Aimport org.camunda.bpm.engine.test.util.ProcessEngineTestRule;%0Aimport org.camunda.bpm.engine.test.util.ProvidedProcessEngineRule;%0Aimport org.camunda.bpm.model.bpmn.Bpmn;%0Aimport org.camunda.bpm.model.bpmn.BpmnModelInstance;%0Aimport org.junit.ClassRule;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.RuleChain;%0A%0Apublic class DeploymentTest %7B%0A%0A  protected ProvidedProcessEngineRule engineRule = new ProvidedProcessEngineRule(bootstrapRule);%0A  protected ProcessEngineTestRule testHelper = new ProcessEngineTestRule(engineRule);%0A%0A  @ClassRule%0A  public static ProcessEngineBootstrapRule bootstrapRule = new ProcessEngineBootstrapRule() %7B%0A    @Override%0A    public ProcessEngineConfiguration configureEngine(ProcessEngineConfigurationImpl configuration) %7B%0A      configuration.setJdbcUrl(%22jdbc:h2:mem:DeploymentTest-HistoryLevelNone;DB_CLOSE_DELAY=1000%22);%0A      configuration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_CREATE_DROP);%0A      configuration.setHistoryLevel(HistoryLevel.HISTORY_LEVEL_NONE);%0A      configuration.setDbHistoryUsed(false);%0A      return configuration;%0A    %7D%0A  %7D;%0A%0A  @Rule%0A  public RuleChain ruleChain = RuleChain.outerRule(engineRule).around(testHelper);%0A%0A  @Test%0A  public void shouldDeleteDeployment() %7B%0A     BpmnModelInstance instance = Bpmn.createExecutableProcess(%22process%22).startEvent().endEvent().done();%0A%0A     DeploymentWithDefinitions deployment = engineRule.getRepositoryService()%0A         .createDeployment()%0A         .addModelInstance(%22foo.bpmn%22, instance)%0A         .deployAndReturnDefinitions();%0A%0A     engineRule.getRepositoryService().deleteDeployment(deployment.getId(), true);%0A%0A     long count = engineRule.getRepositoryService().createDeploymentQuery().count();%0A     assertEquals(0, count);%0A  %7D%0A%0A%0A%7D%0A

add missing test case