@Test
public void testEndpoint() throws Exception
{
String url = "axis:http://www.xmethods.net/wsdl/query.wsdl?method=getSomething¶m1=1¶m2=2";
EndpointURI endpointUri = new MuleEndpointURI(url, muleContext);
endpointUri.initialise();
assertEquals("axis", endpointUri.getSchemeMetaInfo());
// it's up to the client to actually strip off the method name if
// necessary
assertEquals("http://www.xmethods.net/wsdl/query.wsdl?method=getSomething¶m1=1¶m2=2",
endpointUri.getAddress());
assertEquals("getSomething", endpointUri.getParams().getProperty(MuleProperties.MULE_METHOD_PROPERTY));
assertEquals(3, endpointUri.getParams().size());
url = "axis:http://www.xmethods.net/wsdl/query.wsdl?method=getSomething¶m1=1¶m2=2";
endpointUri = new MuleEndpointURI(url, muleContext);
endpointUri.initialise();
assertEquals("axis", endpointUri.getSchemeMetaInfo());
assertEquals("http://www.xmethods.net/wsdl/query.wsdl?method=getSomething¶m1=1¶m2=2",
endpointUri.getAddress());
assertEquals("getSomething", endpointUri.getParams().getProperty(MuleProperties.MULE_METHOD_PROPERTY));
assertEquals(3, endpointUri.getParams().size());
}