Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2009-04-25 01:55:27 +0000
committerSimon Kaegi2009-04-25 01:55:27 +0000
commit7e72820935eebbd5d23bdbba3899409aaaf737d2 (patch)
treeba99d18ba1370e99ad36d4281f2b4cc20683609d /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite
parentb2c0966c07adae235881de4bd1300132507288b4 (diff)
downloadrt.equinox.p2-7e72820935eebbd5d23bdbba3899409aaaf737d2.tar.gz
rt.equinox.p2-7e72820935eebbd5d23bdbba3899409aaaf737d2.tar.xz
rt.equinox.p2-7e72820935eebbd5d23bdbba3899409aaaf737d2.zip
Bug 252393 [update] Error reading site digest message should reference real site
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java
index b070df3a5..f559b2099 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/updatesite/UpdateSiteTest.java
@@ -278,6 +278,21 @@ public class UpdateSiteTest extends AbstractProvisioningTest {
}
}
+ public void testCorruptDigestGoodSite() {
+ File site = getTestData("0.1", "/testData/updatesite/corruptdigestgoodsite");
+ UpdateSite updatesite = null;
+ try {
+ updatesite = UpdateSite.load(site.toURI(), getMonitor());
+ } catch (ProvisionException e) {
+ fail("0.2", e);
+ }
+ try {
+ updatesite.loadFeatures(new NullProgressMonitor());
+ } catch (ProvisionException e) {
+ fail("0.4", e);
+ }
+ }
+
public void testBadDigestBadSite() {
File site = getTestData("0.1", "/testData/updatesite/baddigestbadsite");
try {

Back to the top