Huge refactoring.
[utils] / system / general / src / test / java / org / wamblee / system / core / AbstractComponentTest.java
index e65433bef09a70cfb8c93c34b52b05873fc25e6c..ebda473d1b46cabf8e1b90082c0b397f926344e6 100644 (file)
@@ -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();