|
|
@ -29,7 +29,6 @@ import static org.junit.Assert.assertFalse;
|
|
|
|
* Externalized configuration for server properties
|
|
|
|
* Externalized configuration for server properties
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Dave Syer
|
|
|
|
* @author Dave Syer
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class ServerPropertiesTests {
|
|
|
|
public class ServerPropertiesTests {
|
|
|
|
|
|
|
|
|
|
|
@ -41,7 +40,7 @@ public class ServerPropertiesTests {
|
|
|
|
binder.bind(new MutablePropertyValues(Collections.singletonMap("server.address",
|
|
|
|
binder.bind(new MutablePropertyValues(Collections.singletonMap("server.address",
|
|
|
|
"127.0.0.1")));
|
|
|
|
"127.0.0.1")));
|
|
|
|
assertFalse(binder.getBindingResult().hasErrors());
|
|
|
|
assertFalse(binder.getBindingResult().hasErrors());
|
|
|
|
assertEquals(InetAddress.getLocalHost(), this.properties.getAddress());
|
|
|
|
assertEquals(InetAddress.getByName("127.0.0.1"), this.properties.getAddress());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|