예제 #1
0
  private StackContext createStackContext(String serviceName, boolean expectServiceRegistration) {
    StackContext context = createStrictMock(StackContext.class);

    if (expectServiceRegistration) {
      context.registerServiceCheck(serviceName);
    }
    replay(context);

    return context;
  }
예제 #2
0
 @Override
 public void finalizeModule() {
   finalizeChildModules(configurationModules.values());
   finalizeChildModules(componentModules.values());
   finalizeConfiguration();
   if (serviceInfo.getCommandScript() != null && !isDeleted()) {
     stackContext.registerServiceCheck(getId());
   }
 }