X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcore%2FAbstractComponentTest.java;h=ebda473d1b46cabf8e1b90082c0b397f926344e6;hb=dea786c9d49228a37cb5fd5b4113b86d9f6cddbf;hp=e65433bef09a70cfb8c93c34b52b05873fc25e6c;hpb=e73828b054b0734ddce0ff9194fca75ed3c98b7a;p=utils diff --git a/system/general/src/test/java/org/wamblee/system/core/AbstractComponentTest.java b/system/general/src/test/java/org/wamblee/system/core/AbstractComponentTest.java index e65433be..ebda473d 100644 --- a/system/general/src/test/java/org/wamblee/system/core/AbstractComponentTest.java +++ b/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();