@Test public void shouldIncrementEmulatorPortsByTwo() throws Exception { DeviceStore deviceStore = new DeviceStore(EMULATOR_PORT, anDeviceManager()); Assert.assertEquals(5560, deviceStore.nextEmulatorPort().intValue()); Assert.assertEquals(5562, deviceStore.nextEmulatorPort().intValue()); Assert.assertEquals(5564, deviceStore.nextEmulatorPort().intValue()); }
public Integer nextEmulatorPort() { return androidEmulatorPortFinder.next(); }
DeviceStore { public Integer nextEmulatorPort() { return androidEmulatorPortFinder.next(); } }
DeviceStore { public Integer nextEmulatorPort() { return androidEmulatorPortFinder.next(); } DeviceStore(Integer emulatorPort, DeviceManager deviceManager);  DeviceStore(EmulatorPortFinder androidEmulatorPortFinder,
                     DeviceManager deviceManager); }
DeviceStore { public Integer nextEmulatorPort() { return androidEmulatorPortFinder.next(); } DeviceStore(Integer emulatorPort, DeviceManager deviceManager);  DeviceStore(EmulatorPortFinder androidEmulatorPortFinder,
                     DeviceManager deviceManager); Integer nextEmulatorPort(); void release(AndroidDevice device, AndroidApp aut); synchronized void addDevice(AndroidDevice androidDevice); synchronized void updateDevice(AndroidDevice device); void addEmulators(List<AndroidEmulator> emulators); synchronized AndroidDevice findAndroidDevice(SelendroidCapabilities caps); List<AndroidDevice> getDevices(); void removeAndroidDevice(AndroidDevice device); void setClearData(boolean clearData); void setKeepEmulator(boolean keepEmulator); }
DeviceStore { public Integer nextEmulatorPort() { return androidEmulatorPortFinder.next(); } DeviceStore(Integer emulatorPort, DeviceManager deviceManager);  DeviceStore(EmulatorPortFinder androidEmulatorPortFinder,
                     DeviceManager deviceManager); Integer nextEmulatorPort(); void release(AndroidDevice device, AndroidApp aut); synchronized void addDevice(AndroidDevice androidDevice); synchronized void updateDevice(AndroidDevice device); void addEmulators(List<AndroidEmulator> emulators); synchronized AndroidDevice findAndroidDevice(SelendroidCapabilities caps); List<AndroidDevice> getDevices(); void removeAndroidDevice(AndroidDevice device); void setClearData(boolean clearData); void setKeepEmulator(boolean keepEmulator);  }