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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
package org.eclipse.papyrus.uml.compare.merger.tests.standalone;
import java.io.IOException;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.emf.compare.diff.metamodel.AttributeOrderChange;
import org.eclipse.emf.compare.diff.metamodel.DiffElement;
import org.eclipse.osgi.util.NLS;
import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
import org.eclipse.papyrus.infra.core.services.ServiceException;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
public class AttributeOrderChangeTest_1_RightToLeft extends AbstractStandaloneCompareTest {
private static final String MODEL_PATH = "attributeOrderChange_1/";
@BeforeClass
public static void init() throws CoreException, IOException , ModelMultiException, ServiceException{
AbstractStandaloneCompareTest.init(MODEL_PATH, false);
}
@Test
@Override
public void mergeTestAllExecutability() throws InterruptedException {
super.mergeTestAllExecutability();
}
@Test
public void testDifferences() throws InterruptedException {
super.testDifferences();
}
public void testLastDiffElements(List<DiffElement> diffElements) {
Assert.assertTrue(NLS.bind("The number of DiffElement is not correct : we would like {0} DiffElement, and we found {1}", new Object[]{ 1, diffElements.size() }), diffElements.size() == 1);
final DiffElement diffElement = diffElements.get(0);
Assert.assertTrue(NLS.bind("The last DiffElement is not a {0}", AttributeOrderChange.class), diffElement instanceof AttributeOrderChange);
}
@Override
@Test
public void testCommandExecution() throws InterruptedException, IOException {
super.testCommandExecution();
}
@Test
public void testModificationOnDiFile() {
super.testModificationOnDiFile(false);
}
@Test
public void testModificationOnNotationFile() {
super.testModificationOnNotationFile(false);
}
@Test
public void testModificationOnUMLFile() {
super.testModificationOnUMLFile(true);
}
@Override
@Test
public void saveTest() throws IOException {
super.saveTest();
}
@Override
@Test
public void testResult() throws InterruptedException {
super.testResult();
}
@Override
@Test
public void testXMIID() {
//nothing to do here!
}
@Override
@Test
public void testUndo() throws IOException, InterruptedException {
super.testUndo();
}
@Override
@Test
public void testRedo() throws IOException, InterruptedException {
super.testRedo();
}
}
|