@Test public void testGetLocatorClientTimeoutInSeconds() { int expectedLocatorClientTimeoutInSeconds = 10; expect( iniFile.getIntValue( LocatorConfigurationImpl.LOCATOR_CLIENT_TIMEOUT_KEY, LocatorConfigurationImpl.LOCATOR_CLIENT_TIMEOUT_DEFAULT)) .andReturn(expectedLocatorClientTimeoutInSeconds); control.replay(); int locatorClientTimeoutInSeconds = locatorConfigurationImpl.getLocatorClientTimeoutInSeconds(); control.verify(); assertThat(locatorClientTimeoutInSeconds).isEqualTo(expectedLocatorClientTimeoutInSeconds); }
@Test public void testGetLocatorCacheTimeout() { int expectedLocatorCacheTimeout = 10; expect( iniFile.getIntValue( LocatorConfigurationImpl.LOCATOR_CACHE_TIMEOUT_KEY, LocatorConfigurationImpl.LOCATOR_CACHE_TIMEOUT_DEFAULT)) .andReturn(expectedLocatorCacheTimeout); control.replay(); int locatorCacheTimeout = locatorConfigurationImpl.getLocatorCacheTimeout(); control.verify(); assertThat(locatorCacheTimeout).isEqualTo(expectedLocatorCacheTimeout); }