-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fixed-tgg-tests
- Loading branch information
Showing
33 changed files
with
1,014 additions
and
664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig"> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/TestsuiteGT"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="4"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.eclemma.core.SCOPE_IDS"> | ||
<listEntry value="=org.emoflon.ibex.common/xtend-gen"/> | ||
<listEntry value="=org.emoflon.ibex.gt.democles/src"/> | ||
<listEntry value="=org.emoflon.ibex.gt/gen"/> | ||
<listEntry value="=org.emoflon.ibex.gt/src"/> | ||
<listEntry value="=org.emoflon.ibex.gt/xtend-gen"/> | ||
<listEntry value="=org.emoflon.ibex.common/gen"/> | ||
<listEntry value="=org.emoflon.ibex.common/src"/> | ||
</listAttribute> | ||
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value="=TestsuiteGT"/> | ||
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/> | ||
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/> | ||
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/> | ||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="TestsuiteGT"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
testsuites/TestsuiteGT/resources/SimpleFamilies/FamilyRegister3.xmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SimpleFamilies:FamilyRegister | ||
xmi:version="2.0" | ||
xmlns:xmi="http://www.omg.org/XMI" | ||
xmlns:SimpleFamilies="platform:/resource/SimpleFamilies/model/SimpleFamilies.ecore"> | ||
<families | ||
name="Simpson"/> | ||
<families | ||
name="Watson"/> | ||
<families | ||
name="Simpson"/> | ||
<families | ||
name="Simpson"/> | ||
</SimpleFamilies:FamilyRegister> |
27 changes: 27 additions & 0 deletions
27
testsuites/TestsuiteGT/resources/SimplePersons/PersonRegister.xmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<SimplePersons:PersonRegister | ||
xmi:version="2.0" | ||
xmlns:xmi="http://www.omg.org/XMI" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:SimplePersons="platform:/resource/SimplePersons/model/SimplePersons.ecore"> | ||
<persons xsi:type="SimplePersons:Female" | ||
name="Adams, Adriana"/> | ||
<persons xsi:type="SimplePersons:Male" | ||
name="Adams, Alexander"/> | ||
<persons xsi:type="SimplePersons:Female" | ||
name="Jackson, James"/> | ||
<persons xsi:type="SimplePersons:Male" | ||
name="Jackson, Jason"/> | ||
<persons xsi:type="SimplePersons:Male" | ||
name="Miller, Martin"/> | ||
<persons xsi:type="SimplePersons:Male" | ||
name="Owen, Oliver"/> | ||
<persons xsi:type="SimplePersons:Female" | ||
name="Owen, Olivia"/> | ||
<persons xsi:type="SimplePersons:Male" | ||
name="Smith, Samuel"/> | ||
<persons xsi:type="SimplePersons:Female" | ||
name="Smith, Sally"/> | ||
<persons xsi:type="SimplePersons:Female" | ||
name="Smith, Sarah"/> | ||
</SimplePersons:PersonRegister> |
25 changes: 5 additions & 20 deletions
25
testsuites/TestsuiteGT/test/org/emoflon/ibex/gt/testsuite/BPMN/BPMNAbstractTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,23 @@ | ||
package org.emoflon.ibex.gt.testsuite.BPMN; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import org.eclipse.emf.ecore.EPackage; | ||
import org.eclipse.emf.ecore.resource.ResourceSet; | ||
import org.emoflon.ibex.common.operational.IContextPatternInterpreter; | ||
import org.emoflon.ibex.gt.testsuite.GTTestCase; | ||
import org.emoflon.ibex.gt.testsuite.GTAppTestCase; | ||
|
||
import BPMNGraphTransformation.api.BPMNGraphTransformationAPI; | ||
import bpmn2.Bpmn2Package; | ||
import bpmn2InstanceRepresentation.Bpmn2InstanceRepresentationPackage; | ||
import BPMNGraphTransformation.api.BPMNGraphTransformationApp; | ||
|
||
/** | ||
* Abstract test class for the BPMN Graph Transformation API. All tests for this | ||
* API should inherit from this class. | ||
*/ | ||
public class BPMNAbstractTest extends GTTestCase<BPMNGraphTransformationAPI> { | ||
public class BPMNAbstractTest extends GTAppTestCase<BPMNGraphTransformationApp, BPMNGraphTransformationAPI> { | ||
|
||
@Override | ||
protected String getTestName() { | ||
return "BPMN"; | ||
} | ||
|
||
@Override | ||
protected BPMNGraphTransformationAPI getAPI(final IContextPatternInterpreter engine, final ResourceSet model) { | ||
return new BPMNGraphTransformationAPI(engine, model, GTTestCase.workspacePath); | ||
} | ||
|
||
@Override | ||
protected Map<String, EPackage> getMetaModelPackages() { | ||
HashMap<String, EPackage> map = new HashMap<String, EPackage>(); | ||
map.put(Bpmn2Package.eNS_URI, Bpmn2Package.eINSTANCE); | ||
map.put(Bpmn2InstanceRepresentationPackage.eNS_URI, Bpmn2InstanceRepresentationPackage.eINSTANCE); | ||
return map; | ||
protected BPMNGraphTransformationApp getApp() { | ||
return new BPMNGraphTransformationApp(initEngine(), workspacePath); | ||
} | ||
} |
Oops, something went wrong.