Skip to main content
summaryrefslogtreecommitdiffstats
blob: 7618381270d0c3ebab95559c43b4b23cc43aa1a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.creation.link;

import java.util.HashMap;

import org.eclipse.gmf.runtime.notation.View;
import org.junit.BeforeClass;

/**
 * JUnit tests for Dependency creation test (via palette tools).
 */
public class TestLinkCreationDependencyForSources extends AbstractLinkCreationForSourcesTest {
	
	@BeforeClass
	public static void initToolID() throws Exception {
		toolID = "blockdefinition.tool.dependency";
	}	
	
	@BeforeClass
	public static void initExpectedResults() throws Exception {
		
		// Initialize source creation results
		isCreationAllowed = new HashMap<View, Boolean>();
		isCreationAllowed.put(actorSourceView, true);
		isCreationAllowed.put(blockSourceView, true);
		isCreationAllowed.put(constraintBlockSourceView, true);
		isCreationAllowed.put(dataTypeSourceView, true);
		isCreationAllowed.put(dimensionSourceView, true);
		isCreationAllowed.put(enumerationSourceView, true);
		isCreationAllowed.put(flowSpecificationSourceView, true);
		isCreationAllowed.put(interfaceSourceView, true);
		isCreationAllowed.put(primitiveTypeSourceView, true);
		isCreationAllowed.put(signalSourceView, true);
		isCreationAllowed.put(unitSourceView, true);
		isCreationAllowed.put(valueTypeSourceView, true);
		
		isCreationAllowed.put(commentSourceView, false);
		isCreationAllowed.put(commentCNSourceView, false);
		isCreationAllowed.put(constraintSourceView, true);
		isCreationAllowed.put(constraintCNSourceView, true);
		isCreationAllowed.put(instanceSpecSourceView, true);
		isCreationAllowed.put(instanceSpecCNSourceView, true);
		isCreationAllowed.put(modelSourceView, true);
		isCreationAllowed.put(modelCNSourceView, true);
		isCreationAllowed.put(packageSourceView, true);
		isCreationAllowed.put(packageCNSourceView, true);
		
		isCreationAllowed.put(slotSourceView, false);
		
		isCreationAllowed.put(propertySourceView, false);
		isCreationAllowed.put(portSourceView, false);
		isCreationAllowed.put(flowportSourceView, false);
		isCreationAllowed.put(partSourceView, false);
		isCreationAllowed.put(referenceSourceView, false);
		isCreationAllowed.put(valueSourceView, false);
		isCreationAllowed.put(operationSourceView, false);
		isCreationAllowed.put(receptionSourceView, false);
		isCreationAllowed.put(constraintCLNSourceView, false);
		isCreationAllowed.put(constraintPropertySourceView, false);
		isCreationAllowed.put(flowPropertySourceView, false);
		isCreationAllowed.put(enumerationLiteralSourceView, false);		

		isCreationAllowed.put(associationSourceView, true);
	}

}

Back to the top