karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r960068 - in /karaf/trunk/features/core/src/test/java/org/apache/karaf/features: FeaturesServiceTest.java RepositoryTest.java
Date Fri, 02 Jul 2010 17:43:22 GMT
Author: gnodet
Date: Fri Jul  2 17:43:21 2010
New Revision: 960068

URL: http://svn.apache.org/viewvc?rev=960068&view=rev
Log:
Fix unit tests

Modified:
    karaf/trunk/features/core/src/test/java/org/apache/karaf/features/FeaturesServiceTest.java
    karaf/trunk/features/core/src/test/java/org/apache/karaf/features/RepositoryTest.java

Modified: karaf/trunk/features/core/src/test/java/org/apache/karaf/features/FeaturesServiceTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/features/core/src/test/java/org/apache/karaf/features/FeaturesServiceTest.java?rev=960068&r1=960067&r2=960068&view=diff
==============================================================================
--- karaf/trunk/features/core/src/test/java/org/apache/karaf/features/FeaturesServiceTest.java
(original)
+++ karaf/trunk/features/core/src/test/java/org/apache/karaf/features/FeaturesServiceTest.java
Fri Jul  2 17:43:21 2010
@@ -100,7 +100,7 @@ public class FeaturesServiceTest extends
         assertEquals(0, features[0].getDependencies().size());
         assertNotNull(features[0].getBundles());
         assertEquals(1, features[0].getBundles().size());
-        assertEquals(name, features[0].getBundles().get(0));
+        assertEquals(name, features[0].getBundles().get(0).getLocation());
 
         verify(preferencesService, prefs, repositoriesNode, featuresNode, bundleContext,
installedBundle);
 

Modified: karaf/trunk/features/core/src/test/java/org/apache/karaf/features/RepositoryTest.java
URL: http://svn.apache.org/viewvc/karaf/trunk/features/core/src/test/java/org/apache/karaf/features/RepositoryTest.java?rev=960068&r1=960067&r2=960068&view=diff
==============================================================================
--- karaf/trunk/features/core/src/test/java/org/apache/karaf/features/RepositoryTest.java
(original)
+++ karaf/trunk/features/core/src/test/java/org/apache/karaf/features/RepositoryTest.java
Fri Jul  2 17:43:21 2010
@@ -47,8 +47,8 @@ public class RepositoryTest extends Test
         assertEquals(0, features[0].getDependencies().size());
         assertNotNull(features[0].getBundles());
         assertEquals(2, features[0].getBundles().size());
-        assertEquals("b1", features[0].getBundles().get(0));
-        assertEquals("b2", features[0].getBundles().get(1));
+        assertEquals("b1", features[0].getBundles().get(0).getLocation());
+        assertEquals("b2", features[0].getBundles().get(1).getLocation());
         assertNotNull(features[1]);
         assertEquals("f2", features[1].getName());
         assertNotNull(features[1].getConfigurations());
@@ -58,7 +58,7 @@ public class RepositoryTest extends Test
         assertEquals("f1" + FeatureImpl.SPLIT_FOR_NAME_AND_VERSION + FeatureImpl.DEFAULT_VERSION,
features[1].getDependencies().get(0).toString());
         assertNotNull(features[1].getBundles());
         assertEquals(1, features[1].getBundles().size());
-        assertEquals("b3", features[1].getBundles().get(0));
+        assertEquals("b3", features[1].getBundles().get(0).getLocation());
     }
     
     public void testShowWrongUriInException() throws Exception {



Mime
View raw message