* from the WSDL.
*/
public void testGetHttpAuthenticationScheme() {
//test "basic" parsed from WSDL
Endpoint endpoint = fEndpoints[0];
HTTPEndpointExtensions httpEndpointExts =
(HTTPEndpointExtensions) endpoint
.getComponentExtensionContext(
HTTPConstants.NS_URI_HTTP);
HTTPAuthenticationScheme actual = httpEndpointExts.getHttpAuthenticationScheme();
assertEquals("Unexpected value for http authentication scheme.",
HTTPAuthenticationScheme.BASIC,
actual);
//test "digest" parsed from WSDL
Endpoint endpoint2 = fEndpoints[1];
HTTPEndpointExtensions httpEndpointExts2 =
(HTTPEndpointExtensions) endpoint2
.getComponentExtensionContext(
HTTPConstants.NS_URI_HTTP);
HTTPAuthenticationScheme actual2 = httpEndpointExts2.getHttpAuthenticationScheme();
assertEquals("Unexpected value for http authentication scheme.",
HTTPAuthenticationScheme.DIGEST,
actual2);
//test default to null
Endpoint endpoint3 = fEndpoints[2];
HTTPEndpointExtensions httpEndpointExts3 =
(HTTPEndpointExtensions) endpoint3
.getComponentExtensionContext(
HTTPConstants.NS_URI_HTTP);
HTTPAuthenticationScheme actual3 = httpEndpointExts3.getHttpAuthenticationScheme();
assertNull("Http authentication scheme did not default to null.",