Scope runtime = system.start();
ProvidedInterface[] services = runtime.getProvidedInterfaces();
assertEquals(1, services.length);
- Object service = runtime.retrieveInterfaceImplementation(services[0], Object.class);
+ Object service = runtime.getInterfaceImplementation(services[0], Object.class);
assertTrue(service instanceof HelloService);
assertEquals("Hello world!", ((HelloService) service).say());
system.stop(runtime);
Scope scope = system.start();
ProvidedInterface[] services = scope.getProvidedInterfaces();
- assertEquals("Property Value", scope.retrieveInterfaceImplementation(services[0], HelloService.class).say());
+ assertEquals("Property Value", scope.getInterfaceImplementation(services[0], HelloService.class).say());
}
public void testWithMissingRequirement() {
Scope runtime = system.start(scope);
ProvidedInterface started = runtime.getProvidedInterfaces()[0];
- Object impl = runtime.retrieveInterfaceImplementation(started, BlaService.class);
+ Object impl = runtime.getInterfaceImplementation(started, BlaService.class);
assertNotNull(impl);
assertTrue(impl instanceof BlaService);
assertEquals("ladida", ((BlaService)impl).execute());