| /* |
| * Copyright (c) 2018 CEA, and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Eike Stepper - initial API and implementation |
| */ |
| package org.eclipse.uml2.uml.cdo.tests.compliance; |
| |
| import org.eclipse.emf.common.util.EList; |
| |
| import org.eclipse.emf.ecore.EAnnotation; |
| |
| import org.eclipse.uml2.uml.Abstraction; |
| import org.eclipse.uml2.uml.AcceptCallAction; |
| import org.eclipse.uml2.uml.AcceptEventAction; |
| import org.eclipse.uml2.uml.ActionExecutionSpecification; |
| import org.eclipse.uml2.uml.ActionInputPin; |
| import org.eclipse.uml2.uml.Activity; |
| import org.eclipse.uml2.uml.ActivityFinalNode; |
| import org.eclipse.uml2.uml.ActivityParameterNode; |
| import org.eclipse.uml2.uml.ActivityPartition; |
| import org.eclipse.uml2.uml.Actor; |
| import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; |
| import org.eclipse.uml2.uml.AddVariableValueAction; |
| import org.eclipse.uml2.uml.AnyReceiveEvent; |
| import org.eclipse.uml2.uml.Artifact; |
| import org.eclipse.uml2.uml.Association; |
| import org.eclipse.uml2.uml.AssociationClass; |
| import org.eclipse.uml2.uml.BehaviorExecutionSpecification; |
| import org.eclipse.uml2.uml.BroadcastSignalAction; |
| import org.eclipse.uml2.uml.CallBehaviorAction; |
| import org.eclipse.uml2.uml.CallEvent; |
| import org.eclipse.uml2.uml.CallOperationAction; |
| import org.eclipse.uml2.uml.CentralBufferNode; |
| import org.eclipse.uml2.uml.ChangeEvent; |
| import org.eclipse.uml2.uml.ClearAssociationAction; |
| import org.eclipse.uml2.uml.ClearStructuralFeatureAction; |
| import org.eclipse.uml2.uml.ClearVariableAction; |
| import org.eclipse.uml2.uml.Collaboration; |
| import org.eclipse.uml2.uml.CollaborationUse; |
| import org.eclipse.uml2.uml.CombinedFragment; |
| import org.eclipse.uml2.uml.Comment; |
| import org.eclipse.uml2.uml.CommunicationPath; |
| import org.eclipse.uml2.uml.Component; |
| import org.eclipse.uml2.uml.ComponentRealization; |
| import org.eclipse.uml2.uml.ConditionalNode; |
| import org.eclipse.uml2.uml.ConnectionPointReference; |
| import org.eclipse.uml2.uml.Connector; |
| import org.eclipse.uml2.uml.ConsiderIgnoreFragment; |
| import org.eclipse.uml2.uml.Constraint; |
| import org.eclipse.uml2.uml.Continuation; |
| import org.eclipse.uml2.uml.ControlFlow; |
| import org.eclipse.uml2.uml.CreateLinkAction; |
| import org.eclipse.uml2.uml.CreateLinkObjectAction; |
| import org.eclipse.uml2.uml.CreateObjectAction; |
| import org.eclipse.uml2.uml.DataStoreNode; |
| import org.eclipse.uml2.uml.DataType; |
| import org.eclipse.uml2.uml.DecisionNode; |
| import org.eclipse.uml2.uml.Dependency; |
| import org.eclipse.uml2.uml.Deployment; |
| import org.eclipse.uml2.uml.DeploymentSpecification; |
| import org.eclipse.uml2.uml.DestroyLinkAction; |
| import org.eclipse.uml2.uml.DestroyObjectAction; |
| import org.eclipse.uml2.uml.DestructionOccurrenceSpecification; |
| import org.eclipse.uml2.uml.Device; |
| import org.eclipse.uml2.uml.Duration; |
| import org.eclipse.uml2.uml.DurationConstraint; |
| import org.eclipse.uml2.uml.DurationInterval; |
| import org.eclipse.uml2.uml.DurationObservation; |
| import org.eclipse.uml2.uml.Element; |
| import org.eclipse.uml2.uml.Enumeration; |
| import org.eclipse.uml2.uml.EnumerationLiteral; |
| import org.eclipse.uml2.uml.ExecutionEnvironment; |
| import org.eclipse.uml2.uml.ExecutionOccurrenceSpecification; |
| import org.eclipse.uml2.uml.ExpansionNode; |
| import org.eclipse.uml2.uml.ExpansionRegion; |
| import org.eclipse.uml2.uml.Expression; |
| import org.eclipse.uml2.uml.Extend; |
| import org.eclipse.uml2.uml.Extension; |
| import org.eclipse.uml2.uml.ExtensionEnd; |
| import org.eclipse.uml2.uml.ExtensionPoint; |
| import org.eclipse.uml2.uml.FinalState; |
| import org.eclipse.uml2.uml.FlowFinalNode; |
| import org.eclipse.uml2.uml.ForkNode; |
| import org.eclipse.uml2.uml.FunctionBehavior; |
| import org.eclipse.uml2.uml.Gate; |
| import org.eclipse.uml2.uml.GeneralOrdering; |
| import org.eclipse.uml2.uml.GeneralizationSet; |
| import org.eclipse.uml2.uml.Include; |
| import org.eclipse.uml2.uml.InformationFlow; |
| import org.eclipse.uml2.uml.InformationItem; |
| import org.eclipse.uml2.uml.InitialNode; |
| import org.eclipse.uml2.uml.InputPin; |
| import org.eclipse.uml2.uml.InstanceSpecification; |
| import org.eclipse.uml2.uml.InstanceValue; |
| import org.eclipse.uml2.uml.Interaction; |
| import org.eclipse.uml2.uml.InteractionConstraint; |
| import org.eclipse.uml2.uml.InteractionOperand; |
| import org.eclipse.uml2.uml.InteractionUse; |
| import org.eclipse.uml2.uml.Interface; |
| import org.eclipse.uml2.uml.InterfaceRealization; |
| import org.eclipse.uml2.uml.InterruptibleActivityRegion; |
| import org.eclipse.uml2.uml.Interval; |
| import org.eclipse.uml2.uml.IntervalConstraint; |
| import org.eclipse.uml2.uml.JoinNode; |
| import org.eclipse.uml2.uml.Lifeline; |
| import org.eclipse.uml2.uml.LiteralBoolean; |
| import org.eclipse.uml2.uml.LiteralInteger; |
| import org.eclipse.uml2.uml.LiteralNull; |
| import org.eclipse.uml2.uml.LiteralReal; |
| import org.eclipse.uml2.uml.LiteralString; |
| import org.eclipse.uml2.uml.LiteralUnlimitedNatural; |
| import org.eclipse.uml2.uml.LoopNode; |
| import org.eclipse.uml2.uml.Manifestation; |
| import org.eclipse.uml2.uml.MergeNode; |
| import org.eclipse.uml2.uml.Message; |
| import org.eclipse.uml2.uml.MessageOccurrenceSpecification; |
| import org.eclipse.uml2.uml.Model; |
| import org.eclipse.uml2.uml.Node; |
| import org.eclipse.uml2.uml.ObjectFlow; |
| import org.eclipse.uml2.uml.OccurrenceSpecification; |
| import org.eclipse.uml2.uml.OpaqueAction; |
| import org.eclipse.uml2.uml.OpaqueBehavior; |
| import org.eclipse.uml2.uml.OpaqueExpression; |
| import org.eclipse.uml2.uml.Operation; |
| import org.eclipse.uml2.uml.OutputPin; |
| import org.eclipse.uml2.uml.Parameter; |
| import org.eclipse.uml2.uml.ParameterSet; |
| import org.eclipse.uml2.uml.PartDecomposition; |
| import org.eclipse.uml2.uml.Port; |
| import org.eclipse.uml2.uml.PrimitiveType; |
| import org.eclipse.uml2.uml.Profile; |
| import org.eclipse.uml2.uml.Property; |
| import org.eclipse.uml2.uml.ProtocolStateMachine; |
| import org.eclipse.uml2.uml.ProtocolTransition; |
| import org.eclipse.uml2.uml.Pseudostate; |
| import org.eclipse.uml2.uml.RaiseExceptionAction; |
| import org.eclipse.uml2.uml.ReadExtentAction; |
| import org.eclipse.uml2.uml.ReadIsClassifiedObjectAction; |
| import org.eclipse.uml2.uml.ReadLinkAction; |
| import org.eclipse.uml2.uml.ReadLinkObjectEndAction; |
| import org.eclipse.uml2.uml.ReadLinkObjectEndQualifierAction; |
| import org.eclipse.uml2.uml.ReadSelfAction; |
| import org.eclipse.uml2.uml.ReadStructuralFeatureAction; |
| import org.eclipse.uml2.uml.ReadVariableAction; |
| import org.eclipse.uml2.uml.Realization; |
| import org.eclipse.uml2.uml.Reception; |
| import org.eclipse.uml2.uml.ReclassifyObjectAction; |
| import org.eclipse.uml2.uml.RedefinableTemplateSignature; |
| import org.eclipse.uml2.uml.ReduceAction; |
| import org.eclipse.uml2.uml.Region; |
| import org.eclipse.uml2.uml.RemoveStructuralFeatureValueAction; |
| import org.eclipse.uml2.uml.RemoveVariableValueAction; |
| import org.eclipse.uml2.uml.ReplyAction; |
| import org.eclipse.uml2.uml.SendObjectAction; |
| import org.eclipse.uml2.uml.SendSignalAction; |
| import org.eclipse.uml2.uml.SequenceNode; |
| import org.eclipse.uml2.uml.Signal; |
| import org.eclipse.uml2.uml.SignalEvent; |
| import org.eclipse.uml2.uml.StartClassifierBehaviorAction; |
| import org.eclipse.uml2.uml.StartObjectBehaviorAction; |
| import org.eclipse.uml2.uml.State; |
| import org.eclipse.uml2.uml.StateInvariant; |
| import org.eclipse.uml2.uml.StateMachine; |
| import org.eclipse.uml2.uml.Stereotype; |
| import org.eclipse.uml2.uml.StringExpression; |
| import org.eclipse.uml2.uml.StructuredActivityNode; |
| import org.eclipse.uml2.uml.Substitution; |
| import org.eclipse.uml2.uml.TestIdentityAction; |
| import org.eclipse.uml2.uml.TimeConstraint; |
| import org.eclipse.uml2.uml.TimeEvent; |
| import org.eclipse.uml2.uml.TimeExpression; |
| import org.eclipse.uml2.uml.TimeInterval; |
| import org.eclipse.uml2.uml.TimeObservation; |
| import org.eclipse.uml2.uml.Transition; |
| import org.eclipse.uml2.uml.Trigger; |
| import org.eclipse.uml2.uml.UnmarshallAction; |
| import org.eclipse.uml2.uml.Usage; |
| import org.eclipse.uml2.uml.UseCase; |
| import org.eclipse.uml2.uml.ValuePin; |
| import org.eclipse.uml2.uml.ValueSpecificationAction; |
| import org.eclipse.uml2.uml.Variable; |
| |
| /** |
| * @author Eike Stepper |
| */ |
| public class ConsiderIgnoreFragmentTest |
| extends _Abstract_Compliance_Test_ { |
| |
| public void testEAnnotations() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| EAnnotation eAnnotation = ECORE.createEAnnotation(); |
| assertValid(eAnnotation); |
| considerIgnoreFragment.getEAnnotations().add(eAnnotation); |
| } |
| |
| public void testOwnedComment() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| Comment comment = UML.createComment(); |
| assertValid(comment); |
| considerIgnoreFragment.getOwnedComments().add(comment); |
| assertSuperset( |
| considerIgnoreFragment.getOwnedElements().contains(comment)); |
| } |
| |
| public void testOwnedElement() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| EList<Element> elements = considerIgnoreFragment.getOwnedElements(); |
| EList<Element> elements2 = considerIgnoreFragment.getOwnedElements(); |
| assertSame(elements, elements2); |
| } |
| |
| public void testClientDependency() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| EList<Dependency> dependencys = considerIgnoreFragment |
| .getClientDependencies(); |
| EList<Dependency> dependencys2 = considerIgnoreFragment |
| .getClientDependencies(); |
| assertSame(dependencys, dependencys2); |
| } |
| |
| public void testNameExpression() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| StringExpression stringExpression = UML.createStringExpression(); |
| assertValid(stringExpression); |
| considerIgnoreFragment.setNameExpression(stringExpression); |
| assertSuperset(considerIgnoreFragment.getOwnedElements() |
| .contains(stringExpression)); |
| } |
| |
| public void testCovered() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| Lifeline lifeline = UML.createLifeline(); |
| assertValid(lifeline); |
| considerIgnoreFragment.getCovereds().add(lifeline); |
| } |
| |
| public void testEnclosingOperand() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| InteractionOperand interactionOperand = UML.createInteractionOperand(); |
| assertValid(interactionOperand); |
| considerIgnoreFragment.setEnclosingOperand(interactionOperand); |
| assertSuperset( |
| considerIgnoreFragment.getNamespace() == interactionOperand); |
| } |
| |
| public void testEnclosingInteraction() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| Interaction interaction = UML.createInteraction(); |
| assertValid(interaction); |
| considerIgnoreFragment.setEnclosingInteraction(interaction); |
| assertSuperset(considerIgnoreFragment.getNamespace() == interaction); |
| } |
| |
| public void testGeneralOrdering() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| GeneralOrdering generalOrdering = UML.createGeneralOrdering(); |
| assertValid(generalOrdering); |
| considerIgnoreFragment.getGeneralOrderings().add(generalOrdering); |
| assertSuperset(considerIgnoreFragment.getOwnedElements() |
| .contains(generalOrdering)); |
| } |
| |
| public void testCfragmentGate() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| Gate gate = UML.createGate(); |
| assertValid(gate); |
| considerIgnoreFragment.getCfragmentGates().add(gate); |
| assertSuperset( |
| considerIgnoreFragment.getOwnedElements().contains(gate)); |
| } |
| |
| public void testOperand() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| InteractionOperand interactionOperand = UML.createInteractionOperand(); |
| assertValid(interactionOperand); |
| considerIgnoreFragment.getOperands().add(interactionOperand); |
| assertSuperset(considerIgnoreFragment.getOwnedElements() |
| .contains(interactionOperand)); |
| } |
| |
| public void testMessage() { |
| ConsiderIgnoreFragment considerIgnoreFragment = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment); |
| |
| Activity activity = UML.createActivity(); |
| assertValid(activity); |
| considerIgnoreFragment.getMessages().add(activity); |
| |
| CommunicationPath communicationPath = UML.createCommunicationPath(); |
| assertValid(communicationPath); |
| considerIgnoreFragment.getMessages().add(communicationPath); |
| |
| ReadSelfAction readSelfAction = UML.createReadSelfAction(); |
| assertValid(readSelfAction); |
| considerIgnoreFragment.getMessages().add(readSelfAction); |
| |
| ActivityPartition activityPartition = UML.createActivityPartition(); |
| assertValid(activityPartition); |
| considerIgnoreFragment.getMessages().add(activityPartition); |
| |
| InputPin inputPin = UML.createInputPin(); |
| assertValid(inputPin); |
| considerIgnoreFragment.getMessages().add(inputPin); |
| |
| ReadLinkObjectEndQualifierAction readLinkObjectEndQualifierAction = UML |
| .createReadLinkObjectEndQualifierAction(); |
| assertValid(readLinkObjectEndQualifierAction); |
| considerIgnoreFragment.getMessages() |
| .add(readLinkObjectEndQualifierAction); |
| |
| Component component = UML.createComponent(); |
| assertValid(component); |
| considerIgnoreFragment.getMessages().add(component); |
| |
| Manifestation manifestation = UML.createManifestation(); |
| assertValid(manifestation); |
| considerIgnoreFragment.getMessages().add(manifestation); |
| |
| DurationObservation durationObservation = UML |
| .createDurationObservation(); |
| assertValid(durationObservation); |
| considerIgnoreFragment.getMessages().add(durationObservation); |
| |
| CallEvent callEvent = UML.createCallEvent(); |
| assertValid(callEvent); |
| considerIgnoreFragment.getMessages().add(callEvent); |
| |
| JoinNode joinNode = UML.createJoinNode(); |
| assertValid(joinNode); |
| considerIgnoreFragment.getMessages().add(joinNode); |
| |
| Interaction interaction = UML.createInteraction(); |
| assertValid(interaction); |
| considerIgnoreFragment.getMessages().add(interaction); |
| |
| CreateLinkObjectAction createLinkObjectAction = UML |
| .createCreateLinkObjectAction(); |
| assertValid(createLinkObjectAction); |
| considerIgnoreFragment.getMessages().add(createLinkObjectAction); |
| |
| OpaqueBehavior opaqueBehavior = UML.createOpaqueBehavior(); |
| assertValid(opaqueBehavior); |
| considerIgnoreFragment.getMessages().add(opaqueBehavior); |
| |
| LiteralUnlimitedNatural literalUnlimitedNatural = UML |
| .createLiteralUnlimitedNatural(); |
| assertValid(literalUnlimitedNatural); |
| considerIgnoreFragment.getMessages().add(literalUnlimitedNatural); |
| |
| SendSignalAction sendSignalAction = UML.createSendSignalAction(); |
| assertValid(sendSignalAction); |
| considerIgnoreFragment.getMessages().add(sendSignalAction); |
| |
| ReadLinkAction readLinkAction = UML.createReadLinkAction(); |
| assertValid(readLinkAction); |
| considerIgnoreFragment.getMessages().add(readLinkAction); |
| |
| Operation operation = UML.createOperation(); |
| assertValid(operation); |
| considerIgnoreFragment.getMessages().add(operation); |
| |
| ClearAssociationAction clearAssociationAction = UML |
| .createClearAssociationAction(); |
| assertValid(clearAssociationAction); |
| considerIgnoreFragment.getMessages().add(clearAssociationAction); |
| |
| Model model = UML.createModel(); |
| assertValid(model); |
| considerIgnoreFragment.getMessages().add(model); |
| |
| Parameter parameter = UML.createParameter(); |
| assertValid(parameter); |
| considerIgnoreFragment.getMessages().add(parameter); |
| |
| InstanceValue instanceValue = UML.createInstanceValue(); |
| assertValid(instanceValue); |
| considerIgnoreFragment.getMessages().add(instanceValue); |
| |
| Trigger trigger = UML.createTrigger(); |
| assertValid(trigger); |
| considerIgnoreFragment.getMessages().add(trigger); |
| |
| InteractionConstraint interactionConstraint = UML |
| .createInteractionConstraint(); |
| assertValid(interactionConstraint); |
| considerIgnoreFragment.getMessages().add(interactionConstraint); |
| |
| AssociationClass associationClass = UML.createAssociationClass(); |
| assertValid(associationClass); |
| considerIgnoreFragment.getMessages().add(associationClass); |
| |
| InteractionUse interactionUse = UML.createInteractionUse(); |
| assertValid(interactionUse); |
| considerIgnoreFragment.getMessages().add(interactionUse); |
| |
| ClearStructuralFeatureAction clearStructuralFeatureAction = UML |
| .createClearStructuralFeatureAction(); |
| assertValid(clearStructuralFeatureAction); |
| considerIgnoreFragment.getMessages().add(clearStructuralFeatureAction); |
| |
| Interval interval = UML.createInterval(); |
| assertValid(interval); |
| considerIgnoreFragment.getMessages().add(interval); |
| |
| StructuredActivityNode structuredActivityNode = UML |
| .createStructuredActivityNode(); |
| assertValid(structuredActivityNode); |
| considerIgnoreFragment.getMessages().add(structuredActivityNode); |
| |
| LiteralString literalString = UML.createLiteralString(); |
| assertValid(literalString); |
| considerIgnoreFragment.getMessages().add(literalString); |
| |
| ValuePin valuePin = UML.createValuePin(); |
| assertValid(valuePin); |
| considerIgnoreFragment.getMessages().add(valuePin); |
| |
| InterfaceRealization interfaceRealization = UML |
| .createInterfaceRealization(); |
| assertValid(interfaceRealization); |
| considerIgnoreFragment.getMessages().add(interfaceRealization); |
| |
| ForkNode forkNode = UML.createForkNode(); |
| assertValid(forkNode); |
| considerIgnoreFragment.getMessages().add(forkNode); |
| |
| DecisionNode decisionNode = UML.createDecisionNode(); |
| assertValid(decisionNode); |
| considerIgnoreFragment.getMessages().add(decisionNode); |
| |
| Actor actor = UML.createActor(); |
| assertValid(actor); |
| considerIgnoreFragment.getMessages().add(actor); |
| |
| TimeConstraint timeConstraint = UML.createTimeConstraint(); |
| assertValid(timeConstraint); |
| considerIgnoreFragment.getMessages().add(timeConstraint); |
| |
| Reception reception = UML.createReception(); |
| assertValid(reception); |
| considerIgnoreFragment.getMessages().add(reception); |
| |
| Pseudostate pseudostate = UML.createPseudostate(); |
| assertValid(pseudostate); |
| considerIgnoreFragment.getMessages().add(pseudostate); |
| |
| DurationInterval durationInterval = UML.createDurationInterval(); |
| assertValid(durationInterval); |
| considerIgnoreFragment.getMessages().add(durationInterval); |
| |
| Deployment deployment = UML.createDeployment(); |
| assertValid(deployment); |
| considerIgnoreFragment.getMessages().add(deployment); |
| |
| ExtensionEnd extensionEnd = UML.createExtensionEnd(); |
| assertValid(extensionEnd); |
| considerIgnoreFragment.getMessages().add(extensionEnd); |
| |
| ConsiderIgnoreFragment considerIgnoreFragment2 = UML |
| .createConsiderIgnoreFragment(); |
| assertValid(considerIgnoreFragment2); |
| considerIgnoreFragment.getMessages().add(considerIgnoreFragment2); |
| |
| ConditionalNode conditionalNode = UML.createConditionalNode(); |
| assertValid(conditionalNode); |
| considerIgnoreFragment.getMessages().add(conditionalNode); |
| |
| ReadExtentAction readExtentAction = UML.createReadExtentAction(); |
| assertValid(readExtentAction); |
| considerIgnoreFragment.getMessages().add(readExtentAction); |
| |
| ActionInputPin actionInputPin = UML.createActionInputPin(); |
| assertValid(actionInputPin); |
| considerIgnoreFragment.getMessages().add(actionInputPin); |
| |
| Artifact artifact = UML.createArtifact(); |
| assertValid(artifact); |
| considerIgnoreFragment.getMessages().add(artifact); |
| |
| InformationFlow informationFlow = UML.createInformationFlow(); |
| assertValid(informationFlow); |
| considerIgnoreFragment.getMessages().add(informationFlow); |
| |
| ClearVariableAction clearVariableAction = UML |
| .createClearVariableAction(); |
| assertValid(clearVariableAction); |
| considerIgnoreFragment.getMessages().add(clearVariableAction); |
| |
| CreateLinkAction createLinkAction = UML.createCreateLinkAction(); |
| assertValid(createLinkAction); |
| considerIgnoreFragment.getMessages().add(createLinkAction); |
| |
| SignalEvent signalEvent = UML.createSignalEvent(); |
| assertValid(signalEvent); |
| considerIgnoreFragment.getMessages().add(signalEvent); |
| |
| ConnectionPointReference connectionPointReference = UML |
| .createConnectionPointReference(); |
| assertValid(connectionPointReference); |
| considerIgnoreFragment.getMessages().add(connectionPointReference); |
| |
| ReclassifyObjectAction reclassifyObjectAction = UML |
| .createReclassifyObjectAction(); |
| assertValid(reclassifyObjectAction); |
| considerIgnoreFragment.getMessages().add(reclassifyObjectAction); |
| |
| Usage usage = UML.createUsage(); |
| assertValid(usage); |
| considerIgnoreFragment.getMessages().add(usage); |
| |
| DataStoreNode dataStoreNode = UML.createDataStoreNode(); |
| assertValid(dataStoreNode); |
| considerIgnoreFragment.getMessages().add(dataStoreNode); |
| |
| ExecutionEnvironment executionEnvironment = UML |
| .createExecutionEnvironment(); |
| assertValid(executionEnvironment); |
| considerIgnoreFragment.getMessages().add(executionEnvironment); |
| |
| SendObjectAction sendObjectAction = UML.createSendObjectAction(); |
| assertValid(sendObjectAction); |
| considerIgnoreFragment.getMessages().add(sendObjectAction); |
| |
| ControlFlow controlFlow = UML.createControlFlow(); |
| assertValid(controlFlow); |
| considerIgnoreFragment.getMessages().add(controlFlow); |
| |
| DeploymentSpecification deploymentSpecification = UML |
| .createDeploymentSpecification(); |
| assertValid(deploymentSpecification); |
| considerIgnoreFragment.getMessages().add(deploymentSpecification); |
| |
| PartDecomposition partDecomposition = UML.createPartDecomposition(); |
| assertValid(partDecomposition); |
| considerIgnoreFragment.getMessages().add(partDecomposition); |
| |
| DestroyLinkAction destroyLinkAction = UML.createDestroyLinkAction(); |
| assertValid(destroyLinkAction); |
| considerIgnoreFragment.getMessages().add(destroyLinkAction); |
| |
| Realization realization = UML.createRealization(); |
| assertValid(realization); |
| considerIgnoreFragment.getMessages().add(realization); |
| |
| ExpansionNode expansionNode = UML.createExpansionNode(); |
| assertValid(expansionNode); |
| considerIgnoreFragment.getMessages().add(expansionNode); |
| |
| TestIdentityAction testIdentityAction = UML.createTestIdentityAction(); |
| assertValid(testIdentityAction); |
| considerIgnoreFragment.getMessages().add(testIdentityAction); |
| |
| Association association = UML.createAssociation(); |
| assertValid(association); |
| considerIgnoreFragment.getMessages().add(association); |
| |
| TimeInterval timeInterval = UML.createTimeInterval(); |
| assertValid(timeInterval); |
| considerIgnoreFragment.getMessages().add(timeInterval); |
| |
| DataType dataType = UML.createDataType(); |
| assertValid(dataType); |
| considerIgnoreFragment.getMessages().add(dataType); |
| |
| OutputPin outputPin = UML.createOutputPin(); |
| assertValid(outputPin); |
| considerIgnoreFragment.getMessages().add(outputPin); |
| |
| Substitution substitution = UML.createSubstitution(); |
| assertValid(substitution); |
| considerIgnoreFragment.getMessages().add(substitution); |
| |
| Include include = UML.createInclude(); |
| assertValid(include); |
| considerIgnoreFragment.getMessages().add(include); |
| |
| Extend extend = UML.createExtend(); |
| assertValid(extend); |
| considerIgnoreFragment.getMessages().add(extend); |
| |
| BroadcastSignalAction broadcastSignalAction = UML |
| .createBroadcastSignalAction(); |
| assertValid(broadcastSignalAction); |
| considerIgnoreFragment.getMessages().add(broadcastSignalAction); |
| |
| LiteralBoolean literalBoolean = UML.createLiteralBoolean(); |
| assertValid(literalBoolean); |
| considerIgnoreFragment.getMessages().add(literalBoolean); |
| |
| FinalState finalState = UML.createFinalState(); |
| assertValid(finalState); |
| considerIgnoreFragment.getMessages().add(finalState); |
| |
| RaiseExceptionAction raiseExceptionAction = UML |
| .createRaiseExceptionAction(); |
| assertValid(raiseExceptionAction); |
| considerIgnoreFragment.getMessages().add(raiseExceptionAction); |
| |
| DurationConstraint durationConstraint = UML.createDurationConstraint(); |
| assertValid(durationConstraint); |
| considerIgnoreFragment.getMessages().add(durationConstraint); |
| |
| ActivityFinalNode activityFinalNode = UML.createActivityFinalNode(); |
| assertValid(activityFinalNode); |
| considerIgnoreFragment.getMessages().add(activityFinalNode); |
| |
| LiteralNull literalNull = UML.createLiteralNull(); |
| assertValid(literalNull); |
| considerIgnoreFragment.getMessages().add(literalNull); |
| |
| CallOperationAction callOperationAction = UML |
| .createCallOperationAction(); |
| assertValid(callOperationAction); |
| considerIgnoreFragment.getMessages().add(callOperationAction); |
| |
| ProtocolStateMachine protocolStateMachine = UML |
| .createProtocolStateMachine(); |
| assertValid(protocolStateMachine); |
| considerIgnoreFragment.getMessages().add(protocolStateMachine); |
| |
| LoopNode loopNode = UML.createLoopNode(); |
| assertValid(loopNode); |
| considerIgnoreFragment.getMessages().add(loopNode); |
| |
| ParameterSet parameterSet = UML.createParameterSet(); |
| assertValid(parameterSet); |
| considerIgnoreFragment.getMessages().add(parameterSet); |
| |
| ValueSpecificationAction valueSpecificationAction = UML |
| .createValueSpecificationAction(); |
| assertValid(valueSpecificationAction); |
| considerIgnoreFragment.getMessages().add(valueSpecificationAction); |
| |
| Node node = UML.createNode(); |
| assertValid(node); |
| considerIgnoreFragment.getMessages().add(node); |
| |
| SequenceNode sequenceNode = UML.createSequenceNode(); |
| assertValid(sequenceNode); |
| considerIgnoreFragment.getMessages().add(sequenceNode); |
| |
| Constraint constraint = UML.createConstraint(); |
| assertValid(constraint); |
| considerIgnoreFragment.getMessages().add(constraint); |
| |
| DestroyObjectAction destroyObjectAction = UML |
| .createDestroyObjectAction(); |
| assertValid(destroyObjectAction); |
| considerIgnoreFragment.getMessages().add(destroyObjectAction); |
| |
| StateMachine stateMachine = UML.createStateMachine(); |
| assertValid(stateMachine); |
| considerIgnoreFragment.getMessages().add(stateMachine); |
| |
| EnumerationLiteral enumerationLiteral = UML.createEnumerationLiteral(); |
| assertValid(enumerationLiteral); |
| considerIgnoreFragment.getMessages().add(enumerationLiteral); |
| |
| ActionExecutionSpecification actionExecutionSpecification = UML |
| .createActionExecutionSpecification(); |
| assertValid(actionExecutionSpecification); |
| considerIgnoreFragment.getMessages().add(actionExecutionSpecification); |
| |
| FunctionBehavior functionBehavior = UML.createFunctionBehavior(); |
| assertValid(functionBehavior); |
| considerIgnoreFragment.getMessages().add(functionBehavior); |
| |
| Interface interface_ = UML.createInterface(); |
| assertValid(interface_); |
| considerIgnoreFragment.getMessages().add(interface_); |
| |
| InstanceSpecification instanceSpecification = UML |
| .createInstanceSpecification(); |
| assertValid(instanceSpecification); |
| considerIgnoreFragment.getMessages().add(instanceSpecification); |
| |
| StartClassifierBehaviorAction startClassifierBehaviorAction = UML |
| .createStartClassifierBehaviorAction(); |
| assertValid(startClassifierBehaviorAction); |
| considerIgnoreFragment.getMessages().add(startClassifierBehaviorAction); |
| |
| Port port = UML.createPort(); |
| assertValid(port); |
| considerIgnoreFragment.getMessages().add(port); |
| |
| RemoveVariableValueAction removeVariableValueAction = UML |
| .createRemoveVariableValueAction(); |
| assertValid(removeVariableValueAction); |
| considerIgnoreFragment.getMessages().add(removeVariableValueAction); |
| |
| InformationItem informationItem = UML.createInformationItem(); |
| assertValid(informationItem); |
| considerIgnoreFragment.getMessages().add(informationItem); |
| |
| LiteralReal literalReal = UML.createLiteralReal(); |
| assertValid(literalReal); |
| considerIgnoreFragment.getMessages().add(literalReal); |
| |
| RedefinableTemplateSignature redefinableTemplateSignature = UML |
| .createRedefinableTemplateSignature(); |
| assertValid(redefinableTemplateSignature); |
| considerIgnoreFragment.getMessages().add(redefinableTemplateSignature); |
| |
| ExecutionOccurrenceSpecification executionOccurrenceSpecification = UML |
| .createExecutionOccurrenceSpecification(); |
| assertValid(executionOccurrenceSpecification); |
| considerIgnoreFragment.getMessages() |
| .add(executionOccurrenceSpecification); |
| |
| Duration duration = UML.createDuration(); |
| assertValid(duration); |
| considerIgnoreFragment.getMessages().add(duration); |
| |
| org.eclipse.uml2.uml.Package package_ = UML.createPackage(); |
| assertValid(package_); |
| considerIgnoreFragment.getMessages().add(package_); |
| |
| Variable variable = UML.createVariable(); |
| assertValid(variable); |
| considerIgnoreFragment.getMessages().add(variable); |
| |
| DestructionOccurrenceSpecification destructionOccurrenceSpecification = UML |
| .createDestructionOccurrenceSpecification(); |
| assertValid(destructionOccurrenceSpecification); |
| considerIgnoreFragment.getMessages() |
| .add(destructionOccurrenceSpecification); |
| |
| Lifeline lifeline = UML.createLifeline(); |
| assertValid(lifeline); |
| considerIgnoreFragment.getMessages().add(lifeline); |
| |
| TimeObservation timeObservation = UML.createTimeObservation(); |
| assertValid(timeObservation); |
| considerIgnoreFragment.getMessages().add(timeObservation); |
| |
| ReplyAction replyAction = UML.createReplyAction(); |
| assertValid(replyAction); |
| considerIgnoreFragment.getMessages().add(replyAction); |
| |
| Gate gate = UML.createGate(); |
| assertValid(gate); |
| considerIgnoreFragment.getMessages().add(gate); |
| |
| Property property = UML.createProperty(); |
| assertValid(property); |
| considerIgnoreFragment.getMessages().add(property); |
| |
| TimeExpression timeExpression = UML.createTimeExpression(); |
| assertValid(timeExpression); |
| considerIgnoreFragment.getMessages().add(timeExpression); |
| |
| Device device = UML.createDevice(); |
| assertValid(device); |
| considerIgnoreFragment.getMessages().add(device); |
| |
| FlowFinalNode flowFinalNode = UML.createFlowFinalNode(); |
| assertValid(flowFinalNode); |
| considerIgnoreFragment.getMessages().add(flowFinalNode); |
| |
| ExpansionRegion expansionRegion = UML.createExpansionRegion(); |
| assertValid(expansionRegion); |
| considerIgnoreFragment.getMessages().add(expansionRegion); |
| |
| Abstraction abstraction = UML.createAbstraction(); |
| assertValid(abstraction); |
| considerIgnoreFragment.getMessages().add(abstraction); |
| |
| StartObjectBehaviorAction startObjectBehaviorAction = UML |
| .createStartObjectBehaviorAction(); |
| assertValid(startObjectBehaviorAction); |
| considerIgnoreFragment.getMessages().add(startObjectBehaviorAction); |
| |
| Enumeration enumeration = UML.createEnumeration(); |
| assertValid(enumeration); |
| considerIgnoreFragment.getMessages().add(enumeration); |
| |
| PrimitiveType primitiveType = UML.createPrimitiveType(); |
| assertValid(primitiveType); |
| considerIgnoreFragment.getMessages().add(primitiveType); |
| |
| Profile profile = UML.createProfile(); |
| assertValid(profile); |
| considerIgnoreFragment.getMessages().add(profile); |
| |
| Message message = UML.createMessage(); |
| assertValid(message); |
| considerIgnoreFragment.getMessages().add(message); |
| |
| GeneralizationSet generalizationSet = UML.createGeneralizationSet(); |
| assertValid(generalizationSet); |
| considerIgnoreFragment.getMessages().add(generalizationSet); |
| |
| Continuation continuation = UML.createContinuation(); |
| assertValid(continuation); |
| considerIgnoreFragment.getMessages().add(continuation); |
| |
| Signal signal = UML.createSignal(); |
| assertValid(signal); |
| considerIgnoreFragment.getMessages().add(signal); |
| |
| CallBehaviorAction callBehaviorAction = UML.createCallBehaviorAction(); |
| assertValid(callBehaviorAction); |
| considerIgnoreFragment.getMessages().add(callBehaviorAction); |
| |
| ObjectFlow objectFlow = UML.createObjectFlow(); |
| assertValid(objectFlow); |
| considerIgnoreFragment.getMessages().add(objectFlow); |
| |
| StateInvariant stateInvariant = UML.createStateInvariant(); |
| assertValid(stateInvariant); |
| considerIgnoreFragment.getMessages().add(stateInvariant); |
| |
| ReadIsClassifiedObjectAction readIsClassifiedObjectAction = UML |
| .createReadIsClassifiedObjectAction(); |
| assertValid(readIsClassifiedObjectAction); |
| considerIgnoreFragment.getMessages().add(readIsClassifiedObjectAction); |
| |
| ActivityParameterNode activityParameterNode = UML |
| .createActivityParameterNode(); |
| assertValid(activityParameterNode); |
| considerIgnoreFragment.getMessages().add(activityParameterNode); |
| |
| AddStructuralFeatureValueAction addStructuralFeatureValueAction = UML |
| .createAddStructuralFeatureValueAction(); |
| assertValid(addStructuralFeatureValueAction); |
| considerIgnoreFragment.getMessages() |
| .add(addStructuralFeatureValueAction); |
| |
| ReadVariableAction readVariableAction = UML.createReadVariableAction(); |
| assertValid(readVariableAction); |
| considerIgnoreFragment.getMessages().add(readVariableAction); |
| |
| InterruptibleActivityRegion interruptibleActivityRegion = UML |
| .createInterruptibleActivityRegion(); |
| assertValid(interruptibleActivityRegion); |
| considerIgnoreFragment.getMessages().add(interruptibleActivityRegion); |
| |
| RemoveStructuralFeatureValueAction removeStructuralFeatureValueAction = UML |
| .createRemoveStructuralFeatureValueAction(); |
| assertValid(removeStructuralFeatureValueAction); |
| considerIgnoreFragment.getMessages() |
| .add(removeStructuralFeatureValueAction); |
| |
| OpaqueExpression opaqueExpression = UML.createOpaqueExpression(); |
| assertValid(opaqueExpression); |
| considerIgnoreFragment.getMessages().add(opaqueExpression); |
| |
| TimeEvent timeEvent = UML.createTimeEvent(); |
| assertValid(timeEvent); |
| considerIgnoreFragment.getMessages().add(timeEvent); |
| |
| GeneralOrdering generalOrdering = UML.createGeneralOrdering(); |
| assertValid(generalOrdering); |
| considerIgnoreFragment.getMessages().add(generalOrdering); |
| |
| Region region = UML.createRegion(); |
| assertValid(region); |
| considerIgnoreFragment.getMessages().add(region); |
| |
| Transition transition = UML.createTransition(); |
| assertValid(transition); |
| considerIgnoreFragment.getMessages().add(transition); |
| |
| AnyReceiveEvent anyReceiveEvent = UML.createAnyReceiveEvent(); |
| assertValid(anyReceiveEvent); |
| considerIgnoreFragment.getMessages().add(anyReceiveEvent); |
| |
| MessageOccurrenceSpecification messageOccurrenceSpecification = UML |
| .createMessageOccurrenceSpecification(); |
| assertValid(messageOccurrenceSpecification); |
| considerIgnoreFragment.getMessages() |
| .add(messageOccurrenceSpecification); |
| |
| LiteralInteger literalInteger = UML.createLiteralInteger(); |
| assertValid(literalInteger); |
| considerIgnoreFragment.getMessages().add(literalInteger); |
| |
| ReduceAction reduceAction = UML.createReduceAction(); |
| assertValid(reduceAction); |
| considerIgnoreFragment.getMessages().add(reduceAction); |
| |
| AcceptEventAction acceptEventAction = UML.createAcceptEventAction(); |
| assertValid(acceptEventAction); |
| considerIgnoreFragment.getMessages().add(acceptEventAction); |
| |
| InitialNode initialNode = UML.createInitialNode(); |
| assertValid(initialNode); |
| considerIgnoreFragment.getMessages().add(initialNode); |
| |
| CentralBufferNode centralBufferNode = UML.createCentralBufferNode(); |
| assertValid(centralBufferNode); |
| considerIgnoreFragment.getMessages().add(centralBufferNode); |
| |
| CombinedFragment combinedFragment = UML.createCombinedFragment(); |
| assertValid(combinedFragment); |
| considerIgnoreFragment.getMessages().add(combinedFragment); |
| |
| IntervalConstraint intervalConstraint = UML.createIntervalConstraint(); |
| assertValid(intervalConstraint); |
| considerIgnoreFragment.getMessages().add(intervalConstraint); |
| |
| Extension extension = UML.createExtension(); |
| assertValid(extension); |
| considerIgnoreFragment.getMessages().add(extension); |
| |
| OccurrenceSpecification occurrenceSpecification = UML |
| .createOccurrenceSpecification(); |
| assertValid(occurrenceSpecification); |
| considerIgnoreFragment.getMessages().add(occurrenceSpecification); |
| |
| ExtensionPoint extensionPoint = UML.createExtensionPoint(); |
| assertValid(extensionPoint); |
| considerIgnoreFragment.getMessages().add(extensionPoint); |
| |
| Dependency dependency = UML.createDependency(); |
| assertValid(dependency); |
| considerIgnoreFragment.getMessages().add(dependency); |
| |
| Connector connector = UML.createConnector(); |
| assertValid(connector); |
| considerIgnoreFragment.getMessages().add(connector); |
| |
| Expression expression = UML.createExpression(); |
| assertValid(expression); |
| considerIgnoreFragment.getMessages().add(expression); |
| |
| ComponentRealization componentRealization = UML |
| .createComponentRealization(); |
| assertValid(componentRealization); |
| considerIgnoreFragment.getMessages().add(componentRealization); |
| |
| org.eclipse.uml2.uml.Class class_ = UML.createClass(); |
| assertValid(class_); |
| considerIgnoreFragment.getMessages().add(class_); |
| |
| State state = UML.createState(); |
| assertValid(state); |
| considerIgnoreFragment.getMessages().add(state); |
| |
| ProtocolTransition protocolTransition = UML.createProtocolTransition(); |
| assertValid(protocolTransition); |
| considerIgnoreFragment.getMessages().add(protocolTransition); |
| |
| BehaviorExecutionSpecification behaviorExecutionSpecification = UML |
| .createBehaviorExecutionSpecification(); |
| assertValid(behaviorExecutionSpecification); |
| considerIgnoreFragment.getMessages() |
| .add(behaviorExecutionSpecification); |
| |
| CollaborationUse collaborationUse = UML.createCollaborationUse(); |
| assertValid(collaborationUse); |
| considerIgnoreFragment.getMessages().add(collaborationUse); |
| |
| InteractionOperand interactionOperand = UML.createInteractionOperand(); |
| assertValid(interactionOperand); |
| considerIgnoreFragment.getMessages().add(interactionOperand); |
| |
| AcceptCallAction acceptCallAction = UML.createAcceptCallAction(); |
| assertValid(acceptCallAction); |
| considerIgnoreFragment.getMessages().add(acceptCallAction); |
| |
| AddVariableValueAction addVariableValueAction = UML |
| .createAddVariableValueAction(); |
| assertValid(addVariableValueAction); |
| considerIgnoreFragment.getMessages().add(addVariableValueAction); |
| |
| ReadLinkObjectEndAction readLinkObjectEndAction = UML |
| .createReadLinkObjectEndAction(); |
| assertValid(readLinkObjectEndAction); |
| considerIgnoreFragment.getMessages().add(readLinkObjectEndAction); |
| |
| UseCase useCase = UML.createUseCase(); |
| assertValid(useCase); |
| considerIgnoreFragment.getMessages().add(useCase); |
| |
| UnmarshallAction unmarshallAction = UML.createUnmarshallAction(); |
| assertValid(unmarshallAction); |
| considerIgnoreFragment.getMessages().add(unmarshallAction); |
| |
| OpaqueAction opaqueAction = UML.createOpaqueAction(); |
| assertValid(opaqueAction); |
| considerIgnoreFragment.getMessages().add(opaqueAction); |
| |
| StringExpression stringExpression = UML.createStringExpression(); |
| assertValid(stringExpression); |
| considerIgnoreFragment.getMessages().add(stringExpression); |
| |
| MergeNode mergeNode = UML.createMergeNode(); |
| assertValid(mergeNode); |
| considerIgnoreFragment.getMessages().add(mergeNode); |
| |
| ChangeEvent changeEvent = UML.createChangeEvent(); |
| assertValid(changeEvent); |
| considerIgnoreFragment.getMessages().add(changeEvent); |
| |
| CreateObjectAction createObjectAction = UML.createCreateObjectAction(); |
| assertValid(createObjectAction); |
| considerIgnoreFragment.getMessages().add(createObjectAction); |
| |
| Stereotype stereotype = UML.createStereotype(); |
| assertValid(stereotype); |
| considerIgnoreFragment.getMessages().add(stereotype); |
| |
| ReadStructuralFeatureAction readStructuralFeatureAction = UML |
| .createReadStructuralFeatureAction(); |
| assertValid(readStructuralFeatureAction); |
| considerIgnoreFragment.getMessages().add(readStructuralFeatureAction); |
| |
| Collaboration collaboration = UML.createCollaboration(); |
| assertValid(collaboration); |
| considerIgnoreFragment.getMessages().add(collaboration); |
| } |
| |
| } |