private StackContext createStackContext(String serviceName, boolean expectServiceRegistration) { StackContext context = createStrictMock(StackContext.class); if (expectServiceRegistration) { context.registerServiceCheck(serviceName); } replay(context); return context; }
@Override public void finalizeModule() { finalizeChildModules(configurationModules.values()); finalizeChildModules(componentModules.values()); finalizeConfiguration(); if (serviceInfo.getCommandScript() != null && !isDeleted()) { stackContext.registerServiceCheck(getId()); } }