summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2013-04-02 15:31:39 (EDT)
committerPascal Rapicault2013-04-02 15:31:39 (EDT)
commit46107af7509738d227327b7a9da0f01cb242852e (patch)
treec62093fc8160879269619920d48ba26869eafde3
parent7184672bf7e9aed74dc896deea71041b570ffb9c (diff)
downloadrt.equinox.p2-46107af7509738d227327b7a9da0f01cb242852e.zip
rt.equinox.p2-46107af7509738d227327b7a9da0f01cb242852e.tar.gz
rt.equinox.p2-46107af7509738d227327b7a9da0f01cb242852e.tar.bz2
Remove test cases for the lucky button
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyHelper.java151
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest.java55
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest10.java71
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest2.java64
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest3.java69
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest4.java97
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest5.java51
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest6.java59
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest7.java68
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest8.java69
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest9.java71
11 files changed, 0 insertions, 825 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyHelper.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyHelper.java
deleted file mode 100644
index 6af11e8..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyHelper.java
+++ /dev/null
@@ -1,151 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import java.util.*;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
-import org.eclipse.equinox.internal.p2.metadata.query.UpdateQuery;
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.engine.query.IUProfilePropertyQuery;
-import org.eclipse.equinox.p2.metadata.*;
-import org.eclipse.equinox.p2.planner.*;
-import org.eclipse.equinox.p2.query.*;
-
-public class LuckyHelper {
- private static final String INCLUSION_RULES = "org.eclipse.equinox.p2.internal.inclusion.rules"; //$NON-NLS-1$
- private static final String INCLUSION_OPTIONAL = "OPTIONAL"; //$NON-NLS-1$
- private static final String INCLUSION_STRICT = "STRICT"; //$NON-NLS-1$
-
- private IProfile profile;
- private IPlanner planner;
- private IProfileChangeRequest originalRequest;
- private ProvisioningContext provisioningContext;
-
- private Set<IInstallableUnit> strictRoots;
- private Set<IInstallableUnit> optionalRoots;
-
- private IProfileChangeRequest updateFinderRequest;
-
- IProfileChangeRequest computeProfileChangeRequest(IProfile profile, IPlanner plannor, IProfileChangeRequest request, ProvisioningContext context, IProgressMonitor monitor) {
- // IProfileRegistry profileRegistry = (IProfileRegistry) session.getProvisioningAgent().getService(IProfileRegistry.SERVICE_NAME);
- this.planner = plannor; //(IPlanner) session.getProvisioningAgent().getService(IPlanner.SERVICE_NAME);
- this.profile = profile; //profileRegistry.getProfile(getProfileId());
- this.provisioningContext = context;
- originalRequest = request;
-
- gatherRoots();
- CollectionResult<IInstallableUnit> allInitialRoots = buildUpdateFinderRequest();
-
- IProvisioningPlan updateFinderPlan = planner.getProvisioningPlan(updateFinderRequest, provisioningContext, null);
- if (updateFinderPlan.getAdditions().query(QueryUtil.ALL_UNITS, null).isEmpty()) {
- return null;
- }
-
- return buildFinalRequest(allInitialRoots, updateFinderPlan);
- }
-
- //Gather the initial roots and merge them with those from the original request
- private void gatherRoots() {
- strictRoots = profile.query(new IUProfilePropertyQuery(INCLUSION_RULES, INCLUSION_STRICT), null).toSet();
- optionalRoots = profile.query(new IUProfilePropertyQuery(INCLUSION_RULES, INCLUSION_OPTIONAL), null).toSet();
-
- //Take into account the changes from the request (potential addition or removals)
- if (originalRequest != null) {
- strictRoots.removeAll(originalRequest.getRemovals());
- optionalRoots.removeAll(originalRequest.getRemovals());
- Collection<IInstallableUnit> added = originalRequest.getAdditions();
- for (IInstallableUnit iuAdded : added) {
- Map props = ((ProfileChangeRequest) originalRequest).getInstallableUnitProfilePropertiesToAdd();
- Map propertyForIU = (Map) props.get(iuAdded);
- if (propertyForIU == null || INCLUSION_STRICT.equals(propertyForIU.get(INCLUSION_RULES))) {
- strictRoots.add(iuAdded);
- } else if (INCLUSION_OPTIONAL.equals(propertyForIU.get(INCLUSION_RULES))) {
- optionalRoots.add(iuAdded);
- }
- }
- }
- }
-
- //Produce a profile change request which is used to find the best update
- private CollectionResult<IInstallableUnit> buildUpdateFinderRequest() {
- Set<IInstallableUnit> tmpRoots = new HashSet<IInstallableUnit>(strictRoots);
- tmpRoots.addAll(optionalRoots);
-
- CollectionResult<IInstallableUnit> allInitialRoots = new CollectionResult<IInstallableUnit>(tmpRoots);
-
- updateFinderRequest = planner.createChangeRequest(profile);
- Collection<IRequirement> limitingRequirements = new ArrayList<IRequirement>();
- if (originalRequest != null && originalRequest.getExtraRequirements() != null)
- limitingRequirements.addAll(originalRequest.getExtraRequirements());
-
- //Create a profile change request that attempts at installing updates for all the existing roots.
- for (Iterator<IInstallableUnit> iterator = allInitialRoots.query(QueryUtil.ALL_UNITS, null).iterator(); iterator.hasNext();) {
- IInstallableUnit currentlyInstalled = iterator.next();
-
- //find all the potential updates for the currentlyInstalled iu
- IQueryResult<IInstallableUnit> updatesAvailable = planner.updatesFor(currentlyInstalled, provisioningContext, null);
- for (Iterator<IInstallableUnit> iterator2 = updatesAvailable.iterator(); iterator2.hasNext();) {
- IInstallableUnit update = iterator2.next();
- updateFinderRequest.add(update);
- updateFinderRequest.setInstallableUnitInclusionRules(update, ProfileInclusionRules.createOptionalInclusionRule(update));
- }
-
- //force the original IU to optional, but make sure that the solution at least includes it
- updateFinderRequest.setInstallableUnitInclusionRules(currentlyInstalled, ProfileInclusionRules.createOptionalInclusionRule(currentlyInstalled));
- limitingRequirements.add(MetadataFactory.createRequirement(IInstallableUnit.NAMESPACE_IU_ID, currentlyInstalled.getId(), new VersionRange(currentlyInstalled.getVersion(), true, Version.MAX_VERSION, true), null, false, false));
- }
- updateFinderRequest.addExtraRequirements(limitingRequirements);
- return allInitialRoots;
- }
-
- //Analyze the plan produced by the execution of the updateFinderRequest, and produce a plan representing the recommended changes
- private IProfileChangeRequest buildFinalRequest(CollectionResult<IInstallableUnit> allInitialRoots, IProvisioningPlan updateFinderPlan) {
- //Take into account all the removals
- IProfileChangeRequest finalChangeRequest = planner.createChangeRequest(profile);
- if (originalRequest != null && originalRequest.getExtraRequirements() != null)
- finalChangeRequest.addExtraRequirements(originalRequest.getExtraRequirements());
- IQueryResult<IInstallableUnit> removals = updateFinderPlan.getRemovals().query(QueryUtil.ALL_UNITS, null);
- for (Iterator<IInstallableUnit> iterator = removals.iterator(); iterator.hasNext();) {
- IInstallableUnit iu = iterator.next();
- if (!allInitialRoots.query(QueryUtil.createIUQuery(iu), null).isEmpty()) {
- finalChangeRequest.remove(iu);
- }
- }
-
- //Take into account the additions for stricts
- for (Iterator<IInstallableUnit> iterator = strictRoots.iterator(); iterator.hasNext();) {
- IInstallableUnit formerRoot = iterator.next();
- IQueryResult<IInstallableUnit> update = updateFinderPlan.getAdditions().query(new UpdateQuery(formerRoot), null);
- if (!update.isEmpty())
- finalChangeRequest.addAll(update.toUnmodifiableSet());
- else if (originalRequest != null && originalRequest.getAdditions().contains(formerRoot)) //deal with the case of the elements added by the request
- finalChangeRequest.add(formerRoot);
- }
-
- //Take into account the additions for optionals
- for (Iterator<IInstallableUnit> iterator = optionalRoots.iterator(); iterator.hasNext();) {
- IInstallableUnit formerRoot = iterator.next();
- IQueryResult<IInstallableUnit> update = updateFinderPlan.getAdditions().query(new UpdateQuery(formerRoot), null);
- if (!update.isEmpty()) {
- for (Iterator<IInstallableUnit> it = update.iterator(); it.hasNext();) {
- IInstallableUnit updatedOptionalIU = it.next();
- finalChangeRequest.add(updatedOptionalIU);
- finalChangeRequest.setInstallableUnitInclusionRules(updatedOptionalIU, ProfileInclusionRules.createOptionalInclusionRule(updatedOptionalIU));
- }
- } else if (originalRequest != null && originalRequest.getAdditions().contains(formerRoot)) {
- finalChangeRequest.add(formerRoot);
- finalChangeRequest.setInstallableUnitInclusionRules(formerRoot, ProfileInclusionRules.createOptionalInclusionRule(formerRoot));
- }
- }
- return finalChangeRequest;
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest.java
deleted file mode 100644
index 01fa438..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- }
-
- public void testInstallSDK2() {
- assertNotOK(install(profile, new IInstallableUnit[] {platform2}, true, planner, engine));
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, null, new ProvisioningContext(getAgent()), getMonitor());
- assertTrue(res.getAdditions().contains(sdk2));
- assertTrue(res.getRemovals().contains(sdk1));
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest10.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest10.java
deleted file mode 100644
index 6cb63c7..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest10.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.query.QueryUtil;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest10 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit egit1;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit egit2;
-
- IProfile profile = createProfile("TestProfile." + getName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2, egit1, egit2});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- }
-
- public void testRemovalIsTakenIntoAccount() {
- IProfileChangeRequest changeRequest = new ProfileChangeRequest(profile);
- changeRequest.remove(egit1);
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, changeRequest, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(1, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertEquals(1, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2});
- assertTrue(profile.query(QueryUtil.createIUQuery(egit1), null).isEmpty());
- assertTrue(profile.query(QueryUtil.createIUQuery(egit2), null).isEmpty());
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest2.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest2.java
deleted file mode 100644
index 65de55a..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest2.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest2 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit egit1;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2, egit1});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1, egit1}, true, planner, engine));
- }
-
- public void testInstallSDK2() {
- assertNotOK(install(profile, new IInstallableUnit[] {platform2}, true, planner, engine));
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, null, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(1, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertEquals(1, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2, egit1});
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("STRICT", profile.getInstallableUnitProperty(egit1, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest3.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest3.java
deleted file mode 100644
index 11825ab..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest3.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest3 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit egit1;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2, egit1});
- planner = createPlanner();
- engine = createEngine();
-
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- assertOK(install(profile, new IInstallableUnit[] {egit1}, false, planner, engine));
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk1, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("OPTIONAL", profile.getInstallableUnitProperty(egit1, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-
- public void testInstallSDK2() {
- assertNotOK(install(profile, new IInstallableUnit[] {platform2}, true, planner, engine));
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, null, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(1, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertEquals(1, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2, egit1});
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals(null, profile.getInstallableUnitProperty(platform2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("OPTIONAL", profile.getInstallableUnitProperty(egit1, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest4.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest4.java
deleted file mode 100644
index 7d4aa48..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest4.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest4 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1\n")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2\n")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit egit1;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit egit2;
-
- IProfile profile;
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- profile = createProfile("TestProfile." + getName());
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2, egit1, egit2});
- planner = createPlanner();
- engine = createEngine();
-
- //Setup the initial state of the profile
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- assertOK(install(profile, new IInstallableUnit[] {egit1}, false, planner, engine));
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk1, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("OPTIONAL", profile.getInstallableUnitProperty(egit1, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-
- //Verify that both strict and optional dependencies are updated and the properties appropriately conserved
- public void testInstallSDK2() {
- assertNotOK(install(profile, new IInstallableUnit[] {platform2, egit2}, true, planner, engine));
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, null, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(2, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertTrue(res.getAdditions().contains(egit2));
- assertEquals(2, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
- assertTrue(res.getRemovals().contains(egit1));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2, egit2});
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals(null, profile.getInstallableUnitProperty(platform2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("OPTIONAL", profile.getInstallableUnitProperty(egit2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-
- //Check that
- public void updateWithInterference() {
- assertNotOK(install(profile, new IInstallableUnit[] {platform2, egit2}, true, planner, engine));
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, null, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(2, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertTrue(res.getAdditions().contains(egit2));
- assertEquals(2, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
- assertTrue(res.getRemovals().contains(egit1));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2, egit2});
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals(null, profile.getInstallableUnitProperty(platform2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("OPTIONAL", profile.getInstallableUnitProperty(egit2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
-
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest5.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest5.java
deleted file mode 100644
index 3283b9c..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest5.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest5 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, platform2});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- }
-
- //Verify that no plan is provided when the update is not possible
- public void testInstallSDK2() {
- assertNotOK(install(profile, new IInstallableUnit[] {platform2}, true, planner, engine));
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, null, new ProvisioningContext(getAgent()), getMonitor());
- assertNull(res);
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest6.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest6.java
deleted file mode 100644
index 1c3fb81..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest6.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest6 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 3 \n" + "depends: platform = 2")
- public IInstallableUnit sdk3;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, sdk3, platform2});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- }
-
- //Test that the highest version is installed
- public void testInstallSDK3() {
- assertNotOK(install(profile, new IInstallableUnit[] {platform2}, true, planner, engine));
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, null, new ProvisioningContext(getAgent()), getMonitor());
- assertTrue(res.getAdditions().contains(sdk3));
- assertTrue(res.getRemovals().contains(sdk1));
- }
-
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest7.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest7.java
deleted file mode 100644
index ba46e73..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest7.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest7 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit egit2;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2, egit2});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- }
-
- public void testInstallGit2WhichShouldUpdateSDK() {
- IProfileChangeRequest changeRequest = new ProfileChangeRequest(profile);
- changeRequest.add(egit2);
- assertNotOK(planner.getProvisioningPlan(changeRequest, null, null).getStatus());
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, changeRequest, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(2, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertEquals(1, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
- assertTrue(res.getAdditions().contains(egit2));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2, egit2});
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("STRICT", profile.getInstallableUnitProperty(egit2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest8.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest8.java
deleted file mode 100644
index 34d8757..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest8.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.*;
-import org.eclipse.equinox.p2.query.QueryUtil;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest8 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit egit2;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2, egit2});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- }
-
- public void testInstallGit2OptionallyWhichShouldUpdateSDK() {
- IProfileChangeRequest changeRequest = new ProfileChangeRequest(profile);
- changeRequest.add(egit2);
- changeRequest.setInstallableUnitInclusionRules(egit2, ProfileInclusionRules.createOptionalInclusionRule(egit2));
- assertTrue(planner.getProvisioningPlan(changeRequest, null, null).getAdditions().query(QueryUtil.createIUQuery(egit2), null).isEmpty());
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, changeRequest, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(2, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertEquals(1, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
- assertTrue(res.getAdditions().contains(egit2));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2, egit2});
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- assertEquals("OPTIONAL", profile.getInstallableUnitProperty(egit2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-}
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest9.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest9.java
deleted file mode 100644
index a88767b..0000000
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/LuckyTest9.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc. 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:
- * Sonatype, Inc. - initial implementation and ideas
- ******************************************************************************/
-package org.eclipse.equinox.p2.tests.planner;
-
-import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
-import org.eclipse.equinox.p2.engine.*;
-import org.eclipse.equinox.p2.metadata.IInstallableUnit;
-import org.eclipse.equinox.p2.planner.IPlanner;
-import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
-import org.eclipse.equinox.p2.query.QueryUtil;
-import org.eclipse.equinox.p2.tests.*;
-
-public class LuckyTest9 extends AbstractProvisioningTest {
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit sdk1;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 1 \n")
- public IInstallableUnit platform1;
-
- @IUDescription(content = "package: sdk \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit sdk2;
-
- @IUDescription(content = "package: platform \n" + "singleton: true\n" + "version: 2 \n")
- public IInstallableUnit platform2;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 1 \n" + "depends: platform = 1")
- public IInstallableUnit egit1;
-
- @IUDescription(content = "package: egit \n" + "singleton: true\n" + "version: 2 \n" + "depends: platform = 2")
- public IInstallableUnit egit2;
-
- IProfile profile = createProfile("TestProfile." + getClass().getSimpleName());
-
- private IPlanner planner;
-
- private IEngine engine;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- IULoader.loadIUs(this);
- createTestMetdataRepository(new IInstallableUnit[] {sdk1, platform1, sdk2, platform2, egit1, egit2});
- planner = createPlanner();
- engine = createEngine();
- assertOK(install(profile, new IInstallableUnit[] {sdk1}, true, planner, engine));
- }
-
- public void testRemovalIsTakenIntoAccount() {
- IProfileChangeRequest changeRequest = new ProfileChangeRequest(profile);
- changeRequest.remove(egit1);
-
- IProfileChangeRequest res = new LuckyHelper().computeProfileChangeRequest(profile, planner, changeRequest, new ProvisioningContext(getAgent()), getMonitor());
- assertEquals(1, res.getAdditions().size());
- assertTrue(res.getAdditions().contains(sdk2));
- assertEquals(1, res.getRemovals().size());
- assertTrue(res.getRemovals().contains(sdk1));
-
- assertOK(install(res, planner, engine));
- assertProfileContains("validate new profile", profile, new IInstallableUnit[] {sdk2, platform2});
- assertTrue(profile.query(QueryUtil.createIUQuery(egit1), null).isEmpty());
- assertTrue(profile.query(QueryUtil.createIUQuery(egit2), null).isEmpty());
- assertEquals("STRICT", profile.getInstallableUnitProperty(sdk2, "org.eclipse.equinox.p2.internal.inclusion.rules"));
- }
-}