View | Details | Raw Unified | Return to bug 246276 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/pde/api/tools/builder/tests/compatibility/ClassCompatibilityHierarchyTests.java (-4 / +19 lines)
Lines 74-79 Link Here
74
				flags);
74
				flags);
75
	}
75
	}
76
76
77
	/**
78
	 * Returns a problem id for a compatibility remove to a class based on the
79
	 * specified flags.
80
	 * 
81
	 * @param flags
82
	 * @return problem id
83
	 */
84
	protected int getRemovedProblemId(int flags) {
85
		return ApiProblemFactory.createProblemId(
86
				IApiProblem.CATEGORY_COMPATIBILITY,
87
				IDelta.CLASS_ELEMENT_TYPE,
88
				IDelta.REMOVED,
89
				flags);
90
	}
91
	
77
	/* (non-Javadoc)
92
	/* (non-Javadoc)
78
	 * @see org.eclipse.pde.api.tools.builder.tests.ApiBuilderTests#getTestingProjectName()
93
	 * @see org.eclipse.pde.api.tools.builder.tests.ApiBuilderTests#getTestingProjectName()
79
	 */
94
	 */
Lines 87-93 Link Here
87
	private void xReduceHierarchyCtoA(boolean incremental) throws Exception {
102
	private void xReduceHierarchyCtoA(boolean incremental) throws Exception {
88
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ReduceFromCtoA.java");
103
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ReduceFromCtoA.java");
89
		int[] ids = new int[] {
104
		int[] ids = new int[] {
90
			getChangedProblemId(IDelta.CONTRACTED_SUPERCLASS_SET)
105
			getChangedProblemId(IDelta.SUPERCLASS)
91
		};
106
		};
92
		setExpectedProblemIds(ids);
107
		setExpectedProblemIds(ids);
93
		String[][] args = new String[1][];
108
		String[][] args = new String[1][];
Lines 110-116 Link Here
110
	private void xReduceHierarchyCtoB(boolean incremental) throws Exception {
125
	private void xReduceHierarchyCtoB(boolean incremental) throws Exception {
111
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ReduceFromCtoB.java");
126
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ReduceFromCtoB.java");
112
		int[] ids = new int[] {
127
		int[] ids = new int[] {
113
			getChangedProblemId(IDelta.CONTRACTED_SUPERCLASS_SET)
128
			getChangedProblemId(IDelta.SUPERCLASS)
114
		};
129
		};
115
		setExpectedProblemIds(ids);
130
		setExpectedProblemIds(ids);
116
		String[][] args = new String[1][];
131
		String[][] args = new String[1][];
Lines 133-139 Link Here
133
	private void xReduceHierarchyCtoObject(boolean incremental) throws Exception {
148
	private void xReduceHierarchyCtoObject(boolean incremental) throws Exception {
134
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ReduceFromCtoObject.java");
149
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ReduceFromCtoObject.java");
135
		int[] ids = new int[] {
150
		int[] ids = new int[] {
136
			getChangedProblemId(IDelta.SUPERCLASS) // TODO appears as changed superclass versus reduced
151
			getRemovedProblemId(IDelta.SUPERCLASS) // TODO appears as changed superclass versus reduced
137
		};
152
		};
138
		setExpectedProblemIds(ids);
153
		setExpectedProblemIds(ids);
139
		String[][] args = new String[1][];
154
		String[][] args = new String[1][];
Lines 156-162 Link Here
156
	private void xChangeHierarchyAtoD(boolean incremental) throws Exception {
171
	private void xChangeHierarchyAtoD(boolean incremental) throws Exception {
157
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ChangedFromAtoD.java");
172
		IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("ChangedFromAtoD.java");
158
		int[] ids = new int[] {
173
		int[] ids = new int[] {
159
			getChangedProblemId(IDelta.CONTRACTED_SUPERCLASS_SET) // TODO appears as reduced versus changed superclass
174
			getChangedProblemId(IDelta.SUPERCLASS)
160
		};
175
		};
161
		setExpectedProblemIds(ids);
176
		setExpectedProblemIds(ids);
162
		String[][] args = new String[1][];
177
		String[][] args = new String[1][];

Return to bug 246276