ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1311148 - /ant/ivy/core/trunk/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
Date Mon, 09 Apr 2012 07:11:48 GMT
Author: maartenc
Date: Mon Apr  9 07:11:48 2012
New Revision: 1311148

URL: http://svn.apache.org/viewvc?rev=1311148&view=rev
Log:
junit test fix caused by ivyde release

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=1311148&r1=1311147&r2=1311148&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 Apr  9 07:11:48 2012
@@ -55,7 +55,13 @@ public class UpdateSiteLoaderTest extend
     public void testIvyDE() throws IOException, ParseException, SAXException, URISyntaxException
{
         RepoDescriptor site = loader.load(new URI(
                 "http://www.apache.org/dist/ant/ivyde/updatesite/"));
-        assertEquals(13, site.getModules().size());
+        assertFalse(site.getModules().isEmpty());
+        for (Iterator it = site.getModules().iterator(); it.hasNext(); ) {
+            ModuleDescriptor md = (ModuleDescriptor) it.next();
+            String name = md.getModuleRevisionId().getName();
+            System.out.println(name);
+            assertTrue(name, name.startsWith("org.apache.ivy"));
+        }
     }
 
     public void testM2Eclipse() throws IOException, ParseException, SAXException,



Mime
View raw message