summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-09-14 05:03:27 (EDT)
committerStephan Born2012-09-14 05:03:27 (EDT)
commit2aff4eb915714091f58ecb6aa7b28db2b93faf8f (patch)
treee15d4a582c8e7d7348f1e8c537d7d3b2d3bd740f
parent54ed9aad96ccbd9586ac580ce36056a5c89df656 (diff)
downloadorg.eclipse.stardust.ide-2aff4eb915714091f58ecb6aa7b28db2b93faf8f.zip
org.eclipse.stardust.ide-2aff4eb915714091f58ecb6aa7b28db2b93faf8f.tar.gz
org.eclipse.stardust.ide-2aff4eb915714091f58ecb6aa7b28db2b93faf8f.tar.bz2
CamelApplication and WebserviceApplication can now be created with ModelBuilderFacade.createApplication(...) - Testcase comitted
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@59206 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java b/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java
index 424c151..f04bd00 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java
@@ -124,13 +124,14 @@ public class CrossModelSupportModelBuilderTest
implementingComposite = facade.createStructuredData(consumerModel, "ProvidedComposite1", "ProvidedComposite1", "ProviderModel:ProvidedComposite");
localConsumerComposite = facade.createStructuredData(consumerModel, "ConsumerComposite1", "ConsumerComposite1", "ConsumerModel:ConsumerComposite");
facade.updateStructuredDataType(localConsumerComposite, "ProviderModel:ProvidedComposite");
- facade.createDocumentData(providerModel, "LocalDocument", "LocalDocument", "ProvidedComposite");
+ DataType localDocument = facade.createDocumentData(providerModel, "LocalDocument", "LocalDocument", "ProvidedComposite");
DataType test = facade.createDocumentData(consumerModel, "ConsumerDocument", "ConsumerDocument", "ConsumerComposite");
facade.updateDocumentDataType(test, "ProviderModel:ProvidedComposite");
//Process Interface (Creation)
facade.createPrimitiveParameter(processInterface, localPrimitive, "FormalParameter1", "FormalParameter1", ModelerConstants.DOUBLE_PRIMITIVE_DATA_TYPE, ModeType.IN);
facade.createStructuredParameter(processInterface, localComposite, "FormalParameter2", "FormalParameter2", "ProviderModel:ProvidedComposite", ModeType.IN);
+ facade.createDocumentParameter(processInterface, localDocument, "FormalParameter3", "FormalParameter3", "ProviderModel:ProvidedComposite", ModeType.IN);
//Process Interface (Usage)
facade.setProcessImplementation(processInterface, implementingProcess);
@@ -138,6 +139,9 @@ public class CrossModelSupportModelBuilderTest
facade.setFormalParameter(implementingProcess, "FormalParameter2", implementingComposite);
//Applications
+ facade.createApplication(providerModel, "WebServiceApp", "WebServiceApp", ModelerConstants.WEB_SERVICE_APPLICATION_TYPE_ID);
+ facade.createApplication(providerModel, "CamelApp", "CamelApp", ModelerConstants.CAMEL_APPLICATION_TYPE_ID);
+
ApplicationType mta = facade.createApplication(providerModel, "MyMTA", "MyMTA", ModelerConstants.MESSAGE_TRANSFORMATION_APPLICATION_TYPE_ID);
facade.createPrimitiveAccessPoint(mta, "InputString1", "InputString", Type.String.getId(), "IN");
facade.createPrimitiveAccessPoint(mta, "OuputString1", "OutputString", Type.String.getId(), "OUT");