/** * Test method for {@link * org.hbird.business.groundstation.configuration.GroundStationDriverConfiguration#setDeviceHost(java.lang.String)} * . */ @Test public void testSetDeviceHost() { assertEquals(GroundStationDriverConfiguration.DEFAULT_DEVICE_HOST, config.getDeviceHost()); config.setDeviceHost("hbird.de"); assertEquals("hbird.de", config.getDeviceHost()); config.setDeviceHost("hbird.org"); assertEquals("hbird.org", config.getDeviceHost()); }
/** * Test method for {@link * org.hbird.business.groundstation.configuration.GroundStationDriverConfiguration#getAddress()}. */ @Test public void testGetAddress() { assertEquals(config.getDeviceHost() + ":" + config.getDevicePort(), config.getAddress()); config.setDeviceHost("127.0.0.1"); config.setDevicePort(9450); assertEquals(config.getDeviceHost() + ":" + config.getDevicePort(), config.getAddress()); }