aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahrw...@apache.org
Subject svn commit: r1136341 - /aries/trunk/application/application-modeller-common-test/src/test/java/org/apache/aries/application/modelling/ModellerTest.java
Date Thu, 16 Jun 2011 09:33:09 GMT
Author: mahrwald
Date: Thu Jun 16 09:33:09 2011
New Revision: 1136341

URL: http://svn.apache.org/viewvc?rev=1136341&view=rev
Log:
ARIES-676: Make tests more resilient to different JVMs

Modified:
    aries/trunk/application/application-modeller-common-test/src/test/java/org/apache/aries/application/modelling/ModellerTest.java

Modified: aries/trunk/application/application-modeller-common-test/src/test/java/org/apache/aries/application/modelling/ModellerTest.java
URL: http://svn.apache.org/viewvc/aries/trunk/application/application-modeller-common-test/src/test/java/org/apache/aries/application/modelling/ModellerTest.java?rev=1136341&r1=1136340&r2=1136341&view=diff
==============================================================================
--- aries/trunk/application/application-modeller-common-test/src/test/java/org/apache/aries/application/modelling/ModellerTest.java
(original)
+++ aries/trunk/application/application-modeller-common-test/src/test/java/org/apache/aries/application/modelling/ModellerTest.java
Thu Jun 16 09:33:09 2011
@@ -67,9 +67,14 @@ public class ModellerTest {
 		assertEquals(1, resource.getExportedPackages().size());
 		assertEquals(3, resource.getImportedPackages().size());
 		
-		ImportedPackage pack = resource.getImportedPackages().iterator().next();
-		assertEquals("javax.jms", pack.getPackageName());
-		assertEquals("1.1.0", pack.getVersionRange());
+		boolean foundFirstPackage = false;
+		
+		for (ImportedPackage pack : resource.getImportedPackages()) {
+		    if ("javax.jms".equals(pack.getPackageName()) && "1.1.0".equals(pack.getVersionRange()))
+		        foundFirstPackage = true;
+		}
+		
+		assertTrue(foundFirstPackage);
 		
 		ExportedPackage epack = resource.getExportedPackages().iterator().next();
 		assertEquals("wibble", epack.getPackageName());



Mime
View raw message