X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=trunk%2Fsystem%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FAbstractComponentTest.java;h=ebda473d1b46cabf8e1b90082c0b397f926344e6;hb=1e6feac46f0be086aa8734e20064aec24425ff11;hp=e65433bef09a70cfb8c93c34b52b05873fc25e6c;hpb=f173c759786855c3d55110e37edac4a5e108a64a;p=utils diff --git a/trunk/system/general/src/test/java/org/wamblee/system/core/AbstractComponentTest.java b/trunk/system/general/src/test/java/org/wamblee/system/core/AbstractComponentTest.java index e65433be..ebda473d 100644 --- a/trunk/system/general/src/test/java/org/wamblee/system/core/AbstractComponentTest.java +++ b/trunk/system/general/src/test/java/org/wamblee/system/core/AbstractComponentTest.java @@ -19,23 +19,25 @@ import junit.framework.TestCase; public class AbstractComponentTest extends TestCase { - public void testNotAllComponentsStarted() { + public void testNotAllInterfacesStarted() { try { Component component = new AbstractComponent("xx", new ProvidedInterface[] { new DefaultProvidedInterface( "xxx", String.class) }, new RequiredInterface[0]) { @Override - protected void doStart() { + protected Object doStart(Scope aScope) { // Empty, not starting service. + return null; } @Override - protected void doStop() { + protected void doStop(Object aRuntime) { // Empty. } }; - component.start(); + component.start(new DefaultScope(component.getProvidedInterfaces())); } catch (SystemAssemblyException e) { + //e.printStackTrace(); return; } fail();