starts a new , separate spring context with a given configuration . the started services have separate http port and are configured to use an in-memory test registry server . if you start multiple services this way , they will act as a separate applications , but will be registered in a single registry service . concode_field_sep int REGISTRATION_TIMEOUT concode_elem_sep InMemoryDiscoveryServer server concode_elem_sep List<ConfigurableApplicationContext> myContexts concode_elem_sep int firstFreePort concode_elem_sep int FREE_PORTS_START concode_elem_sep List<ApplicationContext> observedContexts concode_elem_sep int serviceDiscoveryPort concode_field_sep ConfigurableApplicationContext createNewContext concode_elem_sep void addObservedContext concode_elem_sep int getServiceDiscoveryPort concode_elem_sep void waitForServicesRegistration concode_elem_sep void waitForServicesRegistration concode_elem_sep ConfigurableApplicationContext startNewApplication concode_elem_sep void waitForRegistrationCondition concode_elem_sep void waitForServiceRegistration concode_elem_sep boolean hasService concode_elem_sep void close concode_elem_sep int getNumberOfRatelServicesInContext
ConfigurableApplicationContext function ( Class arg0 ) { ConfigurableApplicationContext loc0 = startNewApplication ( firstFreePort , arg0 ) ; firstFreePort ++ ; return loc0 ; }