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
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
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
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
ProvidedInterface provided = new DefaultProvidedInterface("janse",
String.class);
required.get(0).setProvider(provided);
- provided.publish("hello", _scope);
+ _scope.publishInterface(provided, "hello");
X5 obj = new X5();
assertNull(obj.getValue());
"janse", String.class);
assertTrue(required.get(0).implementedBy(providedString));
required.get(0).setProvider(providedString);
- providedString.publish("hello", _scope);
+ _scope.publishInterface(providedString, "hello");
ProvidedInterface providedInt = new DefaultProvidedInterface("xxx",
Integer.class);
assertTrue(required.get(1).implementedBy(providedInt));
required.get(1).setProvider(providedInt);
- providedInt.publish(100, _scope);
+ _scope.publishInterface(providedInt, 100);
X5 obj = new X5();
assertNull(obj.getValue());
"janse", Boolean.class);
assertTrue(required.get(0).implementedBy(providedBoolean));
required.get(0).setProvider(providedBoolean);
- providedBoolean.publish(true, _scope);
+ _scope.publishInterface(providedBoolean, true);
ProvidedInterface providedString = new DefaultProvidedInterface(
"janse", String.class);
assertTrue(required.get(1).implementedBy(providedString));
required.get(1).setProvider(providedString);
- providedString.publish("hello", _scope);
+ _scope.publishInterface(providedString, "hello");
ProvidedInterface providedInt = new DefaultProvidedInterface("xxx",
Integer.class);
assertTrue(required.get(2).implementedBy(providedInt));
required.get(2).setProvider(providedInt);
- providedInt.publish(100, _scope);
+ _scope.publishInterface(providedInt, 100);
X9 obj = new X9();
assertNull(obj.getValue());
ProvidedInterface provided0 = new DefaultProvidedInterface("janse",
String.class);
required.get(0).setProvider(provided0);
- provided0.publish("hello", _scope);
+ _scope.publishInterface(provided0, "hello");
ProvidedInterface provided1 = new DefaultProvidedInterface("port",
Integer.class);
required.get(1).setProvider(provided1);
- provided1.publish(10, _scope);
+ _scope.publishInterface(provided1, 10);
X6 obj = new X6();
assertNull(obj.getHost());
ProvidedInterface provided = new DefaultProvidedInterface("janse",
String.class);
required.get(0).setProvider(provided);
- provided.publish("hello", _scope);
+ _scope.publishInterface(provided, "hello");
final X6 obj = new X6();
AssertionUtils.assertException(new AssertionUtils.ErroneousCode() {
ProvidedInterface provided0 = new DefaultProvidedInterface("janse",
String.class);
required.get(0).setProvider(provided0);
- provided0.publish("hello", _scope);
+ _scope.publishInterface(provided0, "hello");
X6 obj = new X6();
assertNull(obj.getHost());
ProvidedInterface provided0 = new DefaultProvidedInterface("janse",
String.class);
required.get(0).setProvider(provided0);
- provided0.publish("hello", _scope);
+ _scope.publishInterface(provided0, "hello");
X6 obj = new X6();
assertNull(obj.getHost());
ProvidedInterface provided0 = new DefaultProvidedInterface("janse",
String.class);
required.get(0).setProvider(provided0);
- provided0.publish("hello", _scope);
+ _scope.publishInterface(provided0, "hello");
X6 obj = new X6();
assertNull(obj.getHost());