assertEquals(0, endpointUri.getParams().size());
}
public void testHostPortOnlyUrlAndUserInfo() throws Exception
{
EndpointURI endpointUri = new MuleEndpointURI("http://admin:pwd@localhost:8080", muleContext);
endpointUri.initialise();
assertEquals("http", endpointUri.getScheme());
assertEquals("http://localhost:8080", endpointUri.getAddress());
assertNull(endpointUri.getEndpointName());
assertEquals(8080, endpointUri.getPort());
assertEquals("localhost", endpointUri.getHost());
assertEquals("http://localhost:8080", endpointUri.getAddress());
assertEquals(0, endpointUri.getParams().size());
assertEquals("admin:pwd", endpointUri.getUserInfo());
assertEquals("admin", endpointUri.getUser());
assertEquals("pwd", endpointUri.getPassword());
assertEquals("http://admin:****@localhost:8080", endpointUri.toString());
}