X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fspring%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fspring%2FSpringComponentTest.java;fp=system%2Fspring%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fspring%2FSpringComponentTest.java;h=67ed048df8f19dbaed681191c855686d785486ac;hb=2d1fd76ec884b5fc7be4078020fdf14d17166e8a;hp=10e2ca8eb8a277b3319c9b712b48b53f3ac9a2d9;hpb=ad6e06e3c1ba0c4ae0dea100596b1c5503bfe1c6;p=utils diff --git a/system/spring/src/test/java/org/wamblee/system/spring/SpringComponentTest.java b/system/spring/src/test/java/org/wamblee/system/spring/SpringComponentTest.java index 10e2ca8e..67ed048d 100644 --- a/system/spring/src/test/java/org/wamblee/system/spring/SpringComponentTest.java +++ b/system/spring/src/test/java/org/wamblee/system/spring/SpringComponentTest.java @@ -158,7 +158,7 @@ public class SpringComponentTest extends TestCase { HelloService.class); Scope scope = new DefaultScope(new ProvidedInterface[] { helloService }); scope.publishInterface(helloService, helloObject); - system.getRequiredInterfaces()[0].setProvider(helloService); + system.getRequiredInterfaces().get(0).setProvider(helloService); Scope runtime = system.start(scope); system.stop(runtime); @@ -181,7 +181,7 @@ public class SpringComponentTest extends TestCase { HelloService.class); Scope scope = new DefaultScope(new ProvidedInterface[] { helloService }); scope.publishInterface(helloService, helloObject); - system.getRequiredInterfaces()[0].setProvider(helloService); + system.getRequiredInterfaces().get(0).setProvider(helloService); Scope runtime = system.start(scope); ProvidedInterface started = runtime.getProvidedInterfaces()[0]; @@ -222,7 +222,7 @@ public class SpringComponentTest extends TestCase { assertSame(service, service2); Object floatsvc = _externalScope.getInterfaceImplementation(system - .getProvidedInterfaces()[1], Object.class); + .getProvidedInterfaces().get(1), Object.class); assertTrue(floatsvc instanceof Float); assertTrue((((Float) floatsvc).floatValue() - 100.345f) < 0.00001); @@ -251,8 +251,8 @@ public class SpringComponentTest extends TestCase { Scope scope = new DefaultScope(new ProvidedInterface[] { helloService }); scope.publishInterface(helloService, helloObject); scope.publishInterface(floatService, 100.234f); - system.getRequiredInterfaces()[0].setProvider(helloService); - system.getRequiredInterfaces()[1].setProvider(floatService); + system.getRequiredInterfaces().get(0).setProvider(helloService); + system.getRequiredInterfaces().get(1).setProvider(floatService); Scope runtime = system.start(scope); system.stop(runtime);