blob: f732e4828f0be22cdd2e6d4cd38e00624d66deb6 (
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
|
/*****************************************************************************
* Copyright (c) 2013 CEA
*
*
* 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:
* Soyatec - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.sequence.tests.bug.pro20130916;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.papyrus.uml.diagram.sequence.edit.parts.CombinedFragmentEditPart;
import org.eclipse.papyrus.uml.diagram.sequence.providers.UMLElementTypes;
import org.junit.Test;
/**
* @author Jin Liu (jin.liu@soyatec.com)
*/
public class CombinedFragmentStereotypesTest extends BaseStereotypesTest {
private CombinedFragmentEditPart combinedFragment;
/**
* @see org.eclipse.papyrus.uml.diagram.sequence.tests.bug.m7.AbstractNodeTest#setUp()
*
* @throws Exception
*/
@Override
protected void setUp() throws Exception {
super.setUp();
combinedFragment = (CombinedFragmentEditPart)createNode(UMLElementTypes.CombinedFragment_3004, getRootEditPart(), new Point(100, 100), new Dimension(200, 100));
assertNotNull(combinedFragment);
}
@Test
public void testDisplayStereotypeComment() {
doTestDisplayStereotypeComment(combinedFragment);
}
@Test
public void testDisplayStereotypeInCompartment() {
doTestDisplayStereotypeInCompartment(combinedFragment, combinedFragment);
}
@Test
public void testDisplayStereotypeWithBrace() {
doTestDisplayStereotypeWithBrace(combinedFragment, combinedFragment);
}
}
|