diff --git a/bundles/org.dataflowanalysis.pcm.extension.dictionary.characterized.dsl/META-INF/MANIFEST.MF b/bundles/org.dataflowanalysis.pcm.extension.dictionary.characterized.dsl/META-INF/MANIFEST.MF index db56759..c334a84 100644 --- a/bundles/org.dataflowanalysis.pcm.extension.dictionary.characterized.dsl/META-INF/MANIFEST.MF +++ b/bundles/org.dataflowanalysis.pcm.extension.dictionary.characterized.dsl/META-INF/MANIFEST.MF @@ -7,6 +7,7 @@ Bundle-Version: 5.1.0.qualifier Bundle-SymbolicName: org.dataflowanalysis.pcm.extension.dictionary.characterized.dsl; singleton:=true Bundle-ActivationPolicy: lazy Require-Bundle: org.dataflowanalysis.pcm.extension.dictionary.characterized, + org.eclipse.emf.common;bundle-version="2.27.0", org.eclipse.xtext, org.eclipse.xtext.xbase, org.eclipse.equinox.common;bundle-version="3.5.0", diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/.classpath b/bundles/org.dataflowanalysis.pcm.extension.model.tests/.classpath deleted file mode 100644 index 1a82131..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/.project b/bundles/org.dataflowanalysis.pcm.extension.model.tests/.project deleted file mode 100644 index f6b4652..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.dataflowanalysis.pcm.extension.model.tests - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/.settings/org.eclipse.core.resources.prefs b/bundles/org.dataflowanalysis.pcm.extension.model.tests/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 99f26c0..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -encoding/=UTF-8 diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/META-INF/MANIFEST.MF b/bundles/org.dataflowanalysis.pcm.extension.model.tests/META-INF/MANIFEST.MF deleted file mode 100644 index 4415c65..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/META-INF/MANIFEST.MF +++ /dev/null @@ -1,30 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.dataflowanalysis.pcm.extension.model.tests;singleton:=true -Automatic-Module-Name: org.dataflowanalysis.pcm.extension.model.tests -Bundle-Version: 1.0.0.qualifier -Bundle-ClassPath: . -Bundle-Vendor: %providerName -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: JavaSE-17 -Export-Package: org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests, - org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests, - org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.tests, - org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests, - org.dataflowanalysis.pcm.extension.model.confidentiality.repository.tests, - org.dataflowanalysis.pcm.extension.model.confidentiality.tests -Require-Bundle: org.eclipse.core.runtime, - org.dataflowanalysis.pcm.extension.model;visibility:=reexport, - org.dataflowanalysis.pcm.extension.dictionary;visibility:=reexport, - org.dataflowanalysis.pcm.extension.dictionary.characterized;visibility:=reexport, - org.eclipse.emf.ecore;visibility:=reexport, - de.uka.ipd.sdq.identifier;visibility:=reexport, - org.palladiosimulator.indirections;visibility:=reexport, - org.palladiosimulator.pcm;visibility:=reexport, - de.uka.ipd.sdq.probfunction;visibility:=reexport, - de.uka.ipd.sdq.stoex;visibility:=reexport, - de.uka.ipd.sdq.units;visibility:=reexport, - org.eclipse.emf.ecore.xmi;visibility:=reexport, - org.junit;visibility:=reexport -Bundle-ActivationPolicy: lazy diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/build.properties b/bundles/org.dataflowanalysis.pcm.extension.model.tests/build.properties deleted file mode 100644 index 08af068..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/build.properties +++ /dev/null @@ -1,8 +0,0 @@ -# - -bin.includes = .,\ - META-INF/,\ - plugin.properties -jars.compile.order = . -source.. = src/ -output.. = bin/ diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/plugin.properties b/bundles/org.dataflowanalysis.pcm.extension.model.tests/plugin.properties deleted file mode 100644 index 0b09e9e..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/plugin.properties +++ /dev/null @@ -1,4 +0,0 @@ -# - -pluginName = Model Tests -providerName = www.example.org diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourExample.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourExample.java deleted file mode 100644 index f0f9a7c..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourExample.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests; - -import java.io.File; -import java.io.IOException; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourPackage; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.DataChannelBehaviour; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.emf.ecore.util.Diagnostician; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -/** - * - * A sample utility for the 'behaviour' package. - * - * @generated - */ -public class BehaviourExample { - /** - * - * Load all the argument file paths or URIs as instances of the model. - * - * @param args the file paths or URIs. - * @generated - */ - public static void main(String[] args) { - // Create a resource set to hold the resources. - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Register the appropriate resource factory to handle all file extensions. - // - resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put - (Resource.Factory.Registry.DEFAULT_EXTENSION, - new XMIResourceFactoryImpl()); - - // Register the package to ensure it is available during loading. - // - resourceSet.getPackageRegistry().put - (BehaviourPackage.eNS_URI, - BehaviourPackage.eINSTANCE); - - // If there are no arguments, emit an appropriate usage message. - // - if (args.length == 0) { - System.out.println("Enter a list of file paths or URIs that have content like this:"); - try { - Resource resource = resourceSet.createResource(URI.createURI("http:///My.behaviour")); - DataChannelBehaviour root = BehaviourFactory.eINSTANCE.createDataChannelBehaviour(); - resource.getContents().add(root); - resource.save(System.out, null); - } - catch (IOException exception) { - exception.printStackTrace(); - } - } - else { - // Iterate over all the arguments. - // - for (int i = 0; i < args.length; ++i) { - // Construct the URI for the instance file. - // The argument is treated as a file path only if it denotes an existing file. - // Otherwise, it's directly treated as a URL. - // - File file = new File(args[i]); - URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[i]); - - try { - // Demand load resource for this file. - // - Resource resource = resourceSet.getResource(uri, true); - System.out.println("Loaded " + uri); - - // Validate the contents of the loaded resource. - // - for (EObject eObject : resource.getContents()) { - Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject); - if (diagnostic.getSeverity() != Diagnostic.OK) { - printDiagnostic(diagnostic, ""); - } - } - } - catch (RuntimeException exception) { - System.out.println("Problem loading " + uri); - exception.printStackTrace(); - } - } - } - } - - /** - * - * Prints diagnostics with indentation. - * - * @param diagnostic the diagnostic to print. - * @param indent the indentation for printing. - * @generated - */ - protected static void printDiagnostic(Diagnostic diagnostic, String indent) { - System.out.print(indent); - System.out.println(diagnostic.getMessage()); - for (Diagnostic child : diagnostic.getChildren()) { - printDiagnostic(child, indent + " "); - } - } - -} //BehaviourExample diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourReuseTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourReuseTest.java deleted file mode 100644 index ee1dcd5..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourReuseTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourReuse; - -/** - * - * A test case for the model object 'Reuse'. - * - * @generated - */ -public class BehaviourReuseTest extends TestCase { - - /** - * The fixture for this Reuse test case. - * - * - * @generated - */ - protected BehaviourReuse fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(BehaviourReuseTest.class); - } - - /** - * Constructs a new Reuse test case with the given name. - * - * - * @generated - */ - public BehaviourReuseTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Reuse test case. - * - * - * @generated - */ - protected void setFixture(BehaviourReuse fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Reuse test case. - * - * - * @generated - */ - protected BehaviourReuse getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(BehaviourFactory.eINSTANCE.createBehaviourReuse()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //BehaviourReuseTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourTests.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourTests.java deleted file mode 100644 index c2adabd..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehaviourTests.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'behaviour' package. - * - * @generated - */ -public class BehaviourTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new BehaviourTests("behaviour Tests"); - suite.addTestSuite(DataChannelBehaviourTest.class); - suite.addTestSuite(ReusableBehaviourTest.class); - return suite; - } - - /** - * - * - * @generated - */ - public BehaviourTests(String name) { - super(name); - } - -} //BehaviourTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehavioursTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehavioursTest.java deleted file mode 100644 index 886a17b..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/BehavioursTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.Behaviours; - -/** - * - * A test case for the model object 'Behaviours'. - * - * @generated - */ -public class BehavioursTest extends TestCase { - - /** - * The fixture for this Behaviours test case. - * - * - * @generated - */ - protected Behaviours fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(BehavioursTest.class); - } - - /** - * Constructs a new Behaviours test case with the given name. - * - * - * @generated - */ - public BehavioursTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Behaviours test case. - * - * - * @generated - */ - protected void setFixture(Behaviours fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Behaviours test case. - * - * - * @generated - */ - protected Behaviours getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(BehaviourFactory.eINSTANCE.createBehaviours()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //BehavioursTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/DataChannelBehaviourTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/DataChannelBehaviourTest.java deleted file mode 100644 index bf4f3cd..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/DataChannelBehaviourTest.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.DataChannelBehaviour; - -/** - * - * A test case for the model object 'Data Channel Behaviour'. - * - *

