felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r937464 - /felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestFragment.java
Date Fri, 23 Apr 2010 18:49:43 GMT
Author: rickhall
Date: Fri Apr 23 18:49:42 2010
New Revision: 937464

URL: http://svn.apache.org/viewvc?rev=937464&view=rev
Log:
Align tests with latest trunk resolver.

Modified:
    felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestFragment.java

Modified: felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestFragment.java
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestFragment.java?rev=937464&r1=937463&r2=937464&view=diff
==============================================================================
--- felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestFragment.java
(original)
+++ felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestFragment.java
Fri Apr 23 18:49:42 2010
@@ -459,14 +459,14 @@ public class TestFragment extends FelixT
             getPackageAdmin().resolveBundles(new Bundle[] { m_bundleB });
 
             assertEquals(
-                "Fragment should be resolved.", m_bundleC.getState(), Bundle.RESOLVED);
-            assertNotNull(
-                "Fragment resource should be found.", m_bundleB.getResource("b013.txt"));
+                "Fragment should not be resolved.", m_bundleC.getState(), Bundle.INSTALLED);
+            assertNull(
+                "Fragment resource should not be found.", m_bundleB.getResource("b013.txt"));
 
             assertEquals(
-                "Fragment should not be resolved.", m_bundleD.getState(), Bundle.INSTALLED);
-            assertNull(
-                "Fragment resource should not be found.", m_bundleB.getResource("b012.txt"));
+                "Fragment should be resolved.", m_bundleD.getState(), Bundle.RESOLVED);
+            assertNotNull(
+                "Fragment resource should be found.", m_bundleB.getResource("b012.txt"));
         }
         finally
         {



Mime
View raw message