ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r1311150 - in /ant/ivy/core/branches/2.3.x: ./ test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
Date Mon, 09 Apr 2012 07:16:40 GMT
Author: maartenc
Date: Mon Apr  9 07:16:40 2012
New Revision: 1311150

URL: http://svn.apache.org/viewvc?rev=1311150&view=rev
Log:
junit test fix caused by ivyde release (merged from trunk)

Modified:
    ant/ivy/core/branches/2.3.x/   (props changed)
    ant/ivy/core/branches/2.3.x/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java

Propchange: ant/ivy/core/branches/2.3.x/
------------------------------------------------------------------------------
  Merged /ant/ivy/core/trunk:r1311148-1311149

Modified: ant/ivy/core/branches/2.3.x/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/branches/2.3.x/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java?rev=1311150&r1=1311149&r2=1311150&view=diff
==============================================================================
--- ant/ivy/core/branches/2.3.x/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
(original)
+++ ant/ivy/core/branches/2.3.x/test/java/org/apache/ivy/osgi/updatesite/UpdateSiteLoaderTest.java
Mon Apr  9 07:16:40 2012
@@ -55,7 +55,12 @@ 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();
+            assertTrue(name, name.startsWith("org.apache.ivy"));
+        }
     }
 
     public void testM2Eclipse() throws IOException, ParseException, SAXException,



Mime
View raw message