From 06d02a2ebb00c7e090cee8147c9f7c3f2fd39fc7 Mon Sep 17 00:00:00 2001 From: John Arthorne Date: Mon, 10 May 2010 17:19:16 +0000 Subject: update repo URL and include feature version in report --- .../eclipse/equinox/p2/tests/TestLicenseConsistency.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java index dfd9b041d..7c8b79bbf 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java @@ -28,7 +28,7 @@ import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository; */ public class TestLicenseConsistency extends AbstractProvisioningTest { public void testLicenses() throws URISyntaxException, ProvisionException, OperationCanceledException { - URI repoLocation = new URI("http://download.eclipse.org/releases/helios"); + URI repoLocation = new URI("http://download.eclipse.org/releases/helios/201005070900"); IMetadataRepository repo = getMetadataRepositoryManager().loadRepository(repoLocation, null); IQueryResult allFeatures = repo.query(QueryUtil.createIUGroupQuery(), null); IQueryResult platform = allFeatures.query(QueryUtil.createIUQuery("org.eclipse.platform.feature.group"), null); @@ -60,17 +60,17 @@ public class TestLicenseConsistency extends AbstractProvisioningTest { System.out.println("Features with no license:" + SPACER); for (IInstallableUnit unit : sort(noLicense)) { - System.out.println(unit.getId()); + System.out.println(unit.getId() + ' ' + unit.getVersion()); } System.out.println("\n\nFeatures with different license:" + SPACER); for (IInstallableUnit unit : sort(badLicense)) { - System.out.println(unit.getId()); + System.out.println(unit.getId() + ' ' + unit.getVersion()); } System.out.println("\n\nFeatures with matching license:" + SPACER); for (IInstallableUnit unit : sort(goodLicense)) { - System.out.println(unit.getId()); + System.out.println(unit.getId() + ' ' + unit.getVersion()); } } @@ -97,9 +97,9 @@ public class TestLicenseConsistency extends AbstractProvisioningTest { ILicense featureLicense = licenses.iterator().next(); if (!platformLicense.getUUID().equals(featureLicense.getUUID())) { badLicense.add(feature); - // if (featureLicense.getBody().length() < 100) { - // System.out.println(feature.getId() + " license: " + featureLicense.getBody()); - // } +// if (featureLicense.getBody().length() < 100) { +// System.out.println(feature.getId() + " license: " + featureLicense.getBody()); +// } continue; } goodLicense.add(feature); -- cgit v1.2.3