assertEquals(0, theEventService.getActiveListenDomains().size());
}
@Test
public void testInit_2() throws Exception {
final EventServiceConfigurationFactory theEventServiceConfigurationFactory = EventServiceConfigurationFactory.getInstance();
//remove the PropertyConfigurationLoaders, because there is a eventservice.properties in the classpath and that prevents the WebDescriptorConfigurationLoader from loading.
theEventServiceConfigurationFactory.removeConfigurationLoader(new PropertyConfigurationLoader());
myEventService = new DummyEventServiceImpl(new DummyServletConfig());
super.setUp(myEventService);
assertEquals(0, myEventService.getActiveListenDomains().size());
//Configuration of WebDescriptorConfigurationLoader (see DummyServletConfig). That configuration and ConfigurationLoader
//was initialized with the init-method of EventServiceImpl.
EventServiceConfiguration theConfiguration = theEventServiceConfigurationFactory.loadEventServiceConfiguration();
assertEquals(Integer.valueOf(40000), theConfiguration.getMaxWaitingTime());
assertEquals(Integer.valueOf(5000), theConfiguration.getMinWaitingTime());
assertEquals(Integer.valueOf(120000), theConfiguration.getTimeoutTime());
}