X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2FEnvironment.java;h=901c67d75bf60c0c3ddb0c0b10bc8f31142d786a;hb=e7aa00a2eebaa1f8f9d7d1c407a5e8a7cbe899f7;hp=7209c273f17e705ce68fe9e5492bbb3294978c90;hpb=4c7e63f11337abfaa6ea13eab4b6ca11891f4977;p=utils diff --git a/system/general/src/test/java/org/wamblee/system/Environment.java b/system/general/src/test/java/org/wamblee/system/Environment.java index 7209c273..901c67d7 100644 --- a/system/general/src/test/java/org/wamblee/system/Environment.java +++ b/system/general/src/test/java/org/wamblee/system/Environment.java @@ -10,14 +10,19 @@ public class Environment extends AbstractSubSystem { new DefaultServiceDescriptor(DataSource.class), new DefaultServiceDescriptor(Integer.class) }; - + public Environment() { super("environment", PROVIDED, new ServiceDescriptor[0]); } @Override protected void doStart(String aContext, ServiceRegistry aRegistry, Service[] aRequiredServices) { - addService(aContext, aRegistry.register(PROVIDED[0], new Integer(1))); - addService(aContext, aRegistry.register(PROVIDED[1], new Integer(2))); + addService(aContext, aRegistry, PROVIDED[0], new Integer(1)); + addService(aContext, aRegistry, PROVIDED[1], new Integer(2)); + } + + @Override + protected void doStop(String aContext) { + // Empty. } }