(no commit message)
[utils] / system / general / src / test / java / org / wamblee / system / adapters / ConstructorConfigurationTest.java
index b7b1497c1639a1cadb146ceceeec50678d06bb06..0cec6fba5299f8ca833d1972dae978c674af0aef 100644 (file)
@@ -37,7 +37,7 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
                required.get(0).setProvider(provided);
 
-               provided.publish("hello", _scope);
+               _scope.publishInterface(provided, "hello");
                config.create(_scope);
 
                AssertionUtils.assertEquals(new String[] { "x1(hello)" }, AdapterTestCase.EVENT_TRACKER
@@ -65,7 +65,7 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
                assertEquals(1, required.size());
                required.get(0).setProvider(provided);
 
-               provided.publish("hello", _scope);
+               _scope.publishInterface(provided, "hello");
                config.create(_scope);
 
                AssertionUtils.assertEquals(new String[] { "x2(hello)" }, AdapterTestCase.EVENT_TRACKER
@@ -94,7 +94,7 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
                assertEquals(1, required.size());
                required.get(0).setProvider(provided);
 
-               provided.publish("hello", _scope);
+               _scope.publishInterface(provided, "hello");
                config.create(_scope);
 
                AssertionUtils.assertEquals(new String[] { "x1(hello)" }, AdapterTestCase.EVENT_TRACKER
@@ -132,7 +132,7 @@ public class ConstructorConfigurationTest extends AdapterTestCase {
 
                required.get(0).setProvider(provided);
 
-               provided.publish("hello", _scope);
+               _scope.publishInterface(provided, "hello");
                config.create(_scope);
 
                AssertionUtils.assertEquals(new String[] { "x3(hello)" }, AdapterTestCase.EVENT_TRACKER