Skip to main content
summaryrefslogtreecommitdiffstats
blob: a4701a76f2b2c2e0dd4e85f32ca6d8eb49ae0ff0 (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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
/*****************************************************************************
 * Copyright (c) 2012, 2017 CEA LIST, Christian W. Damus, 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:
 *  Vincent Lorenzo (CEA LIST) Vincent.Lorenzo@cea.fr - Initial API and implementation
 *  Christian W. Damus - Skip the feature-version test when running in development mode
 *  Christian W. Damus - bugs 433206, 485220
 *  Thanh Liem PHAN (ALL4TEC) thanhliem.phan@all4tec.net - Bug 513963
 *****************************************************************************/
package org.eclipse.papyrus.bundles.tests;

import java.lang.reflect.Field;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.eclipse.osgi.util.NLS;
import org.eclipse.papyrus.internal.bundles.tests.PapyrusBundleDescription;
import org.eclipse.papyrus.internal.bundles.tests.PapyrusBundleDescriptionRegistry;
import org.eclipse.papyrus.junit.framework.classification.InvalidTest;
import org.eclipse.papyrus.junit.framework.classification.NotImplemented;
import org.eclipse.papyrus.junit.framework.classification.rules.Condition;
import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest;
import org.eclipse.papyrus.junit.utils.JUnitUtils;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.junit.Assert;
import org.junit.Test;
import org.osgi.framework.Bundle;

/**
 * Suppress restriction for org.eclipse.pde.internal.core.feature.Feature.
 *
 * @author Vincent Lorenzo
 *
 * @noreference This class is not intended to be referenced by clients.
 */
public class BundlesTests extends AbstractPapyrusTest {

	// Indicates that the bundle name must contain the (Incubation) string
	// private static final String REGEX_INCUBATION = ".*\\(Incubation\\)"; //$NON-NLS-1$

	private static final String INCUBATION_KEYWORD = "(Incubation)"; //$NON-NLS-1$

	private static final String BATIK_VERSION = "\"[1.6.0,1.7.0)\""; //$NON-NLS-1$

	private static final String NATTABLE_VERSION = "1.5.0"; //$NON-NLS-1$

	private static final String GLAZED_LIST_VERSION = "1.9.0";//$NON-NLS-1$

	private static final String UML2_UML_VERSION_RANGE = "bundle-version=\"[5.3.0,6.0.0)\"";//$NON-NLS-1$

	@Condition
	public final boolean isAutomatedBuild = JUnitUtils.isAutomatedBuildExecution();

	/**
	 * Tests that all Papyrus Bundle name are finished by {@link #INCUBATION}
	 */
	@InvalidTest("Some Papyrus bundles are still incubating (Extra...)")
	@Test
	public void incubationTest() {
		org.hamcrest.Matcher<String> matcher = new BaseMatcher<String>() {

			@Override
			public boolean matches(Object item) {
				return item instanceof String && !((String) item).contains(INCUBATION_KEYWORD);
			}

			@Override
			public void describeTo(Description description) {
				description.appendText("Does not contain "); //$NON-NLS-1$
				description.appendText(INCUBATION_KEYWORD);
			}
		};
		testManifestProperty(BundleTestsUtils.BUNDLE_NAME, matcher, false, false);
	}

	/**
	 * Tests the provider name (should be EL
	 */
	@Test
	public void vendorTest() {
		testManifestProperty(BundleTestsUtils.BUNDLE_VENDOR, BundleTestsUtils.VENDOR_NAME, false, false);
	}

	/**
	 * Tests if the file about.html is included to the plugin
	 */
	@Test
	public void aboutTest() {
		fileTest("/about.html"); //$NON-NLS-1$
	}

	/**
	 * Tests the java version
	 */
	@Test
	public void javaVersionTest() {
		testManifestProperty(BundleTestsUtils.BUNDLE_REQUIREDEXECUTIONENVIRONMENT, BundleTestsUtils.JAVA_VERSION_REGEX, false, true);
	}

	/**
	 * Tests that we don't use import package
	 */
	@NotImplemented("Usage of importPackage is discouraged")
	@Test
	public void importPackage() {
		testManifestProperty(BundleTestsUtils.BUNDLE_IMPORT_PACKAGE, "", true, false); //$NON-NLS-1$
	}

	/**
	 * Tests if a the value of a property in the Manifest is correct
	 *
	 * @param property
	 *            the property to test
	 * @param regex
	 *            the regular expression to test the property
	 * @param mustBeNull
	 *            indicates that the value for the property must be <code>null</code>
	 * @param onlyOnJavaProject
	 *            boolean indicating if the tests should only be done on
	 *            JavaProject
	 */
	private void testManifestProperty(final String property, final String regex, final boolean mustBeNull, final boolean onlyOnJavaProject) {
		org.hamcrest.Matcher<String> regexMatcher = new org.hamcrest.BaseMatcher<String>() {

			@Override
			public boolean matches(Object item) {
				return item instanceof String && ((String) item).matches(regex);
			}

			@Override
			public void describeTo(Description description) {
				description.appendText("Matching regex("); //$NON-NLS-1$
				description.appendValue(regex);
				description.appendText(")"); //$NON-NLS-1$
			}

		};

		testManifestProperty(property, regexMatcher, mustBeNull, onlyOnJavaProject);
	}

	private void testManifestProperty(final String property, final org.hamcrest.Matcher<String> matcher, final boolean mustBeNull, final boolean onlyOnJavaProject) {
		String message = null;
		int nb = 0;
		for (final Bundle current : BundleTestsUtils.getPapyrusBundles()) {
			if (onlyOnJavaProject && !BundleTestsUtils.isJavaProject(current)) {
				continue; // useful for oep.infra.gmfdiag.css.theme for example
			}
			final String value = current.getHeaders().get(property);
			boolean result = false;
			if (mustBeNull) {
				result = (value == null);
			} else if (value != null) {
				result = matcher.matches(value); // Don't fail yet if invalid
			}
			if (!result) {
				if (message == null) {
					message = "Wrong " + property + " for :"; //$NON-NLS-1$ //$NON-NLS-2$
				}
				message += "\n "; //$NON-NLS-1$
				message += current.getSymbolicName();
				nb++;
			}
		}
		Assert.assertNull(nb + " problems!", message); //$NON-NLS-1$
	}

	/**
	 * Tests if the file is owned by the bundle
	 *
	 * @param filepath
	 *            the file path
	 */
	private void fileTest(final String filepath) {
		StringBuffer buffer = new StringBuffer();
		int nb = 0;
		for (final Bundle current : BundleTestsUtils.getPapyrusBundles()) {
			URL url = current.getEntry(filepath);
			if (url == null) {
				if (buffer.length() == 0) {
					buffer.append(NLS.bind("The following bundles don't have the file {0}.", filepath)); //$NON-NLS-1$
				}
				buffer.append("\n");//$NON-NLS-1$
				buffer.append(current.getSymbolicName());
				nb++;
			}
		}
		StringBuffer errorMessage = new StringBuffer();
		errorMessage.append(nb);
		errorMessage.append(" problems!\n"); //$NON-NLS-1$
		errorMessage.append(buffer.toString());
		Assert.assertTrue(errorMessage.toString(), buffer.toString().isEmpty());
	}

	/**
	 * We want that all Papyrus batik dependencies will be defines
	 */
	@Test
	public void batikDependencyVersionTest() {
		testPapyrusDependencies2("org.apache.batik", BATIK_VERSION);//$NON-NLS-1$
	}

	@Test
	public void natTableDependencyVersionTest() {
		testPapyrusDependencies("org.eclipse.nebula.widgets.nattable", NATTABLE_VERSION, Collections.singletonList("org.eclipse.nebula.widgets.nattable.extension.nebula"));//$NON-NLS-1$ //$NON-NLS-2$
	}

	@Test
	public void glazedListDependencyVersionTest() {
		testPapyrusDependencies2("ca.odell.glazedlists", GLAZED_LIST_VERSION);//$NON-NLS-1$
	}

	@Test
	public void guavaDependencyVersionTest() {
		testPapyrusDependencies2("com.google.guava", "21.0.0");//$NON-NLS-1$ //$NON-NLS-2$
	}

	@Test
	public void uml2umlDependencyVersionTest() {
		testPapyrusDependencies("org.eclipse.uml2.uml", UML2_UML_VERSION_RANGE, //$NON-NLS-1$
				new ArrayList<>(Arrays.asList("org.eclipse.uml2.uml.profile.standard", //$NON-NLS-1$
						"org.eclipse.uml2.uml.validation", "org.eclipse.uml2.uml.editor"))); //$NON-NLS-1$ //$NON-NLS-2$
	}

	public static final String REGEX_PACKAGE_WORD = "\\w(?:\\w|\\d)*";// match a //$NON-NLS-1$
																		// package
																		// name

	public static final String REGEX_PLUGIN = "(?:\\." + REGEX_PACKAGE_WORD + ")*";// match plugin name //$NON-NLS-1$ //$NON-NLS-2$

	public static final String REGEX_BUNDLE = "(?:;bundle-version=\"([^\"]*)\")?"; //$NON-NLS-1$

	public static final String REGEX_REEXPORT = "(?:;\\w*:=\\w*;\\w*-\\w*=\"([^\"]*)\")|"; //$NON-NLS-1$

	public static class Version {

		private boolean minIncluding;

		private boolean maxIncluding;

		private int[] min = null;

		private int[] max = null;

		public Version(final String versionAsString) {
			this.minIncluding = true;
			this.maxIncluding = true;
			if (versionAsString != null) {
				this.minIncluding = !versionAsString.startsWith("("); //$NON-NLS-1$
				this.maxIncluding = !versionAsString.endsWith(")"); //$NON-NLS-1$
				final Pattern versionNumber = Pattern.compile("\\d+(\\.\\d+)*"); //$NON-NLS-1$
				final Matcher matcher = versionNumber.matcher(versionAsString);
				while (matcher.find()) {
					final String grp = matcher.group();
					final String[] versions = grp.split("\\."); //$NON-NLS-1$
					int[] vers = new int[versions.length];
					for (int i = 0; i < versions.length; i++) {
						vers[i] = Integer.parseInt(versions[i]);
					}
					if (min == null) {
						min = vers;
					} else {
						max = vers;
					}
				}
			}
			if (min == null) {
				min = new int[] { 0, 0, 0 };
			}
			if (max == null) {
				max = new int[] { 99, 99, 99 };
			}
		}

		public boolean inIncludedIn(final Version version) {
			// verifying intersection between versions!
			if (compare(this.max, version.min) < 0) {
				return false;
			}
			if (compare(version.max, this.min) < 0) {
				return false;
			}
			if (compare(this.max, version.min) == 0 && (!this.maxIncluding || !version.minIncluding)) {
				return false;
			}
			if (compare(version.max, this.min) == 0 && (!version.maxIncluding || !this.minIncluding)) {
				return false;
			}

			// verifying inclusion
			if (compare(this.min, version.min) < 0) {
				return false;
			}

			if (compare(this.min, version.min) == 0 && (this.minIncluding != version.minIncluding)) {
				return false;
			}

			if (compare(this.max, version.max) > 0) {
				return false;
			}

			if (compare(this.max, version.max) == 0 && (this.maxIncluding != version.maxIncluding)) {
				return false;
			}
			return true;
		}

		/**
		 *
		 * @param first
		 * @param second
		 * @return
		 *         <ul>
		 *         <li>0 when they are equal</li>
		 *         <li>1 if first is greater than second</li>
		 *         <li>-1 if first is smaller than second</li>
		 *         </ul>
		 */
		protected int compare(int[] first, int[] second) {
			int min = Math.min(first.length, second.length);
			for (int i = 0; i < min; i++) {
				if (first[i] < second[i]) {
					return -1;
				} else if (first[i] > second[i]) {
					return 1;
				}
			}
			if (first.length == second.length) {
				return 0;
			} else if (first.length > second.length) {
				return 1;
			}
			return -1;
		}
	}

	/**
	 *
	 * @param partialDependencyName
	 *            the fullName or a part of the name of the plugin
	 * @param wantedBundleVersionRegex
	 *            a string like this : "bundle-version=\"[1.6.0,1.7.0)\""
	 * @deprecated since 2.0, use the method {@link BundlesTests#testPapyrusDependencies(String, String, List)} instead
	 */
	@Deprecated
	protected void testPapyrusDependencies2(final String partialDependencyName, final String wantedVersion) {
		testPapyrusDependencies(partialDependencyName, wantedVersion, Collections.emptyList());
	}

	/**
	 *
	 * @param partialDependencyName
	 *            the fullName or a part of the name of the plugin
	 * @param wantedBundleVersionRegex
	 *            a string like this : "bundle-version=\"[1.6.0,1.7.0)\""
	 * @param list
	 *            of dependencies to ignore
	 * @since 2.0
	 */
	protected void testPapyrusDependencies(final String partialDependencyName, final String wantedVersion, List<String> exceptions) {
		final StringBuilder builder = new StringBuilder();
		int nb = 0;
		final Version wanted = new Version(wantedVersion);
		for (final Bundle current : BundleTestsUtils.getPapyrusBundles()) {
			final String value = current.getHeaders().get(BundleTestsUtils.REQUIRE_BUNDLE);
			if (value == null) {
				continue;
			}

			// Pattern pattern = Pattern.compile("(" + partialDependencyName + REGEX_PLUGIN + ")" + REGEX_DEPENDENCY); //$NON-NLS-1$ //$NON-NLS-2$
			Pattern pattern = Pattern.compile("(" + partialDependencyName + REGEX_PLUGIN + ")" + "(" + REGEX_REEXPORT + REGEX_BUNDLE + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
			Matcher matcher = pattern.matcher(value);
			final StringBuilder localBuilder = new StringBuilder();
			while (matcher.find()) {
				final String pluginName = matcher.group(1);
				if (exceptions.contains(pluginName)) {
					continue;
				}
				String versionString = null;
				if (matcher.groupCount() > 1) {
					versionString = matcher.group(2);
				}
				if (versionString == null) {
					if (localBuilder.length() == 0) {
						localBuilder.append(NLS.bind("Incorrect version for {0}, got {1} and not {2} \n", new String[] { pluginName, current.getSymbolicName(), wantedVersion })); //$NON-NLS-1$
					}
					localBuilder.append(NLS.bind("No Version number for {0}\n", pluginName)); //$NON-NLS-1$
					nb++;
				} else {
					Version version = new Version(versionString);
					if (!version.inIncludedIn(wanted)) {
						if (localBuilder.length() == 0) {
							localBuilder.append(NLS.bind("{0} incorrect required bundle-version:\n", current.getSymbolicName())); //$NON-NLS-1$
						}
						localBuilder.append(NLS.bind("Bad version for {0}, got {1} and not {2} \n", new String[] { pluginName, versionString, wantedVersion })); //$NON-NLS-1$
						nb++;
					}
				}
			}
			if (localBuilder.length() != 0) {
				builder.append(localBuilder.toString());
				builder.append("\n");//$NON-NLS-1$
			}
		}
		if (builder.length() != 0)

		{
			builder.insert(0, NLS.bind("{0} problems. We want this version : {1} for the plugin {2}\n", new String[] { Integer.toString(nb), wantedVersion, partialDependencyName })); //$NON-NLS-1$
		}
		Assert.assertTrue(builder.toString(), builder.length() == 0);
	}

	/**
	 * verify that the field PLUGIN_ID is equals to the plugin name
	 */
	@Test
	public void pluginIDTest() {
		StringBuffer errorMessage = new StringBuffer();
		StringBuffer warningMessage = new StringBuffer();
		final Collection<String> possibleIds = new ArrayList<>();
		possibleIds.add("ID");//$NON-NLS-1$
		possibleIds.add("PLUGIN_ID");//$NON-NLS-1$
		int nbError = 0;
		int nbWarning = 0;
		for (final Bundle current : BundleTestsUtils.getPapyrusBundles()) {
			if (!BundleTestsUtils.isJavaProject(current)) {
				continue; // useful for oep.infra.gmfdiag.css.theme for example
			}
			final String activator = current.getHeaders().get("Bundle-Activator"); //$NON-NLS-1$
			if (activator != null) {
				try {
					final Class<?> activatorClass = current.loadClass(activator);
					Field plugin_id_field = null;
					for (final Field currentField : activatorClass.getFields()) {
						final String fieldName = currentField.getName();
						if (possibleIds.contains(fieldName)) {
							plugin_id_field = currentField;
							break;
						}
					}
					if (plugin_id_field != null) {
						final String plugin_id = (String) plugin_id_field.get(activatorClass);
						if (!plugin_id.equals(current.getSymbolicName())) {
							nbError++;
							errorMessage.append(NLS.bind("The field PLUGIN_ID of the plugin {0} is not equals to the plugin name.\n", current.getSymbolicName())); //$NON-NLS-1$
						}
					} else {
						// Never happens. An exception is thrown.
						nbWarning++;
						warningMessage.append(NLS.bind("The activator of {0} has no field named PLUGIN_ID.\n", current.getSymbolicName())); //$NON-NLS-1$
					}
				} catch (final Exception e) {
					errorMessage.append(NLS.bind("Exception occured with the plugin {0} \n {1} \n", new Object[] { current.getSymbolicName(), e })); //$NON-NLS-1$
				}
			}

		}
		StringBuffer finalErrorMessage = new StringBuffer();
		finalErrorMessage.append(nbError);
		finalErrorMessage.append(" problems! ");//$NON-NLS-1$
		finalErrorMessage.append(errorMessage);
		Assert.assertTrue(finalErrorMessage.toString(), nbError == 0);

		// Do not fail on warnings
		// Assert.assertTrue(nbWarning + "warning!" + warningMessage, nbWarning == 0);//$NON-NLS-1$
	}

	/**
	 * This test checks that nobody adds an unexpected dependency on the plugin org.eclipse.papyrus.emf
	 * 
	 * @since 1.3
	 */
	@Test
	public void checkPapyrusEMFPluginDependency() {
		final String bundleIDToCheck = "org.eclipse.papyrus.emf"; //$NON-NLS-1$
		final Map<String, Version> dependencies = new HashMap<>();
		final Version undefinedVersion = new Version(null);
		dependencies.put("org.eclipse.ui", undefinedVersion); //$NON-NLS-1$
		dependencies.put("org.eclipse.core.runtime", undefinedVersion); //$NON-NLS-1$
		dependencies.put("org.eclipse.emf.ecore", undefinedVersion); //$NON-NLS-1$
		dependencies.put("org.eclipse.emf.ecore.xmi", undefinedVersion); //$NON-NLS-1$

		strictCheckOfDependenciesList(bundleIDToCheck, dependencies, Collections.emptySet(), Collections.emptySet(), Collections.emptySet());

	}


	/**
	 * 
	 * This method check all dependencies on the bundle. The version are checked using the method {@link Version#inIncludedIn(Version)}
	 * If there are more or less dependencies in the tested bundle, the test will fails
	 * 
	 * @param bundleSymbolicNameToCheck
	 *            the name of the bundle to check
	 * @param bundleDependenciesWithVersion
	 *            the complete list of the dependencies to have for this bundle
	 * @param reexportedDependencies
	 *            the completed list of re-exported dependencies for this bundle
	 * @param greedyDependencies
	 *            the complete list of greedy dependencies for this bundle
	 * @param optionalDependencies
	 *            the complete list of optional dependencies for this bundle
	 * 
	 * @since 1.3
	 */
	private void strictCheckOfDependenciesList(final String bundleSymbolicNameToCheck, final Map<String, Version> bundleDependenciesWithVersion, final Set<String> reexportedDependencies, final Set<String> greedyDependencies,
			final Set<String> optionalDependencies) {

		Assert.assertNotNull(bundleSymbolicNameToCheck);
		Assert.assertNotNull(bundleDependenciesWithVersion);
		Assert.assertNotNull(reexportedDependencies);
		Assert.assertNotNull(greedyDependencies);
		Assert.assertNotNull(optionalDependencies);

		final PapyrusBundleDescription bundleToCheck = PapyrusBundleDescriptionRegistry.INSTANCE.getPapyrusBundleDescription(bundleSymbolicNameToCheck);
		Assert.assertNotNull(NLS.bind("The bundle {0} has not been found.", bundleSymbolicNameToCheck), bundleToCheck); //$NON-NLS-1$

		final Set<String> expectedDependencies = bundleDependenciesWithVersion.keySet();
		Assert.assertEquals("The current dependencies are not the expected ones.", expectedDependencies, PapyrusBundleDescription.asSymbolicNameSet(bundleToCheck.getDependencies())); //$NON-NLS-1$

		Assert.assertEquals("The current reexported dependencies are not the expected ones.", reexportedDependencies, PapyrusBundleDescription.asSymbolicNameSet(bundleToCheck.getReexportedDependencies())); //$NON-NLS-1$

		Assert.assertEquals("The current greedy dependencies are not the expected ones.", greedyDependencies, PapyrusBundleDescription.asSymbolicNameSet(bundleToCheck.getGreedyDependencies())); //$NON-NLS-1$

		Assert.assertEquals("The current optional dependencies are not the expected ones.", optionalDependencies, PapyrusBundleDescription.asSymbolicNameSet(bundleToCheck.getOptionalDependencies())); //$NON-NLS-1$


		// we check the dependency range
		for (final Entry<String, Version> current : bundleDependenciesWithVersion.entrySet()) {
			Assert.assertTrue(NLS.bind("The dependency {0} is not registered with compatible version range", current.getKey()), bundleToCheck.getRegisteredDependencyVersion(current.getKey()).inIncludedIn(current.getValue())); //$NON-NLS-1$
		}

	}



}

Back to the top