diff options
author | Pascal Rapicault | 2009-03-12 19:53:55 +0000 |
---|---|---|
committer | Pascal Rapicault | 2009-03-12 19:53:55 +0000 |
commit | c12958ef0cdc22abf72a7e805c374e4e48b20134 (patch) | |
tree | c05a0071e089acf9d07be0baabbe67a5363ad3c9 | |
parent | ce25610c806fdb1500eb16f22365313d14987a9c (diff) | |
download | rt.equinox.p2-c12958ef0cdc22abf72a7e805c374e4e48b20134.tar.gz rt.equinox.p2-c12958ef0cdc22abf72a7e805c374e4e48b20134.tar.xz rt.equinox.p2-c12958ef0cdc22abf72a7e805c374e4e48b20134.zip |
Tweak the example to be more relevant
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/RepoValidator.java | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/RepoValidator.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/RepoValidator.java index 938af9845..dae998db7 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/RepoValidator.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/RepoValidator.java @@ -21,7 +21,7 @@ import org.osgi.framework.ServiceReference; public class RepoValidator extends AbstractProvisioningTest { public void testValidate() throws ProvisionException, URISyntaxException { - URI repoLoc = new URI("file:d:/ganymedeM5"); + URI repoLoc = new URI("http://fullmoon.ottawa.ibm.com/eclipse/updates/3.5-I-builds/"); ServiceReference sr = TestActivator.context.getServiceReference(IPlanner.class.getName()); if (sr == null) { throw new RuntimeException("Planner service not available"); @@ -40,23 +40,16 @@ public class RepoValidator extends AbstractProvisioningTest { Map properties = new HashMap(); properties.put(IInstallableUnit.NAMESPACE_FLAVOR, "tooling"); + properties.put("osgi.os", "win32"); + properties.put("osgi.ws", "win32"); + properties.put("osgi.arch", "x86"); IProfile p = createProfile("repoValidator", null, properties); Query q; - // q = new Query() { - // public boolean isMatch(Object object) { - // if (!(object instanceof IInstallableUnit)) - // return false; - // IInstallableUnit candidate = (IInstallableUnit) object; - // if (candidate.getId().startsWith("org.eclipse.jst") || candidate.getId().startsWith("org.eclipse.wst")) - // return true; - // return false; - // } - // }; - // q = new InstallableUnitQuery("org.eclipse.wst.ws.parser"); + q = new InstallableUnitQuery("org.eclipse.rcp.feature.group"); - q = InstallableUnitQuery.ANY; + // q = InstallableUnitQuery.ANY; Collector iusToTest = validatedRepo.query(q, new Collector(), null); ProvisioningContext pc = new ProvisioningContext(new URI[] {repoLoc}); |