You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ma...@apache.org on 2012/01/02 01:02:38 UTC
svn commit: r1226319 -
/ant/ivy/core/trunk/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
Author: maartenc
Date: Mon Jan 2 00:02:38 2012
New Revision: 1226319
URL: http://svn.apache.org/viewvc?rev=1226319&view=rev
Log:
Fixed some outdated junit tests...
Modified:
ant/ivy/core/trunk/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java?rev=1226319&r1=1226318&r2=1226319&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java (original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java Mon Jan 2 00:02:38 2012
@@ -61,16 +61,13 @@ public class UpdateSiteLoaderTest extend
public void testM2Eclipse() throws IOException, ParseException, SAXException,
URISyntaxException {
RepoDescriptor site = loader.load(new URI("http://m2eclipse.sonatype.org/sites/m2e/"));
- assertTrue(site.getModules().size() > 70);
+ assertTrue(site.getModules().size() > 50);
Iterator itModules = site.getModules().iterator();
while (itModules.hasNext()) {
ModuleDescriptor md = (ModuleDescriptor) itModules.next();
String name = md.getModuleRevisionId().getName();
assertTrue(name, name.indexOf("org.maven") != -1);
}
-
- site = loader.load(new URI("http://m2eclipse.sonatype.org/sites/m2e/"));
- assertTrue(site.getModules().size() > 70);
}
public void _disabled_testHeliosEclipse() throws IOException, ParseException, SAXException,
@@ -81,7 +78,7 @@ public class UpdateSiteLoaderTest extend
public void testComposite() throws Exception {
RepoDescriptor site = loader.load(new File("test/test-p2/composite/").toURI());
- assertEquals(18, site.getModules().size());
+ assertEquals(8, site.getModules().size());
// check that the url of the artifact is correctly resolved
String path = new File("test/test-p2/ivyde-repo/").toURI().toURL().toExternalForm();