Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2013-07-29 13:40:44 -0400
committerPascal Rapicault2013-08-27 20:33:01 -0400
commit27beb4d5c163c8e1013cc3e4d1c391c9a2fa5299 (patch)
tree3e972e2a2018cbb19593e07d56d8f6364cb36d04 /bundles/org.eclipse.equinox.p2.tests
parentc2d8bbf2411c51c40785b283dc69aeace2f1529a (diff)
downloadrt.equinox.p2-27beb4d5c163c8e1013cc3e4d1c391c9a2fa5299.tar.gz
rt.equinox.p2-27beb4d5c163c8e1013cc3e4d1c391c9a2fa5299.tar.xz
rt.equinox.p2-27beb4d5c163c8e1013cc3e4d1c391c9a2fa5299.zip
Bug - 402560,405041 Migration wizard Update to latest versions and shows only those to be migrated.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/NeedsMigration.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/NeedsMigration.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/NeedsMigration.java
index 980797834..bb4614693 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/NeedsMigration.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/NeedsMigration.java
@@ -12,6 +12,7 @@ package org.eclipse.equinox.p2.tests.sharedinstall;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
+import java.util.Collection;
import org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport;
import org.eclipse.equinox.p2.engine.IEngine;
import org.eclipse.equinox.p2.engine.IProfile;
@@ -50,7 +51,7 @@ public class NeedsMigration extends AbstractProvisioningTest {
engine = createEngine();
scheduler = new MigrationSupport();
createTestMetdataRepository(new IInstallableUnit[] {sdk1, sdk2, egit1, egit2, cdt1, eppPackage});
- needsMigrationMethod = scheduler.getClass().getDeclaredMethod("needsMigration", IProfile.class, IProfile.class);
+ needsMigrationMethod = scheduler.getClass().getDeclaredMethod("findUnitstoMigrate", IProfile.class, IProfile.class);
needsMigrationMethod.setAccessible(true);
}
@@ -179,7 +180,7 @@ public class NeedsMigration extends AbstractProvisioningTest {
private boolean needsMigration(IProfile previousUserProfile, IProfile currentBaseProfile) {
try {
- return (Boolean) needsMigrationMethod.invoke(scheduler, previousUserProfile, currentBaseProfile);
+ return !((Collection) needsMigrationMethod.invoke(scheduler, previousUserProfile, currentBaseProfile)).isEmpty();
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
} catch (IllegalArgumentException e) {

Back to the top