Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-08-23 09:59:42 +0000
committerAlexander Kurtakov2017-08-23 10:03:16 +0000
commit8db0333eaa018182202cf457c55bc99dc855697f (patch)
tree409c018d0bdc0e671f752eceb51441320905f75c /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint
parente2e76129b65add425d644edf93d149cc636e9376 (diff)
downloadrt.equinox.p2-8db0333eaa018182202cf457c55bc99dc855697f.tar.gz
rt.equinox.p2-8db0333eaa018182202cf457c55bc99dc855697f.tar.xz
rt.equinox.p2-8db0333eaa018182202cf457c55bc99dc855697f.zip
Bug 521301 - Stop using deprecated p2 methods in p2 tests
Change-Id: I08b47ba0d4219f15b061b759c01f874747a496df Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddProgramArgumentActionTest.java13
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddSourceBundleActionTest.java7
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/CheckTrustActionTest.java7
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/ChmodActionTest.java9
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/EclipseTouchpointTest.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallBundleActionTest.java7
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallFeatureActionTest.java9
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/LinkActionTest.java9
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/MarkStartedActionTest.java13
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java7
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveSourceBundleActionTest.java7
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java9
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java13
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallBundleActionTest.java7
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallFeatureActionTest.java7
15 files changed, 71 insertions, 57 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddProgramArgumentActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddProgramArgumentActionTest.java
index c3974abeb..bd8d4ba60 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddProgramArgumentActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddProgramArgumentActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -12,6 +12,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util;
@@ -82,7 +83,7 @@ public class AddProgramArgumentActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -135,7 +136,7 @@ public class AddProgramArgumentActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -194,7 +195,7 @@ public class AddProgramArgumentActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -247,7 +248,7 @@ public class AddProgramArgumentActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddSourceBundleActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddSourceBundleActionTest.java
index 4160b0e06..3ec2123f3 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddSourceBundleActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/AddSourceBundleActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -14,6 +14,7 @@ import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.*;
@@ -57,7 +58,7 @@ public class AddSourceBundleActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/CheckTrustActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/CheckTrustActionTest.java
index de6dc7fa4..8661a7876 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/CheckTrustActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/CheckTrustActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -12,6 +12,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.engine.phases.CheckTrust;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
@@ -56,7 +57,7 @@ public class CheckTrustActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/ChmodActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/ChmodActionTest.java
index 1f4479bd9..b370d9a31 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/ChmodActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/ChmodActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
* Cloudsmith Inc - ongoing development
@@ -14,6 +14,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.util.*;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util;
@@ -122,7 +123,7 @@ public class ChmodActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, dirBundleTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, dirBundleTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -200,7 +201,7 @@ public class ChmodActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, dirBundleTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, dirBundleTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/EclipseTouchpointTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/EclipseTouchpointTest.java
index 7214d4760..0aa51a7e1 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/EclipseTouchpointTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/EclipseTouchpointTest.java
@@ -132,7 +132,7 @@ public class EclipseTouchpointTest extends AbstractProvisioningTest {
BundleDescription bundleDescription = BundlesAction.createBundleDescription(osgiTarget);
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map<String, String> extraProperties = new HashMap<>();
extraProperties.put(IInstallableUnit.PROP_PARTIAL_IU, Boolean.TRUE.toString());
@@ -170,7 +170,7 @@ public class EclipseTouchpointTest extends AbstractProvisioningTest {
BundleDescription bundleDescription = BundlesAction.createBundleDescription(osgiTarget);
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map<String, String> extraProperties = new HashMap<>();
extraProperties.put(IInstallableUnit.PROP_PARTIAL_IU, Boolean.TRUE.toString());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallBundleActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallBundleActionTest.java
index e47341493..3b70c4c7f 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallBundleActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallBundleActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -13,6 +13,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.net.URI;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
@@ -58,7 +59,7 @@ public class InstallBundleActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallFeatureActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallFeatureActionTest.java
index 62b3eb0de..912804f25 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallFeatureActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/InstallFeatureActionTest.java
@@ -1,9 +1,9 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others. All rights reserved. This
+ * Copyright (c) 2008, 2017 IBM Corporation 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: IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
@@ -12,6 +12,7 @@ import java.io.File;
import java.net.URI;
import java.util.*;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactDescriptor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureParser;
@@ -63,7 +64,7 @@ public class InstallFeatureActionTest extends AbstractProvisioningTest {
((SimpleArtifactDescriptor) descriptor).setRepositoryProperty("artifact.folder", Boolean.TRUE.toString());
IInstallableUnit iu = FeaturesAction.createFeatureJarIU(feature, info);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -116,7 +117,7 @@ public class InstallFeatureActionTest extends AbstractProvisioningTest {
((SimpleArtifactDescriptor) descriptor).setRepositoryProperty("artifact.folder", Boolean.TRUE.toString());
IInstallableUnit iu = FeaturesAction.createFeatureJarIU(feature, info);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/LinkActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/LinkActionTest.java
index c2153841a..4a4213ac1 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/LinkActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/LinkActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -12,6 +12,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util;
@@ -86,7 +87,7 @@ public class LinkActionTest extends AbstractProvisioningTest {
ArtifactDescriptor descriptor = (ArtifactDescriptor) PublisherHelper.createArtifactDescriptor(key, dirBundleTarget);
descriptor.setProperty("artifact.folder", Boolean.TRUE.toString());
IInstallableUnit iu = createBundleIU(bundleDescription, dirBundleTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -131,7 +132,7 @@ public class LinkActionTest extends AbstractProvisioningTest {
ArtifactDescriptor descriptor = (ArtifactDescriptor) PublisherHelper.createArtifactDescriptor(key, dirBundleTarget);
descriptor.setProperty("artifact.folder", Boolean.TRUE.toString());
IInstallableUnit iu = createBundleIU(bundleDescription, dirBundleTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/MarkStartedActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/MarkStartedActionTest.java
index 245612353..b57014a6e 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/MarkStartedActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/MarkStartedActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -13,6 +13,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.net.URI;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
@@ -58,7 +59,7 @@ public class MarkStartedActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -104,7 +105,7 @@ public class MarkStartedActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -126,7 +127,7 @@ public class MarkStartedActionTest extends AbstractProvisioningTest {
assertTrue(isMarkedStarted(manipulator, osgiTarget, false));
// let's remove the artifact now
- bundlePool.removeDescriptor(descriptor);
+ bundlePool.removeDescriptor(descriptor, new NullProgressMonitor());
MarkStartedAction action = new MarkStartedAction();
action.execute(parameters);
@@ -153,7 +154,7 @@ public class MarkStartedActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java
index 0187a7e1d..373017306 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveProgramArgumentActionTest.java
@@ -4,7 +4,7 @@
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -12,6 +12,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util;
@@ -84,7 +85,7 @@ public class RemoveProgramArgumentActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -140,7 +141,7 @@ public class RemoveProgramArgumentActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveSourceBundleActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveSourceBundleActionTest.java
index d86b3d742..7dfe5fadc 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveSourceBundleActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/RemoveSourceBundleActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -14,6 +14,7 @@ import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.*;
@@ -57,7 +58,7 @@ public class RemoveSourceBundleActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java
index b9f1bfea4..a7d7286b0 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetProgramPropertyActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -12,6 +12,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util;
@@ -84,7 +85,7 @@ public class SetProgramPropertyActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -141,7 +142,7 @@ public class SetProgramPropertyActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java
index 7de00e543..6559810d7 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/SetStartLevelActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -13,6 +13,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.net.URI;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
@@ -58,7 +59,7 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -104,7 +105,7 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
@@ -126,7 +127,7 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest {
assertTrue(isStartLevel(manipulator, osgiTarget, -1));
// let's remove the artifact now
- bundlePool.removeDescriptor(descriptor);
+ bundlePool.removeDescriptor(descriptor, new NullProgressMonitor());
SetStartLevelAction action = new SetStartLevelAction();
action.execute(parameters);
@@ -153,7 +154,7 @@ public class SetStartLevelActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallBundleActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallBundleActionTest.java
index ad84ace14..e72578c4d 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallBundleActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallBundleActionTest.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2017 IBM Corporation 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -13,6 +13,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.net.URI;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint;
@@ -58,7 +59,7 @@ public class UninstallBundleActionTest extends AbstractProvisioningTest {
IArtifactKey key = BundlesAction.createBundleArtifactKey(bundleDescription.getSymbolicName(), bundleDescription.getVersion().toString());
IArtifactDescriptor descriptor = PublisherHelper.createArtifactDescriptor(key, osgiTarget);
IInstallableUnit iu = createBundleIU(bundleDescription, osgiTarget.isDirectory(), key);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallFeatureActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallFeatureActionTest.java
index 4df2e68cc..07dc97da1 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallFeatureActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/touchpoint/eclipse/UninstallFeatureActionTest.java
@@ -1,9 +1,9 @@
/*******************************************************************************
- * Copyright (c) 2008, 2015 IBM Corporation and others. All rights reserved. This
+ * Copyright (c) 2008, 2017 IBM Corporation 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: IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
@@ -11,6 +11,7 @@ package org.eclipse.equinox.p2.tests.touchpoint.eclipse;
import java.io.File;
import java.net.URI;
import java.util.*;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactDescriptor;
import org.eclipse.equinox.internal.p2.engine.InstallableUnitOperand;
import org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureParser;
@@ -67,7 +68,7 @@ public class UninstallFeatureActionTest extends AbstractProvisioningTest {
((SimpleArtifactDescriptor) descriptor).setRepositoryProperty("artifact.folder", Boolean.TRUE.toString());
IInstallableUnit iu = FeaturesAction.createFeatureJarIU(feature, info);
- bundlePool.addDescriptor(descriptor);
+ bundlePool.addDescriptor(descriptor, new NullProgressMonitor());
Map parameters = new HashMap();
parameters.put(ActionConstants.PARM_AGENT, getAgent());

Back to the top