package org.camunda.bpm.example.multiple_versions_parallel.nonarquillian;

import org.camunda.bpm.engine.impl.util.LogUtil;
import org.camunda.bpm.engine.test.ProcessEngineTestCase;
import org.camunda.bpm.engine.test.Deployment;

/**
 * Test case starting an in-memory database-backed Process Engine.
 */
public class InMemoryH2Test extends ProcessEngineTestCase {

  private static final String PROCESS_DEFINITION_KEY = "multiple-versions-parallel";

  // enable more detailed logging
  static {
    LogUtil.readJavaUtilLoggingConfigFromClasspath();
  }

  /**
   * Just tests if the process definition is deployable.
   */
  @Deployment(resources = "process.bpmn")
  public void testParsingAndDeployment() {
    // nothing is done here, as we just want to check for exceptions during deployment
  }

}

@@ -68,16 +68,107 @@
 llian;%0A%0A
+import java.io.IOException;%0Aimport java.util.Properties;%0Aimport java.util.ResourceBundle;%0A%0A
 import o
@@ -208,16 +208,16 @@
 ogUtil;%0A
-
 import o
@@ -532,16 +532,18 @@
 parallel
+-v
 %22;%0A%0A  //
@@ -705,16 +705,42 @@
 oyable.%0A
+   * @throws IOException %0A
    */%0A  
@@ -824,96 +824,315 @@
 t() 
-%7B%0A    // nothing is done here, as we just want to check for exceptions during deployment
+throws IOException %7B%0A    Properties version = new Properties();%0A    version.load(this.getClass().getResourceAsStream(%22/version.properties%22));%0A    runtimeService.startProcessInstanceByKey(PROCESS_DEFINITION_KEY + version.getProperty(%22maven.version.major%22) + %22.%22 + version.getProperty(%22maven.version.minor%22));
 %0A  %7D

Access version in test case