use of org.springframework.cloud.service.UriBasedServiceInfo in project spring-cloud-connectors by spring-cloud.
the class AbstractCloudFoundryConnectorTest method assertUriBasedServiceInfoFields.
protected static void assertUriBasedServiceInfoFields(ServiceInfo serviceInfo, String scheme, String host, int port, String username, String password, String path) {
assertThat(serviceInfo, instanceOf(UriBasedServiceInfo.class));
UriBasedServiceInfo info = (UriBasedServiceInfo) serviceInfo;
assertEquals(scheme, info.getScheme());
assertEquals(host, info.getHost());
assertEquals(port, info.getPort());
assertEquals(username, info.getUserName());
assertEquals(password, info.getPassword());
assertEquals(path, info.getPath());
}
Aggregations