felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1750504 - /felix/sandbox/cziegeler/configurator/src/test/java/org/apache/felix/configurator/impl/ConfiguratorTest.java
Date Tue, 28 Jun 2016 13:23:33 GMT
Author: cziegeler
Date: Tue Jun 28 13:23:32 2016
New Revision: 1750504

URL: http://svn.apache.org/viewvc?rev=1750504&view=rev
Log:
Fix test case

Modified:
    felix/sandbox/cziegeler/configurator/src/test/java/org/apache/felix/configurator/impl/ConfiguratorTest.java

Modified: felix/sandbox/cziegeler/configurator/src/test/java/org/apache/felix/configurator/impl/ConfiguratorTest.java
URL: http://svn.apache.org/viewvc/felix/sandbox/cziegeler/configurator/src/test/java/org/apache/felix/configurator/impl/ConfiguratorTest.java?rev=1750504&r1=1750503&r2=1750504&view=diff
==============================================================================
--- felix/sandbox/cziegeler/configurator/src/test/java/org/apache/felix/configurator/impl/ConfiguratorTest.java
(original)
+++ felix/sandbox/cziegeler/configurator/src/test/java/org/apache/felix/configurator/impl/ConfiguratorTest.java
Tue Jun 28 13:23:32 2016
@@ -90,10 +90,10 @@ public class ConfiguratorTest {
 
         final Dictionary<String, Object> props1 = new Hashtable<>();
         props1.put("foo", "bar");
-        verify(c1).update(props1);
+        verify(c1).setProperties(props1);
         final Dictionary<String, Object> props2 = new Hashtable<>();
         props2.put("x", "y");
-        verify(c2).update(props2);
+        verify(c2).setProperties(props2);
 
         configurator.processRemoveBundle(1);
         configurator.process();
@@ -139,12 +139,12 @@ public class ConfiguratorTest {
         configurator.process();
 
         InOrder inorder = inOrder(c1, c2);
-        inorder.verify(c1).update(props1);
-        inorder.verify(c2).update(props2);
-        inorder.verify(c1).update(props3);
-        inorder.verify(c2).update(props4);
-        inorder.verify(c1).update(props1);
-        inorder.verify(c2).update(props2);
+        inorder.verify(c1).setProperties(props1);
+        inorder.verify(c2).setProperties(props2);
+        inorder.verify(c1).setProperties(props3);
+        inorder.verify(c2).setProperties(props4);
+        inorder.verify(c1).setProperties(props1);
+        inorder.verify(c2).setProperties(props2);
         inorder.verify(c1).delete();
         inorder.verify(c2).delete();
         inorder.verifyNoMoreInteractions();



Mime
View raw message