use of org.springframework.cloud.commons.util.InetUtils in project coffeenet-starter by coffeenet.
the class CoffeeNetDiscoveryInstancePropertiesTest method defaultValues.
@Test
public void defaultValues() {
InetUtils inetUtils = new InetUtils(new InetUtilsProperties());
ServerProperties serverProperties = new ServerProperties();
CoffeeNetConfigurationProperties coffeeNetConfigurationProperties = new CoffeeNetConfigurationProperties();
CoffeeNetDiscoveryInstanceProperties sut = new CoffeeNetDiscoveryInstanceProperties(inetUtils, serverProperties, coffeeNetConfigurationProperties);
assertThat(sut.getNonSecurePort(), is(8080));
assertThat(sut.getHostname(), is("localhost"));
}
Aggregations