(no commit message)
[utils] / system / spring / src / test / java / org / wamblee / system / spring / SpringComponentTest.java
index 0914c9aa3d5e065c138ebb30387fe5f6ba377221..c63916f5d68946a6c3d0baa5a004d11b8d3322b8 100644 (file)
@@ -65,7 +65,7 @@ public class SpringComponentTest extends TestCase {
                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);
@@ -84,7 +84,7 @@ public class SpringComponentTest extends TestCase {
 
                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() {
@@ -141,7 +141,7 @@ public class SpringComponentTest extends TestCase {
                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());