- * The following features are tested: - *

- *

- * @generated - */ -public class DataChannelBehaviourTest extends TestCase { - - /** - * The fixture for this Data Channel Behaviour test case. - * - * - * @generated - */ - protected DataChannelBehaviour fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(DataChannelBehaviourTest.class); - } - - /** - * Constructs a new Data Channel Behaviour test case with the given name. - * - * - * @generated - */ - public DataChannelBehaviourTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Data Channel Behaviour test case. - * - * - * @generated - */ - protected void setFixture(DataChannelBehaviour fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Data Channel Behaviour test case. - * - * - * @generated - */ - protected DataChannelBehaviour getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(BehaviourFactory.eINSTANCE.createDataChannelBehaviour()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - - /** - * Tests the '{@link org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.DataChannelBehaviour#getDataSources() Data Sources}' feature getter. - * - * - * @see org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.DataChannelBehaviour#getDataSources() - * @generated - */ - public void testGetDataSources() { - // TODO: implement this feature getter test method - // Ensure that you remove @generated or mark it @generated NOT - fail(); - } - - /** - * Tests the '{@link org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.DataChannelBehaviour#getDataSinks() Data Sinks}' feature getter. - * - * - * @see org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.DataChannelBehaviour#getDataSinks() - * @generated - */ - public void testGetDataSinks() { - // TODO: implement this feature getter test method - // Ensure that you remove @generated or mark it @generated NOT - fail(); - } - -} //DataChannelBehaviourTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/ReusableBehaviourTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/ReusableBehaviourTest.java deleted file mode 100644 index 9974222..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/ReusableBehaviourTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.ReusableBehaviour; - -/** - * - * A test case for the model object 'Reusable Behaviour'. - * - * @generated - */ -public class ReusableBehaviourTest extends TestCase { - - /** - * The fixture for this Reusable Behaviour test case. - * - * - * @generated - */ - protected ReusableBehaviour fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(ReusableBehaviourTest.class); - } - - /** - * Constructs a new Reusable Behaviour test case with the given name. - * - * - * @generated - */ - public ReusableBehaviourTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Reusable Behaviour test case. - * - * - * @generated - */ - protected void setFixture(ReusableBehaviour fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Reusable Behaviour test case. - * - * - * @generated - */ - protected ReusableBehaviour getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(BehaviourFactory.eINSTANCE.createReusableBehaviour()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //ReusableBehaviourTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/VariableBindingTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/VariableBindingTest.java deleted file mode 100644 index 508a92d..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/behaviour/tests/VariableBindingTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.BehaviourFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.VariableBinding; - -/** - * - * A test case for the model object 'Variable Binding'. - * - * @generated - */ -public class VariableBindingTest extends TestCase { - - /** - * The fixture for this Variable Binding test case. - * - * - * @generated - */ - protected VariableBinding fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(VariableBindingTest.class); - } - - /** - * Constructs a new Variable Binding test case with the given name. - * - * - * @generated - */ - public VariableBindingTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Variable Binding test case. - * - * - * @generated - */ - protected void setFixture(VariableBinding fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Variable Binding test case. - * - * - * @generated - */ - protected VariableBinding getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(BehaviourFactory.eINSTANCE.createVariableBinding()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //VariableBindingTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicTest.java deleted file mode 100644 index a53fe2c..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import junit.framework.TestCase; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.Characteristic; - -/** - * - * A test case for the model object 'Characteristic'. - * - * @generated - */ -public abstract class CharacteristicTest extends TestCase { - - /** - * The fixture for this Characteristic test case. - * - * - * @generated - */ - protected Characteristic fixture = null; - - /** - * Constructs a new Characteristic test case with the given name. - * - * - * @generated - */ - public CharacteristicTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Characteristic test case. - * - * - * @generated - */ - protected void setFixture(Characteristic fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Characteristic test case. - * - * - * @generated - */ - protected Characteristic getFixture() { - return fixture; - } - -} //CharacteristicTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicTypeDictionaryTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicTypeDictionaryTest.java deleted file mode 100644 index f4ae40d..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicTypeDictionaryTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicTypeDictionary; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicsFactory; - -/** - * - * A test case for the model object 'Characteristic Type Dictionary'. - * - * @generated - */ -public class CharacteristicTypeDictionaryTest extends TestCase { - - /** - * The fixture for this Characteristic Type Dictionary test case. - * - * - * @generated - */ - protected CharacteristicTypeDictionary fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(CharacteristicTypeDictionaryTest.class); - } - - /** - * Constructs a new Characteristic Type Dictionary test case with the given name. - * - * - * @generated - */ - public CharacteristicTypeDictionaryTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Characteristic Type Dictionary test case. - * - * - * @generated - */ - protected void setFixture(CharacteristicTypeDictionary fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Characteristic Type Dictionary test case. - * - * - * @generated - */ - protected CharacteristicTypeDictionary getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(CharacteristicsFactory.eINSTANCE.createCharacteristicTypeDictionary()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //CharacteristicTypeDictionaryTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsExample.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsExample.java deleted file mode 100644 index 0606c92..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsExample.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import java.io.File; -import java.io.IOException; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicTypeDictionary; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicsFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicsPackage; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.emf.ecore.util.Diagnostician; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -/** - * - * A sample utility for the 'characteristics' package. - * - * @generated - */ -public class CharacteristicsExample { - /** - * - * Load all the argument file paths or URIs as instances of the model. - * - * @param args the file paths or URIs. - * @generated - */ - public static void main(String[] args) { - // Create a resource set to hold the resources. - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Register the appropriate resource factory to handle all file extensions. - // - resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put - (Resource.Factory.Registry.DEFAULT_EXTENSION, - new XMIResourceFactoryImpl()); - - // Register the package to ensure it is available during loading. - // - resourceSet.getPackageRegistry().put - (CharacteristicsPackage.eNS_URI, - CharacteristicsPackage.eINSTANCE); - - // If there are no arguments, emit an appropriate usage message. - // - if (args.length == 0) { - System.out.println("Enter a list of file paths or URIs that have content like this:"); - try { - Resource resource = resourceSet.createResource(URI.createURI("http:///My.characteristics")); - CharacteristicTypeDictionary root = CharacteristicsFactory.eINSTANCE.createCharacteristicTypeDictionary(); - resource.getContents().add((EObject)root); - resource.save(System.out, null); - } - catch (IOException exception) { - exception.printStackTrace(); - } - } - else { - // Iterate over all the arguments. - // - for (int i = 0; i < args.length; ++i) { - // Construct the URI for the instance file. - // The argument is treated as a file path only if it denotes an existing file. - // Otherwise, it's directly treated as a URL. - // - File file = new File(args[i]); - URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[i]); - - try { - // Demand load resource for this file. - // - Resource resource = resourceSet.getResource(uri, true); - System.out.println("Loaded " + uri); - - // Validate the contents of the loaded resource. - // - for (EObject eObject : resource.getContents()) { - Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject); - if (diagnostic.getSeverity() != Diagnostic.OK) { - printDiagnostic(diagnostic, ""); - } - } - } - catch (RuntimeException exception) { - System.out.println("Problem loading " + uri); - exception.printStackTrace(); - } - } - } - } - - /** - * - * Prints diagnostics with indentation. - * - * @param diagnostic the diagnostic to print. - * @param indent the indentation for printing. - * @generated - */ - protected static void printDiagnostic(Diagnostic diagnostic, String indent) { - System.out.print(indent); - System.out.println(diagnostic.getMessage()); - for (Diagnostic child : diagnostic.getChildren()) { - printDiagnostic(child, indent + " "); - } - } - -} //CharacteristicsExample diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsTest.java deleted file mode 100644 index 7cf5cdc..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.Characteristics; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicsFactory; - -/** - * - * A test case for the model object 'Characteristics'. - * - * @generated - */ -public class CharacteristicsTest extends TestCase { - - /** - * The fixture for this Characteristics test case. - * - * - * @generated - */ - protected Characteristics fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(CharacteristicsTest.class); - } - - /** - * Constructs a new Characteristics test case with the given name. - * - * - * @generated - */ - public CharacteristicsTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Characteristics test case. - * - * - * @generated - */ - protected void setFixture(Characteristics fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Characteristics test case. - * - * - * @generated - */ - protected Characteristics getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(CharacteristicsFactory.eINSTANCE.createCharacteristics()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //CharacteristicsTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsTests.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsTests.java deleted file mode 100644 index 25750c4..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/CharacteristicsTests.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'characteristics' package. - * - * @generated - */ -public class CharacteristicsTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new CharacteristicsTests("characteristics Tests"); - suite.addTestSuite(EnumCharacteristicTest.class); - suite.addTestSuite(DataTypeCharacteristicTest.class); - return suite; - } - - /** - * - * - * @generated - */ - public CharacteristicsTests(String name) { - super(name); - } - -} //CharacteristicsTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/DataTypeCharacteristicTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/DataTypeCharacteristicTest.java deleted file mode 100644 index 0626d51..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/DataTypeCharacteristicTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicsFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.DataTypeCharacteristic; - -/** - * - * A test case for the model object 'Data Type Characteristic'. - * - * @generated - */ -public class DataTypeCharacteristicTest extends CharacteristicTest { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(DataTypeCharacteristicTest.class); - } - - /** - * Constructs a new Data Type Characteristic test case with the given name. - * - * - * @generated - */ - public DataTypeCharacteristicTest(String name) { - super(name); - } - - /** - * Returns the fixture for this Data Type Characteristic test case. - * - * - * @generated - */ - @Override - protected DataTypeCharacteristic getFixture() { - return (DataTypeCharacteristic)fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(CharacteristicsFactory.eINSTANCE.createDataTypeCharacteristic()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //DataTypeCharacteristicTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/DataTypeCharacteristicTypeTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/DataTypeCharacteristicTypeTest.java deleted file mode 100644 index 5a09fc6..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/DataTypeCharacteristicTypeTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicsFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.DataTypeCharacteristicType; - -/** - * - * A test case for the model object 'Data Type Characteristic Type'. - * - * @generated - */ -public class DataTypeCharacteristicTypeTest extends TestCase { - - /** - * The fixture for this Data Type Characteristic Type test case. - * - * - * @generated - */ - protected DataTypeCharacteristicType fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(DataTypeCharacteristicTypeTest.class); - } - - /** - * Constructs a new Data Type Characteristic Type test case with the given name. - * - * - * @generated - */ - public DataTypeCharacteristicTypeTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Data Type Characteristic Type test case. - * - * - * @generated - */ - protected void setFixture(DataTypeCharacteristicType fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Data Type Characteristic Type test case. - * - * - * @generated - */ - protected DataTypeCharacteristicType getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(CharacteristicsFactory.eINSTANCE.createDataTypeCharacteristicType()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //DataTypeCharacteristicTypeTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/EnumCharacteristicTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/EnumCharacteristicTest.java deleted file mode 100644 index 291663f..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/characteristics/tests/EnumCharacteristicTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.CharacteristicsFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.EnumCharacteristic; - -/** - * - * A test case for the model object 'Enum Characteristic'. - * - * @generated - */ -public class EnumCharacteristicTest extends CharacteristicTest { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(EnumCharacteristicTest.class); - } - - /** - * Constructs a new Enum Characteristic test case with the given name. - * - * - * @generated - */ - public EnumCharacteristicTest(String name) { - super(name); - } - - /** - * Returns the fixture for this Enum Characteristic test case. - * - * - * @generated - */ - @Override - protected EnumCharacteristic getFixture() { - return (EnumCharacteristic)fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(CharacteristicsFactory.eINSTANCE.createEnumCharacteristic()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //EnumCharacteristicTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/DictionaryExample.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/DictionaryExample.java deleted file mode 100644 index bc9b8e4..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/DictionaryExample.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.tests; - -import java.io.File; -import java.io.IOException; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.DictionaryFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.DictionaryPackage; -import org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.PCMDataDictionary; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.emf.ecore.util.Diagnostician; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -/** - * - * A sample utility for the 'dictionary' package. - * - * @generated - */ -public class DictionaryExample { - /** - * - * Load all the argument file paths or URIs as instances of the model. - * - * @param args the file paths or URIs. - * @generated - */ - public static void main(String[] args) { - // Create a resource set to hold the resources. - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Register the appropriate resource factory to handle all file extensions. - // - resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put - (Resource.Factory.Registry.DEFAULT_EXTENSION, - new XMIResourceFactoryImpl()); - - // Register the package to ensure it is available during loading. - // - resourceSet.getPackageRegistry().put - (DictionaryPackage.eNS_URI, - DictionaryPackage.eINSTANCE); - - // If there are no arguments, emit an appropriate usage message. - // - if (args.length == 0) { - System.out.println("Enter a list of file paths or URIs that have content like this:"); - try { - Resource resource = resourceSet.createResource(URI.createURI("http:///My.dictionary")); - PCMDataDictionary root = DictionaryFactory.eINSTANCE.createPCMDataDictionary(); - resource.getContents().add((EObject)root); - resource.save(System.out, null); - } - catch (IOException exception) { - exception.printStackTrace(); - } - } - else { - // Iterate over all the arguments. - // - for (int i = 0; i < args.length; ++i) { - // Construct the URI for the instance file. - // The argument is treated as a file path only if it denotes an existing file. - // Otherwise, it's directly treated as a URL. - // - File file = new File(args[i]); - URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[i]); - - try { - // Demand load resource for this file. - // - Resource resource = resourceSet.getResource(uri, true); - System.out.println("Loaded " + uri); - - // Validate the contents of the loaded resource. - // - for (EObject eObject : resource.getContents()) { - Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject); - if (diagnostic.getSeverity() != Diagnostic.OK) { - printDiagnostic(diagnostic, ""); - } - } - } - catch (RuntimeException exception) { - System.out.println("Problem loading " + uri); - exception.printStackTrace(); - } - } - } - } - - /** - * - * Prints diagnostics with indentation. - * - * @param diagnostic the diagnostic to print. - * @param indent the indentation for printing. - * @generated - */ - protected static void printDiagnostic(Diagnostic diagnostic, String indent) { - System.out.print(indent); - System.out.println(diagnostic.getMessage()); - for (Diagnostic child : diagnostic.getChildren()) { - printDiagnostic(child, indent + " "); - } - } - -} //DictionaryExample diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/DictionaryTests.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/DictionaryTests.java deleted file mode 100644 index 56c04b4..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/DictionaryTests.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'dictionary' package. - * - * @generated - */ -public class DictionaryTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new DictionaryTests("dictionary Tests"); - return suite; - } - - /** - * - * - * @generated - */ - public DictionaryTests(String name) { - super(name); - } - -} //DictionaryTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/PCMDataDictionaryTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/PCMDataDictionaryTest.java deleted file mode 100644 index 806ce4d..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/dictionary/tests/PCMDataDictionaryTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.DictionaryFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.dictionary.PCMDataDictionary; - -/** - * - * A test case for the model object 'PCM Data Dictionary'. - * - * @generated - */ -public class PCMDataDictionaryTest extends TestCase { - - /** - * The fixture for this PCM Data Dictionary test case. - * - * - * @generated - */ - protected PCMDataDictionary fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(PCMDataDictionaryTest.class); - } - - /** - * Constructs a new PCM Data Dictionary test case with the given name. - * - * - * @generated - */ - public PCMDataDictionaryTest(String name) { - super(name); - } - - /** - * Sets the fixture for this PCM Data Dictionary test case. - * - * - * @generated - */ - protected void setFixture(PCMDataDictionary fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this PCM Data Dictionary test case. - * - * - * @generated - */ - protected PCMDataDictionary getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(DictionaryFactory.eINSTANCE.createPCMDataDictionary()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //PCMDataDictionaryTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/AbstractNamedReferenceReferenceTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/AbstractNamedReferenceReferenceTest.java deleted file mode 100644 index ff5f67c..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/AbstractNamedReferenceReferenceTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.framework.TestCase; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.AbstractNamedReferenceReference; - -/** - * - * A test case for the model object 'Abstract Named Reference Reference'. - * - * @generated - */ -public abstract class AbstractNamedReferenceReferenceTest extends TestCase { - - /** - * The fixture for this Abstract Named Reference Reference test case. - * - * - * @generated - */ - protected AbstractNamedReferenceReference fixture = null; - - /** - * Constructs a new Abstract Named Reference Reference test case with the given name. - * - * - * @generated - */ - public AbstractNamedReferenceReferenceTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Abstract Named Reference Reference test case. - * - * - * @generated - */ - protected void setFixture(AbstractNamedReferenceReference fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Abstract Named Reference Reference test case. - * - * - * @generated - */ - protected AbstractNamedReferenceReference getFixture() { - return fixture; - } - -} //AbstractNamedReferenceReferenceTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/DataTypeCharacteristicReferenceTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/DataTypeCharacteristicReferenceTest.java deleted file mode 100644 index fdb04f0..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/DataTypeCharacteristicReferenceTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.framework.TestCase; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.DataTypeCharacteristicReference; - -/** - * - * A test case for the model object 'Data Type Characteristic Reference'. - * - * @generated - */ -public abstract class DataTypeCharacteristicReferenceTest extends TestCase { - - /** - * The fixture for this Data Type Characteristic Reference test case. - * - * - * @generated - */ - protected DataTypeCharacteristicReference fixture = null; - - /** - * Constructs a new Data Type Characteristic Reference test case with the given name. - * - * - * @generated - */ - public DataTypeCharacteristicReferenceTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Data Type Characteristic Reference test case. - * - * - * @generated - */ - protected void setFixture(DataTypeCharacteristicReference fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Data Type Characteristic Reference test case. - * - * - * @generated - */ - protected DataTypeCharacteristicReference getFixture() { - return fixture; - } - -} //DataTypeCharacteristicReferenceTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/ExpressionExample.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/ExpressionExample.java deleted file mode 100644 index dae6350..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/ExpressionExample.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import java.io.File; -import java.io.IOException; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.ExpressionFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.ExpressionPackage; -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.NamedDataTypeCharacteristicReference; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.emf.ecore.util.Diagnostician; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -/** - * - * A sample utility for the 'expression' package. - * - * @generated - */ -public class ExpressionExample { - /** - * - * Load all the argument file paths or URIs as instances of the model. - * - * @param args the file paths or URIs. - * @generated - */ - public static void main(String[] args) { - // Create a resource set to hold the resources. - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Register the appropriate resource factory to handle all file extensions. - // - resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put - (Resource.Factory.Registry.DEFAULT_EXTENSION, - new XMIResourceFactoryImpl()); - - // Register the package to ensure it is available during loading. - // - resourceSet.getPackageRegistry().put - (ExpressionPackage.eNS_URI, - ExpressionPackage.eINSTANCE); - - // If there are no arguments, emit an appropriate usage message. - // - if (args.length == 0) { - System.out.println("Enter a list of file paths or URIs that have content like this:"); - try { - Resource resource = resourceSet.createResource(URI.createURI("http:///My.expression")); - NamedDataTypeCharacteristicReference root = ExpressionFactory.eINSTANCE.createNamedDataTypeCharacteristicReference(); - resource.getContents().add(root); - resource.save(System.out, null); - } - catch (IOException exception) { - exception.printStackTrace(); - } - } - else { - // Iterate over all the arguments. - // - for (int i = 0; i < args.length; ++i) { - // Construct the URI for the instance file. - // The argument is treated as a file path only if it denotes an existing file. - // Otherwise, it's directly treated as a URL. - // - File file = new File(args[i]); - URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[i]); - - try { - // Demand load resource for this file. - // - Resource resource = resourceSet.getResource(uri, true); - System.out.println("Loaded " + uri); - - // Validate the contents of the loaded resource. - // - for (EObject eObject : resource.getContents()) { - Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject); - if (diagnostic.getSeverity() != Diagnostic.OK) { - printDiagnostic(diagnostic, ""); - } - } - } - catch (RuntimeException exception) { - System.out.println("Problem loading " + uri); - exception.printStackTrace(); - } - } - } - } - - /** - * - * Prints diagnostics with indentation. - * - * @param diagnostic the diagnostic to print. - * @param indent the indentation for printing. - * @generated - */ - protected static void printDiagnostic(Diagnostic diagnostic, String indent) { - System.out.print(indent); - System.out.println(diagnostic.getMessage()); - for (Diagnostic child : diagnostic.getChildren()) { - printDiagnostic(child, indent + " "); - } - } - -} //ExpressionExample diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/ExpressionTests.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/ExpressionTests.java deleted file mode 100644 index 95281fa..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/ExpressionTests.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'expression' package. - * - * @generated - */ -public class ExpressionTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new ExpressionTests("expression Tests"); - suite.addTestSuite(NamedDataTypeCharacteristicReferenceTest.class); - suite.addTestSuite(NamedEnumCharacteristicReferenceTest.class); - suite.addTestSuite(LhsEnumCharacteristicReferenceTest.class); - suite.addTestSuite(LhsDataTypeCharacteristicReferenceTest.class); - return suite; - } - - /** - * - * - * @generated - */ - public ExpressionTests(String name) { - super(name); - } - -} //ExpressionTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/LhsDataTypeCharacteristicReferenceTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/LhsDataTypeCharacteristicReferenceTest.java deleted file mode 100644 index 40b62ea..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/LhsDataTypeCharacteristicReferenceTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.ExpressionFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.LhsDataTypeCharacteristicReference; - -/** - * - * A test case for the model object 'Lhs Data Type Characteristic Reference'. - * - * @generated - */ -public class LhsDataTypeCharacteristicReferenceTest extends DataTypeCharacteristicReferenceTest { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(LhsDataTypeCharacteristicReferenceTest.class); - } - - /** - * Constructs a new Lhs Data Type Characteristic Reference test case with the given name. - * - * - * @generated - */ - public LhsDataTypeCharacteristicReferenceTest(String name) { - super(name); - } - - /** - * Returns the fixture for this Lhs Data Type Characteristic Reference test case. - * - * - * @generated - */ - @Override - protected LhsDataTypeCharacteristicReference getFixture() { - return (LhsDataTypeCharacteristicReference)fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(ExpressionFactory.eINSTANCE.createLhsDataTypeCharacteristicReference()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //LhsDataTypeCharacteristicReferenceTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/LhsEnumCharacteristicReferenceTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/LhsEnumCharacteristicReferenceTest.java deleted file mode 100644 index 3339b5b..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/LhsEnumCharacteristicReferenceTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.ExpressionFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.LhsEnumCharacteristicReference; - -/** - * - * A test case for the model object 'Lhs Enum Characteristic Reference'. - * - * @generated - */ -public class LhsEnumCharacteristicReferenceTest extends TestCase { - - /** - * The fixture for this Lhs Enum Characteristic Reference test case. - * - * - * @generated - */ - protected LhsEnumCharacteristicReference fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(LhsEnumCharacteristicReferenceTest.class); - } - - /** - * Constructs a new Lhs Enum Characteristic Reference test case with the given name. - * - * - * @generated - */ - public LhsEnumCharacteristicReferenceTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Lhs Enum Characteristic Reference test case. - * - * - * @generated - */ - protected void setFixture(LhsEnumCharacteristicReference fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Lhs Enum Characteristic Reference test case. - * - * - * @generated - */ - protected LhsEnumCharacteristicReference getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(ExpressionFactory.eINSTANCE.createLhsEnumCharacteristicReference()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //LhsEnumCharacteristicReferenceTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/NamedDataTypeCharacteristicReferenceTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/NamedDataTypeCharacteristicReferenceTest.java deleted file mode 100644 index 22f90b1..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/NamedDataTypeCharacteristicReferenceTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.ExpressionFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.NamedDataTypeCharacteristicReference; - -/** - * - * A test case for the model object 'Named Data Type Characteristic Reference'. - * - * @generated - */ -public class NamedDataTypeCharacteristicReferenceTest extends DataTypeCharacteristicReferenceTest { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(NamedDataTypeCharacteristicReferenceTest.class); - } - - /** - * Constructs a new Named Data Type Characteristic Reference test case with the given name. - * - * - * @generated - */ - public NamedDataTypeCharacteristicReferenceTest(String name) { - super(name); - } - - /** - * Returns the fixture for this Named Data Type Characteristic Reference test case. - * - * - * @generated - */ - @Override - protected NamedDataTypeCharacteristicReference getFixture() { - return (NamedDataTypeCharacteristicReference)fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(ExpressionFactory.eINSTANCE.createNamedDataTypeCharacteristicReference()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //NamedDataTypeCharacteristicReferenceTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/NamedEnumCharacteristicReferenceTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/NamedEnumCharacteristicReferenceTest.java deleted file mode 100644 index 74c4711..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/NamedEnumCharacteristicReferenceTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.ExpressionFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.NamedEnumCharacteristicReference; - -/** - * - * A test case for the model object 'Named Enum Characteristic Reference'. - * - * @generated - */ -public class NamedEnumCharacteristicReferenceTest extends TestCase { - - /** - * The fixture for this Named Enum Characteristic Reference test case. - * - * - * @generated - */ - protected NamedEnumCharacteristicReference fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(NamedEnumCharacteristicReferenceTest.class); - } - - /** - * Constructs a new Named Enum Characteristic Reference test case with the given name. - * - * - * @generated - */ - public NamedEnumCharacteristicReferenceTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Named Enum Characteristic Reference test case. - * - * - * @generated - */ - protected void setFixture(NamedEnumCharacteristicReference fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Named Enum Characteristic Reference test case. - * - * - * @generated - */ - protected NamedEnumCharacteristicReference getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(ExpressionFactory.eINSTANCE.createNamedEnumCharacteristicReference()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //NamedEnumCharacteristicReferenceTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/VariableCharacterizationLhsTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/VariableCharacterizationLhsTest.java deleted file mode 100644 index ef001f7..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/expression/tests/VariableCharacterizationLhsTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests; - -import junit.framework.TestCase; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.VariableCharacterizationLhs; - -/** - * - * A test case for the model object 'Variable Characterization Lhs'. - * - * @generated - */ -public abstract class VariableCharacterizationLhsTest extends TestCase { - - /** - * The fixture for this Variable Characterization Lhs test case. - * - * - * @generated - */ - protected VariableCharacterizationLhs fixture = null; - - /** - * Constructs a new Variable Characterization Lhs test case with the given name. - * - * - * @generated - */ - public VariableCharacterizationLhsTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Variable Characterization Lhs test case. - * - * - * @generated - */ - protected void setFixture(VariableCharacterizationLhs fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Variable Characterization Lhs test case. - * - * - * @generated - */ - protected VariableCharacterizationLhs getFixture() { - return fixture; - } - -} //VariableCharacterizationLhsTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/OperationalDataStoreComponentTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/OperationalDataStoreComponentTest.java deleted file mode 100644 index f95c0e6..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/OperationalDataStoreComponentTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.repository.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.repository.OperationalDataStoreComponent; -import org.dataflowanalysis.pcm.extension.model.confidentiality.repository.RepositoryFactory; - -/** - * - * A test case for the model object 'Operational Data Store Component'. - * - * @generated - */ -public class OperationalDataStoreComponentTest extends TestCase { - - /** - * The fixture for this Operational Data Store Component test case. - * - * - * @generated - */ - protected OperationalDataStoreComponent fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(OperationalDataStoreComponentTest.class); - } - - /** - * Constructs a new Operational Data Store Component test case with the given name. - * - * - * @generated - */ - public OperationalDataStoreComponentTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Operational Data Store Component test case. - * - * - * @generated - */ - protected void setFixture(OperationalDataStoreComponent fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Operational Data Store Component test case. - * - * - * @generated - */ - protected OperationalDataStoreComponent getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(RepositoryFactory.eINSTANCE.createOperationalDataStoreComponent()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //OperationalDataStoreComponentTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/RepositoryExample.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/RepositoryExample.java deleted file mode 100644 index 4cc060c..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/RepositoryExample.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.repository.tests; - -import java.io.File; -import java.io.IOException; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.repository.OperationalDataStoreComponent; -import org.dataflowanalysis.pcm.extension.model.confidentiality.repository.RepositoryFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.repository.RepositoryPackage; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.emf.ecore.util.Diagnostician; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -/** - * - * A sample utility for the 'repository' package. - * - * @generated - */ -public class RepositoryExample { - /** - * - * Load all the argument file paths or URIs as instances of the model. - * - * @param args the file paths or URIs. - * @generated - */ - public static void main(String[] args) { - // Create a resource set to hold the resources. - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Register the appropriate resource factory to handle all file extensions. - // - resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put - (Resource.Factory.Registry.DEFAULT_EXTENSION, - new XMIResourceFactoryImpl()); - - // Register the package to ensure it is available during loading. - // - resourceSet.getPackageRegistry().put - (RepositoryPackage.eNS_URI, - RepositoryPackage.eINSTANCE); - - // If there are no arguments, emit an appropriate usage message. - // - if (args.length == 0) { - System.out.println("Enter a list of file paths or URIs that have content like this:"); - try { - Resource resource = resourceSet.createResource(URI.createURI("http:///My.repository")); - OperationalDataStoreComponent root = RepositoryFactory.eINSTANCE.createOperationalDataStoreComponent(); - resource.getContents().add(root); - resource.save(System.out, null); - } - catch (IOException exception) { - exception.printStackTrace(); - } - } - else { - // Iterate over all the arguments. - // - for (int i = 0; i < args.length; ++i) { - // Construct the URI for the instance file. - // The argument is treated as a file path only if it denotes an existing file. - // Otherwise, it's directly treated as a URL. - // - File file = new File(args[i]); - URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[i]); - - try { - // Demand load resource for this file. - // - Resource resource = resourceSet.getResource(uri, true); - System.out.println("Loaded " + uri); - - // Validate the contents of the loaded resource. - // - for (EObject eObject : resource.getContents()) { - Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject); - if (diagnostic.getSeverity() != Diagnostic.OK) { - printDiagnostic(diagnostic, ""); - } - } - } - catch (RuntimeException exception) { - System.out.println("Problem loading " + uri); - exception.printStackTrace(); - } - } - } - } - - /** - * - * Prints diagnostics with indentation. - * - * @param diagnostic the diagnostic to print. - * @param indent the indentation for printing. - * @generated - */ - protected static void printDiagnostic(Diagnostic diagnostic, String indent) { - System.out.print(indent); - System.out.println(diagnostic.getMessage()); - for (Diagnostic child : diagnostic.getChildren()) { - printDiagnostic(child, indent + " "); - } - } - -} //RepositoryExample diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/RepositoryTests.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/RepositoryTests.java deleted file mode 100644 index 2e85959..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/repository/tests/RepositoryTests.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.repository.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'repository' package. - * - * @generated - */ -public class RepositoryTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new RepositoryTests("repository Tests"); - suite.addTestSuite(OperationalDataStoreComponentTest.class); - return suite; - } - - /** - * - * - * @generated - */ - public RepositoryTests(String name) { - super(name); - } - -} //RepositoryTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityExample.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityExample.java deleted file mode 100644 index 9011210..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityExample.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.tests; - -import java.io.File; -import java.io.IOException; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.ConfidentialityFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.ConfidentialityPackage; -import org.dataflowanalysis.pcm.extension.model.confidentiality.ConfidentialityVariableCharacterisation; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.emf.ecore.util.Diagnostician; - -import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl; - -/** - * - * A sample utility for the 'confidentiality' package. - * - * @generated - */ -public class ConfidentialityExample { - /** - * - * Load all the argument file paths or URIs as instances of the model. - * - * @param args the file paths or URIs. - * @generated - */ - public static void main(String[] args) { - // Create a resource set to hold the resources. - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Register the appropriate resource factory to handle all file extensions. - // - resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put - (Resource.Factory.Registry.DEFAULT_EXTENSION, - new XMIResourceFactoryImpl()); - - // Register the package to ensure it is available during loading. - // - resourceSet.getPackageRegistry().put - (ConfidentialityPackage.eNS_URI, - ConfidentialityPackage.eINSTANCE); - - // If there are no arguments, emit an appropriate usage message. - // - if (args.length == 0) { - System.out.println("Enter a list of file paths or URIs that have content like this:"); - try { - Resource resource = resourceSet.createResource(URI.createURI("http:///My.confidentiality")); - ConfidentialityVariableCharacterisation root = ConfidentialityFactory.eINSTANCE.createConfidentialityVariableCharacterisation(); - resource.getContents().add(root); - resource.save(System.out, null); - } - catch (IOException exception) { - exception.printStackTrace(); - } - } - else { - // Iterate over all the arguments. - // - for (int i = 0; i < args.length; ++i) { - // Construct the URI for the instance file. - // The argument is treated as a file path only if it denotes an existing file. - // Otherwise, it's directly treated as a URL. - // - File file = new File(args[i]); - URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[i]); - - try { - // Demand load resource for this file. - // - Resource resource = resourceSet.getResource(uri, true); - System.out.println("Loaded " + uri); - - // Validate the contents of the loaded resource. - // - for (EObject eObject : resource.getContents()) { - Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject); - if (diagnostic.getSeverity() != Diagnostic.OK) { - printDiagnostic(diagnostic, ""); - } - } - } - catch (RuntimeException exception) { - System.out.println("Problem loading " + uri); - exception.printStackTrace(); - } - } - } - } - - /** - * - * Prints diagnostics with indentation. - * - * @param diagnostic the diagnostic to print. - * @param indent the indentation for printing. - * @generated - */ - protected static void printDiagnostic(Diagnostic diagnostic, String indent) { - System.out.print(indent); - System.out.println(diagnostic.getMessage()); - for (Diagnostic child : diagnostic.getChildren()) { - printDiagnostic(child, indent + " "); - } - } - -} //ConfidentialityExample diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityTests.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityTests.java deleted file mode 100644 index 8ee4286..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityTests.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'confidentiality' package. - * - * @generated - */ -public class ConfidentialityTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new ConfidentialityTests("confidentiality Tests"); - suite.addTestSuite(ConfidentialityVariableCharacterisationTest.class); - return suite; - } - - /** - * - * - * @generated - */ - public ConfidentialityTests(String name) { - super(name); - } - -} //ConfidentialityTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityVariableCharacterisationTest.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityVariableCharacterisationTest.java deleted file mode 100644 index 23237d6..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/ConfidentialityVariableCharacterisationTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.model.confidentiality.ConfidentialityFactory; -import org.dataflowanalysis.pcm.extension.model.confidentiality.ConfidentialityVariableCharacterisation; - -/** - * - * A test case for the model object 'Variable Characterisation'. - * - * @generated - */ -public class ConfidentialityVariableCharacterisationTest extends TestCase { - - /** - * The fixture for this Variable Characterisation test case. - * - * - * @generated - */ - protected ConfidentialityVariableCharacterisation fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(ConfidentialityVariableCharacterisationTest.class); - } - - /** - * Constructs a new Variable Characterisation test case with the given name. - * - * - * @generated - */ - public ConfidentialityVariableCharacterisationTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Variable Characterisation test case. - * - * - * @generated - */ - protected void setFixture(ConfidentialityVariableCharacterisation fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Variable Characterisation test case. - * - * - * @generated - */ - protected ConfidentialityVariableCharacterisation getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(ConfidentialityFactory.eINSTANCE.createConfidentialityVariableCharacterisation()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //ConfidentialityVariableCharacterisationTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/DataFlowConfidentialityAllTests.java b/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/DataFlowConfidentialityAllTests.java deleted file mode 100644 index 5ac3ebd..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.model.tests/src/org/dataflowanalysis/pcm/extension/model/confidentiality/tests/DataFlowConfidentialityAllTests.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.model.confidentiality.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; -import org.dataflowanalysis.pcm.extension.model.confidentiality.behaviour.tests.BehaviourTests; -import org.dataflowanalysis.pcm.extension.model.confidentiality.characteristics.tests.CharacteristicsTests; -import org.dataflowanalysis.pcm.extension.model.confidentiality.expression.tests.ExpressionTests; -import org.dataflowanalysis.pcm.extension.model.confidentiality.repository.tests.RepositoryTests; - -/** - * - * A test suite for the 'DataFlowConfidentiality' model. - * - * @generated - */ -public class DataFlowConfidentialityAllTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new DataFlowConfidentialityAllTests("DataFlowConfidentiality Tests"); - suite.addTest(ConfidentialityTests.suite()); - suite.addTest(CharacteristicsTests.suite()); - suite.addTest(ExpressionTests.suite()); - suite.addTest(BehaviourTests.suite()); - suite.addTest(RepositoryTests.suite()); - return suite; - } - - /** - * - * - * @generated - */ - public DataFlowConfidentialityAllTests(String name) { - super(name); - } - -} //DataFlowConfidentialityAllTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.model/model/dataFlowConfidentiality.genmodel b/bundles/org.dataflowanalysis.pcm.extension.model/model/dataFlowConfidentiality.genmodel index 7cec317..474f06d 100644 --- a/bundles/org.dataflowanalysis.pcm.extension.model/model/dataFlowConfidentiality.genmodel +++ b/bundles/org.dataflowanalysis.pcm.extension.model/model/dataFlowConfidentiality.genmodel @@ -6,7 +6,7 @@ editPluginClass="org.dataflowanalysis.pcm.extension.model.confidentiality.provider.DataFlowConfidentialityEditPlugin" editorPluginClass="org.dataflowanalysis.pcm.extension.model.confidentiality.presentation.DataFlowConfidentialityEditorPlugin" rootExtendsInterface="org.eclipse.emf.cdo.CDOObject" rootExtendsClass="org.eclipse.emf.internal.cdo.CDOObjectImpl" - reflectiveDelegation="true" testSuiteClass="org.dataflowanalysis.pcm.extension.model.confidentiality.tests.DataFlowConfidentialityAllTests" + reflectiveDelegation="true" importerID="org.eclipse.emf.importer.cdo" featureDelegation="Reflective" complianceLevel="5.0" copyrightFields="false" providerRootExtendsClass="org.eclipse.emf.cdo.edit.CDOItemProviderAdapter" editPluginID="org.dataflowanalysis.pcm.extension.model.edit" editorPluginID="org.dataflowanalysis.pcm.extension.model.editor" diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/.classpath b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/.classpath index 1a82131..a7a673f 100644 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/.classpath +++ b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/.classpath @@ -1,6 +1,5 @@ - diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AbstractAssigneeTest.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AbstractAssigneeTest.java deleted file mode 100644 index 56db8c4..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AbstractAssigneeTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.tests; - -import junit.framework.TestCase; - -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.AbstractAssignee; - -/** - * - * A test case for the model object 'Abstract Assignee'. - * - * @generated - */ -public abstract class AbstractAssigneeTest extends TestCase { - - /** - * The fixture for this Abstract Assignee test case. - * - * - * @generated - */ - protected AbstractAssignee fixture = null; - - /** - * Constructs a new Abstract Assignee test case with the given name. - * - * - * @generated - */ - public AbstractAssigneeTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Abstract Assignee test case. - * - * - * @generated - */ - protected void setFixture(AbstractAssignee fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Abstract Assignee test case. - * - * - * @generated - */ - protected AbstractAssignee getFixture() { - return fixture; - } - -} //AbstractAssigneeTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AssemblyAssigneeTest.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AssemblyAssigneeTest.java deleted file mode 100644 index 11b65b8..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AssemblyAssigneeTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.tests; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.AssemblyAssignee; -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.NodeCharacteristicsFactory; - -/** - * - * A test case for the model object 'Assembly Assignee'. - * - * @generated - */ -public class AssemblyAssigneeTest extends AbstractAssigneeTest { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(AssemblyAssigneeTest.class); - } - - /** - * Constructs a new Assembly Assignee test case with the given name. - * - * - * @generated - */ - public AssemblyAssigneeTest(String name) { - super(name); - } - - /** - * Returns the fixture for this Assembly Assignee test case. - * - * - * @generated - */ - @Override - protected AssemblyAssignee getFixture() { - return (AssemblyAssignee)fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(NodeCharacteristicsFactory.eINSTANCE.createAssemblyAssignee()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //AssemblyAssigneeTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AssignmentsTest.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AssignmentsTest.java deleted file mode 100644 index 12a40d4..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/AssignmentsTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.tests; - -import junit.framework.TestCase; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.Assignments; -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.NodeCharacteristicsFactory; - -/** - * - * A test case for the model object 'Assignments'. - * - * @generated - */ -public class AssignmentsTest extends TestCase { - - /** - * The fixture for this Assignments test case. - * - * - * @generated - */ - protected Assignments fixture = null; - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(AssignmentsTest.class); - } - - /** - * Constructs a new Assignments test case with the given name. - * - * - * @generated - */ - public AssignmentsTest(String name) { - super(name); - } - - /** - * Sets the fixture for this Assignments test case. - * - * - * @generated - */ - protected void setFixture(Assignments fixture) { - this.fixture = fixture; - } - - /** - * Returns the fixture for this Assignments test case. - * - * - * @generated - */ - protected Assignments getFixture() { - return fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(NodeCharacteristicsFactory.eINSTANCE.createAssignments()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //AssignmentsTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/NodeCharacteristicsExample.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/NodeCharacteristicsExample.java deleted file mode 100644 index 3c4bdc3..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/NodeCharacteristicsExample.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.tests; - -import java.io.File; -import java.io.IOException; - -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.NodeCharacteristicsFactory; -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.NodeCharacteristicsPackage; -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.UsageAsignee; - -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.util.NodeCharacteristicsResourceFactoryImpl; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.common.util.URI; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; - -import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; - -import org.eclipse.emf.ecore.util.Diagnostician; - -/** - * - * A sample utility for the 'nodecharacteristics' package. - * - * @generated - */ -public class NodeCharacteristicsExample { - /** - * - * Load all the argument file paths or URIs as instances of the model. - * - * @param args the file paths or URIs. - * @generated - */ - public static void main(String[] args) { - // Create a resource set to hold the resources. - // - ResourceSet resourceSet = new ResourceSetImpl(); - - // Register the appropriate resource factory to handle all file extensions. - // - resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put - (Resource.Factory.Registry.DEFAULT_EXTENSION, - new NodeCharacteristicsResourceFactoryImpl()); - - // Register the package to ensure it is available during loading. - // - resourceSet.getPackageRegistry().put - (NodeCharacteristicsPackage.eNS_URI, - NodeCharacteristicsPackage.eINSTANCE); - - // If there are no arguments, emit an appropriate usage message. - // - if (args.length == 0) { - System.out.println("Enter a list of file paths or URIs that have content like this:"); - try { - Resource resource = resourceSet.createResource(URI.createURI("http:///My.nodecharacteristics")); - UsageAsignee root = NodeCharacteristicsFactory.eINSTANCE.createUsageAsignee(); - resource.getContents().add((EObject)root); - resource.save(System.out, null); - } - catch (IOException exception) { - exception.printStackTrace(); - } - } - else { - // Iterate over all the arguments. - // - for (int i = 0; i < args.length; ++i) { - // Construct the URI for the instance file. - // The argument is treated as a file path only if it denotes an existing file. - // Otherwise, it's directly treated as a URL. - // - File file = new File(args[i]); - URI uri = file.isFile() ? URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[i]); - - try { - // Demand load resource for this file. - // - Resource resource = resourceSet.getResource(uri, true); - System.out.println("Loaded " + uri); - - // Validate the contents of the loaded resource. - // - for (EObject eObject : resource.getContents()) { - Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject); - if (diagnostic.getSeverity() != Diagnostic.OK) { - printDiagnostic(diagnostic, ""); - } - } - } - catch (RuntimeException exception) { - System.out.println("Problem loading " + uri); - exception.printStackTrace(); - } - } - } - } - - /** - * - * Prints diagnostics with indentation. - * - * @param diagnostic the diagnostic to print. - * @param indent the indentation for printing. - * @generated - */ - protected static void printDiagnostic(Diagnostic diagnostic, String indent) { - System.out.print(indent); - System.out.println(diagnostic.getMessage()); - for (Diagnostic child : diagnostic.getChildren()) { - printDiagnostic(child, indent + " "); - } - } - -} //NodeCharacteristicsExample diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/NodeCharacteristicsTests.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/NodeCharacteristicsTests.java deleted file mode 100644 index 92eb704..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/NodeCharacteristicsTests.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'nodecharacteristics' package. - * - * @generated - */ -public class NodeCharacteristicsTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new NodeCharacteristicsTests("nodecharacteristics Tests"); - return suite; - } - - /** - * - * - * @generated - */ - public NodeCharacteristicsTests(String name) { - super(name); - } - -} //NodeCharacteristicsTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/RessourceAssigneeTest.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/RessourceAssigneeTest.java deleted file mode 100644 index fd2d2ad..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/RessourceAssigneeTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.tests; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.NodeCharacteristicsFactory; -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.RessourceAssignee; - -/** - * - * A test case for the model object 'Ressource Assignee'. - * - * @generated - */ -public class RessourceAssigneeTest extends AbstractAssigneeTest { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(RessourceAssigneeTest.class); - } - - /** - * Constructs a new Ressource Assignee test case with the given name. - * - * - * @generated - */ - public RessourceAssigneeTest(String name) { - super(name); - } - - /** - * Returns the fixture for this Ressource Assignee test case. - * - * - * @generated - */ - @Override - protected RessourceAssignee getFixture() { - return (RessourceAssignee)fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(NodeCharacteristicsFactory.eINSTANCE.createRessourceAssignee()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //RessourceAssigneeTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/UsageAsigneeTest.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/UsageAsigneeTest.java deleted file mode 100644 index 6d60803..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/nodecharacteristics/tests/UsageAsigneeTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.tests; - -import junit.textui.TestRunner; - -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.NodeCharacteristicsFactory; -import org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.UsageAsignee; - -/** - * - * A test case for the model object 'Usage Asignee'. - * - * @generated - */ -public class UsageAsigneeTest extends AbstractAssigneeTest { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(UsageAsigneeTest.class); - } - - /** - * Constructs a new Usage Asignee test case with the given name. - * - * - * @generated - */ - public UsageAsigneeTest(String name) { - super(name); - } - - /** - * Returns the fixture for this Usage Asignee test case. - * - * - * @generated - */ - @Override - protected UsageAsignee getFixture() { - return (UsageAsignee)fixture; - } - - /** - * - * - * @see junit.framework.TestCase#setUp() - * @generated - */ - @Override - protected void setUp() throws Exception { - setFixture(NodeCharacteristicsFactory.eINSTANCE.createUsageAsignee()); - } - - /** - * - * - * @see junit.framework.TestCase#tearDown() - * @generated - */ - @Override - protected void tearDown() throws Exception { - setFixture(null); - } - -} //UsageAsigneeTest diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/tests/NodeCharacteristicsAllTests.java b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/tests/NodeCharacteristicsAllTests.java deleted file mode 100644 index 65b96a4..0000000 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics.tests/src/org/dataflowanalysis/pcm/extension/nodecharacteristics/tests/NodeCharacteristicsAllTests.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - */ -package org.dataflowanalysis.pcm.extension.nodecharacteristics.tests; - -import junit.framework.Test; -import junit.framework.TestSuite; - -import junit.textui.TestRunner; - -/** - * - * A test suite for the 'NodeCharacteristics' model. - * - * @generated - */ -public class NodeCharacteristicsAllTests extends TestSuite { - - /** - * - * - * @generated - */ - public static void main(String[] args) { - TestRunner.run(suite()); - } - - /** - * - * - * @generated - */ - public static Test suite() { - TestSuite suite = new NodeCharacteristicsAllTests("NodeCharacteristics Tests"); - return suite; - } - - /** - * - * - * @generated - */ - public NodeCharacteristicsAllTests(String name) { - super(name); - } - -} //NodeCharacteristicsAllTests diff --git a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics/model/nodeCharacteristics.genmodel b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics/model/nodeCharacteristics.genmodel index 528008e..7396be3 100644 --- a/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics/model/nodeCharacteristics.genmodel +++ b/bundles/org.dataflowanalysis.pcm.extension.nodecharacteristics/model/nodeCharacteristics.genmodel @@ -7,7 +7,7 @@ editPluginClass="org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.provider.NodeCharacteristicsEditPlugin" editorPluginClass="org.dataflowanalysis.pcm.extension.nodecharacteristics.nodecharacteristics.presentation.NodeCharacteristicsEditorPlugin" rootExtendsInterface="org.eclipse.emf.cdo.CDOObject" rootExtendsClass="org.eclipse.emf.internal.cdo.CDOObjectImpl" - reflectiveDelegation="true" testSuiteClass="org.dataflowanalysis.pcm.extension.nodecharacteristics.tests.NodeCharacteristicsAllTests" + reflectiveDelegation="true" importerID="org.eclipse.emf.importer.cdo" featureDelegation="Reflective" complianceLevel="5.0" copyrightFields="false" providerRootExtendsClass="org.eclipse.emf.cdo.edit.CDOItemProviderAdapter" editPluginID="org.dataflowanalysis.pcm.extension.nodecharacteristics.edit" editorPluginID="org.dataflowanalysis.pcm.extension.nodecharacteristics.editor" diff --git a/releng/org.dataflowanalysis.pcm.extension.dictionary.characterized.mwe2/META-INF/MANIFEST.MF b/releng/org.dataflowanalysis.pcm.extension.dictionary.characterized.mwe2/META-INF/MANIFEST.MF index a588181..7505caf 100644 --- a/releng/org.dataflowanalysis.pcm.extension.dictionary.characterized.mwe2/META-INF/MANIFEST.MF +++ b/releng/org.dataflowanalysis.pcm.extension.dictionary.characterized.mwe2/META-INF/MANIFEST.MF @@ -3,16 +3,17 @@ Bundle-ManifestVersion: 2 Bundle-Name: Workflow Bundle-SymbolicName: org.dataflowanalysis.pcm.extension.dictionary.characterized.mwe2 Bundle-Version: 5.1.0.qualifier -Automatic-Module-Name: oorg.dataflowanalysis.pcm.extension.dictionary.characterized.mwe2 +Automatic-Module-Name: org.dataflowanalysis.pcm.extension.dictionary.characterized.mwe2 Bundle-RequiredExecutionEnvironment: JavaSE-17 Require-Bundle: org.apache.commons.logging, + org.eclipse.emf.common;bundle-version="2.27.0", org.eclipse.uml2.codegen.ecore, tools.mdsd.ecoreworkflow.mwe2lib, de.uka.ipd.sdq.identifier;bundle-version="2.1.0", org.dataflowanalysis.pcm.extension.dictionary;bundle-version="0.1.0", + org.eclipse.xtext.xtext.generator, org.eclipse.xtext.xbase, org.eclipse.xtext.common.types, - org.eclipse.xtext.xtext.generator, org.eclipse.emf.codegen.ecore, org.eclipse.emf.mwe.utils, org.objectweb.asm, diff --git a/releng/org.dataflowanalysis.pcm.extension.dictionary.mwe2/META-INF/MANIFEST.MF b/releng/org.dataflowanalysis.pcm.extension.dictionary.mwe2/META-INF/MANIFEST.MF index 3443a36..33d436c 100644 --- a/releng/org.dataflowanalysis.pcm.extension.dictionary.mwe2/META-INF/MANIFEST.MF +++ b/releng/org.dataflowanalysis.pcm.extension.dictionary.mwe2/META-INF/MANIFEST.MF @@ -7,7 +7,6 @@ Automatic-Module-Name: org.dataflowanalysis.pcm.extension.dictionary.mwe2 Require-Bundle: org.eclipse.emf.mwe2.launch;bundle-version="2.10.0", org.eclipse.emf.mwe2.lib, tools.mdsd.ecoreworkflow.mwe2lib, - org.eclipse.xtext.xtext.generator, org.apache.log4j;bundle-version="1.2.15", org.eclipse.core.runtime;bundle-version="3.16.0", org.apache.commons.logging;bundle-version="1.2.0", diff --git a/releng/org.dataflowanalysis.pcm.extension.mwe2/META-INF/MANIFEST.MF b/releng/org.dataflowanalysis.pcm.extension.mwe2/META-INF/MANIFEST.MF index ef5be1d..3129bf9 100644 --- a/releng/org.dataflowanalysis.pcm.extension.mwe2/META-INF/MANIFEST.MF +++ b/releng/org.dataflowanalysis.pcm.extension.mwe2/META-INF/MANIFEST.MF @@ -5,25 +5,26 @@ Bundle-SymbolicName: org.dataflowanalysis.pcm.extension.mwe2 Bundle-Version: 5.1.0.qualifier Automatic-Module-Name: org.dataflowanalysis.pcm.extension.mwe2 Bundle-RequiredExecutionEnvironment: JavaSE-17 -Require-Bundle: tools.mdsd.ecoreworkflow.mwe2lib, +Require-Bundle: org.apache.commons.logging, + org.eclipse.emf.common;bundle-version="2.27.0", + org.eclipse.uml2.codegen.ecore, + tools.mdsd.ecoreworkflow.mwe2lib, + de.uka.ipd.sdq.identifier;bundle-version="2.1.0", org.eclipse.xtext.xtext.generator, + org.eclipse.xtext.xbase, + org.eclipse.xtext.common.types, + org.eclipse.emf.codegen.ecore, + org.eclipse.emf.mwe.utils, + org.objectweb.asm, + org.apache.commons.logging, + org.eclipse.emf.mwe2.launch, org.eclipse.emf.mwe2.lib, - org.eclipse.emf.mwe2.runtime;bundle-version="2.10.0", - org.eclipse.emf.mwe2.launch;bundle-version="2.10.0", org.apache.log4j;bundle-version="1.2.15", - org.eclipse.core.runtime;bundle-version="3.16.0", - org.apache.commons.logging;bundle-version="1.2.0", - org.eclipse.uml2.codegen.ecore;bundle-version="2.5.0", + de.itemis.xtext.antlr, + org.antlr.generator, de.uka.ipd.sdq.identifier;bundle-version="4.2.0", org.palladiosimulator.pcm;bundle-version="4.2.0", + org.palladiosimulator.indirections;bundle-version="4.3.0", org.dataflowanalysis.pcm.extension.dictionary;bundle-version="0.1.0", org.dataflowanalysis.pcm.extension.dictionary.characterized;bundle-version="0.1.0", - org.objectweb.asm;bundle-version="7.1.0", - org.palladiosimulator.indirections;bundle-version="4.3.0", - org.eclipse.xtext.xbase, - org.eclipse.xtext.common.types, - org.eclipse.xtext.xtext.generator, - org.eclipse.emf.codegen.ecore, - org.eclipse.emf.mwe.utils, - org.dataflowanalysis.pcm.extension.dictionary.characterized.dsl;bundle-version="1.0.0", - de.itemis.xtext.antlr + org.dataflowanalysis.pcm.extension.dictionary.characterized.dsl;bundle-version="1.0.0"