blob: c28fdb02d6e332deb8635c04fc135cf8f46ddbe7 (
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
|
/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
*
*
* 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:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.communication.tests.canonical;
import org.eclipse.papyrus.infra.gmfdiag.common.updater.DiagramUpdater;
import org.eclipse.papyrus.commands.ICreationCommand;
import org.eclipse.papyrus.junit.framework.classification.InvalidTest;
import org.eclipse.papyrus.uml.diagram.communication.CreateCommunicationDiagramCommand;
import org.eclipse.papyrus.uml.diagram.communication.part.UMLDiagramUpdater;
import org.eclipse.papyrus.uml.diagram.communication.providers.UMLElementTypes;
import org.eclipse.papyrus.uml.diagram.communication.tests.ICommunicationDiagramTestsConstants;
import org.eclipse.papyrus.uml.diagram.tests.canonical.TestLink;
import org.junit.Test;
/**
* The Class TestCommunicationDiagramLink use to test link that are contained by the owner of the target and the source
*/
public class TestCommunicationDiagramLink extends TestLink {
@Override
public DiagramUpdater getDiagramUpdater() {
return UMLDiagramUpdater.INSTANCE;
}
@Override
protected ICreationCommand getDiagramCommandCreation() {
return new CreateCommunicationDiagramCommand();
}
@Override
protected String getProjectName() {
return ICommunicationDiagramTestsConstants.PROJECT_NAME;
}
@Override
protected String getFileName() {
return ICommunicationDiagramTestsConstants.FILE_NAME;
}
/**
* Test to manage component.
*/
@Test
@InvalidTest
public void testToMessage() {
testToManageLink(UMLElementTypes.Lifeline_Shape, UMLElementTypes.Lifeline_Shape, UMLElementTypes.Path_Edge, UMLElementTypes.Interaction_Shape, false);
}
}
|