Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 274695 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/equinox/p2/tests/publisher/actions/FeaturesActionTest.java (+6 lines)
Lines 156-161 Link Here
156
		contains(barProvidedCapabilities, PublisherHelper.NAMESPACE_ECLIPSE_TYPE, "feature", fooVersion); //$NON-NLS-1$ 
156
		contains(barProvidedCapabilities, PublisherHelper.NAMESPACE_ECLIPSE_TYPE, "feature", fooVersion); //$NON-NLS-1$ 
157
		contains(barProvidedCapabilities, "org.eclipse.update.feature", BAR, barVersion); //$NON-NLS-1$
157
		contains(barProvidedCapabilities, "org.eclipse.update.feature", BAR, barVersion); //$NON-NLS-1$
158
		assertTrue(barProvidedCapabilities.length == 3);
158
		assertTrue(barProvidedCapabilities.length == 3);
159
160
		// Verify that only one of foo and foo group has a license
161
		assertTrue(foo.getLicense() != null || fooGroup.getLicense() != null);
162
		assertTrue(foo.getCopyright() != null || fooGroup.getCopyright() != null);
163
		assertFalse(foo.getLicense() != null && fooGroup.getLicense() != null);
164
		assertFalse(foo.getCopyright() != null && fooGroup.getCopyright() != null);
159
	}
165
	}
160
166
161
	private void verifyArtifacts() throws IOException {
167
	private void verifyArtifacts() throws IOException {

Return to bug 274695