Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-09-23 16:30:48 -0400
committerDJ Houghton2010-09-23 16:30:48 -0400
commitb3056d34afd1d93aed65f6f60be0fe143769aa21 (patch)
treee45a91ca4b76cf4ac75a5914bd72c6c5ef60a7bd /bundles/org.eclipse.equinox.p2.tests.ui
parent74da6b60db862faecf46e73cfbc4d20313f5da51 (diff)
downloadrt.equinox.p2-b3056d34afd1d93aed65f6f60be0fe143769aa21.tar.gz
rt.equinox.p2-b3056d34afd1d93aed65f6f60be0fe143769aa21.tar.xz
rt.equinox.p2-b3056d34afd1d93aed65f6f60be0fe143769aa21.zip
Bug 326090 - [api] ProfileChangeOperation leaks non-APIv20100927-1600
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.ui')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UpdateOperationTests.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UpdateOperationTests.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UpdateOperationTests.java
index 579d31cfa..53373f2e8 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UpdateOperationTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UpdateOperationTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 IBM Corporation and others.
+ * Copyright (c) 2009, 2010 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
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.equinox.p2.tests.ui.operations;
-import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest;
-
import java.util.ArrayList;
import java.util.HashSet;
import org.eclipse.equinox.internal.p2.operations.SearchForUpdatesResolutionJob;
@@ -60,7 +58,7 @@ public class UpdateOperationTests extends AbstractProvisioningUITest {
iusInvolved.add(a1);
UpdateOperation op = getProvisioningUI().getUpdateOperation(iusInvolved, null);
op.resolveModal(getMonitor());
- ProfileChangeRequest request = op.getProfileChangeRequest();
+ IProfileChangeRequest request = op.getProfileChangeRequest();
assertTrue("1.0", request.getAdditions().size() == 1);
assertTrue("1.1", request.getAdditions().iterator().next().equals(a130));
assertTrue("1.2", request.getRemovals().size() == 1);
@@ -85,7 +83,7 @@ public class UpdateOperationTests extends AbstractProvisioningUITest {
assertNotNull(".99", firstPatch);
op.setSelectedUpdates(new Update[] {firstPatch});
op.resolveModal(getMonitor());
- ProfileChangeRequest request = op.getProfileChangeRequest();
+ IProfileChangeRequest request = op.getProfileChangeRequest();
assertTrue("1.0", request.getAdditions().size() == 1);
assertTrue("1.1", request.getAdditions().iterator().next().equals(firstPatchForA1));
assertTrue("1.2", request.getRemovals().size() == 0);

Back to the top