Skip to main content
summaryrefslogtreecommitdiffstats
blob: 5f84f8abb4a475d953a737af7b00381d39a14ccf (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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*******************************************************************************
 * Copyright (c) 2014, 2015 EclipseSource Muenchen GmbH 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:
 *     Philip Langer - initial API and implementation
 *     Alexandra Buzila - test data for bug 446252
 *     Stefan Dirix - test data for bugs 452147, 453749, 460902 and 460923
 *******************************************************************************/
package org.eclipse.emf.compare.tests.merge.data;

import java.io.IOException;

import org.eclipse.emf.compare.tests.framework.AbstractInputData;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;

@SuppressWarnings("nls")
public class TwoWayMergeInputData extends AbstractInputData {
	public Resource getMoveToDifferentContainmentFeatureRTLLeft() throws IOException {
		return loadFromClassLoader("twoway/movedifferentcontainmentfeature/rtl/left.nodes");
	}

	public Resource getMoveToDifferentContainmentFeatureRTLRight() throws IOException {
		return loadFromClassLoader("twoway/movedifferentcontainmentfeature/rtl/right.nodes");
	}

	public Resource getMoveToDifferentContainmentFeatureL2RLeft() throws IOException {
		return loadFromClassLoader("twoway/movedifferentcontainmentfeature/ltr/left.nodes");
	}

	public Resource getMoveToDifferentContainmentFeatureL2RRight() throws IOException {
		return loadFromClassLoader("twoway/movedifferentcontainmentfeature/ltr/right.nodes");
	}

	public Resource getOppositeReferenceChangeWithoutMatchingOrignalContainerL2RLeft() throws IOException {
		return loadFromClassLoader("twoway/oppositereferencechangewithoutmatchingorignalcontainer/ltr/left.nodes");
	}

	public Resource getOppositeReferenceChangeWithoutMatchingOrignalContainerL2RRight() throws IOException {
		return loadFromClassLoader("twoway/oppositereferencechangewithoutmatchingorignalcontainer/ltr/right.nodes");
	}

	public Resource getOppositeReferenceChangeWithAddAndDeleteOnMultivaluedSideLeft() throws IOException {
		return loadFromClassLoader("twoway/oppositereferencechangewithaddanddeleteonmultivaluedside/rtl/left.nodes");
	}

	public Resource getOppositeReferenceChangeWithAddAndDeleteOnMultivaluedSideRight() throws IOException {
		return loadFromClassLoader("twoway/oppositereferencechangewithaddanddeleteonmultivaluedside/rtl/right.nodes");
	}

	public Resource getMoveFromSingleValueReferenceToMultiValueReferenceR2LLeft() throws IOException {
		return loadFromClassLoader("twoway/movefromsinglevaluereferencetomultivaluereference/rtl/left.nodes");
	}

	public Resource getMoveFromSingleValueReferenceToMultiValueReferenceR2LRight() throws IOException {
		return loadFromClassLoader("twoway/movefromsinglevaluereferencetomultivaluereference/rtl/right.nodes");
	}

	public Resource getMoveToNewContainerInADifferentOrderR2LLeft() throws IOException {
		return loadFromClassLoader("twoway/movetonewcontainerinadifferentorder/rtl/left.nodes");
	}

	public Resource getMoveToNewContainerInADifferentOrderR2LRight() throws IOException {
		return loadFromClassLoader("twoway/movetonewcontainerinadifferentorder/rtl/right.nodes");
	}

	public Resource getManyToManyReferenceChangesR2LLeft() throws IOException {
		return loadFromClassLoader("twoway/manytomanyreferencechanges/rtl/left.nodes");
	}

	public Resource getManyToManyReferenceChangesR2LRight() throws IOException {
		return loadFromClassLoader("twoway/manytomanyreferencechanges/rtl/right.nodes");
	}

	public Resource getMoveToFeatureMapL2RLeft() throws IOException {
		return loadFromClassLoader("twoway/movetofeaturemap/ltr/left.nodes");
	}

	public Resource getMoveToFeatureMapL2RRight() throws IOException {
		return loadFromClassLoader("twoway/movetofeaturemap/ltr/right.nodes");
	}

	public Resource getDeleteFeatureMapNonContainmentsL2RLeft(ResourceSet resourceSet) throws IOException {
		return loadFromClassLoader("twoway/deletefeaturemapnoncontainments/ltr/left.nodes", resourceSet);
	}

	public Resource getDeleteFeatureMapNonContainmentsL2RRight(ResourceSet resourceSet) throws IOException {
		return loadFromClassLoader("twoway/deletefeaturemapnoncontainments/ltr/right.nodes", resourceSet);
	}

	public Resource getOneToOneMergeL2RLeft() throws IOException {
		return loadFromClassLoader("twoway/onetoonerefmerge/ltr/left.nodes");
	}

	public Resource getOneToOneRefMergeL2RRight() throws IOException {
		return loadFromClassLoader("twoway/onetoonerefmerge/ltr/right.nodes");
	}

	public Resource getOneToOneMergeR2LLeft() throws IOException {
		return loadFromClassLoader("twoway/onetoonerefmerge/rtl/left.nodes");
	}

	public Resource getOneToOneRefMergeR2LRight() throws IOException {
		return loadFromClassLoader("twoway/onetoonerefmerge/rtl/right.nodes");
	}

	public Resource getFeatureMapDependencyL2RLeft(ResourceSet resourceSet) throws IOException {
		return loadFromClassLoader("twoway/featuremapdependency/ltr/left.nodes", resourceSet);
	}

	public Resource getFeatureMapDependencyL2RRight(ResourceSet resourceSet) throws IOException {
		return loadFromClassLoader("twoway/featuremapdependency/ltr/right.nodes", resourceSet);
	}

	public Resource getRemoveFeatureMapR2LLeft(ResourceSet resourceSet) throws IOException {
		return loadFromClassLoader("twoway/removefeaturemap/rtl/left.nodes", resourceSet);
	}

	public Resource getRemoveFeatureMapR2LRight(ResourceSet resourceSet) throws IOException {
		return loadFromClassLoader("twoway/removefeaturemap/rtl/right.nodes", resourceSet);
	}
}

Back to the top