commit | 337b0abf5057387c94808bfc8879762fc0794486 | [log] [tgz] |
---|---|---|
author | Dejan Glozic <dejan> | Fri Mar 23 14:04:08 2007 +0000 |
committer | Dejan Glozic <dejan> | Fri Mar 23 14:04:08 2007 +0000 |
tree | 6283f6fefa39c58064491cf6288785690e132a67 | |
parent | a46433aecd4f441899e4673fce74873b8ba65a17 [diff] |
Fixed the test by checking for null ISite return value.
diff --git a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java index 03f5182..04ef11c 100644 --- a/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java +++ b/update/org.eclipse.update.tests.core/src/org/eclipse/update/tests/api/TestSiteManagerAPI.java
@@ -36,8 +36,9 @@ public void testUnknown() throws Exception { URL url = new URL("ftp://255.255.255.255/"); try { - SiteManager.getSite(url,null); - fail("Connected to ftp://255.255.255.255/, should not happen"); + ISite site = SiteManager.getSite(url,null); + if (site!=null) + fail("Connected to ftp://255.255.255.255/, should not happen"); } catch (CoreException e){ // expected } catch (IllegalArgumentException e){