FileDocCategorySizeDatePackage
AddressingModelConfiguratorProviderTest.javaAPI DocExample4470Tue May 29 16:57:36 BST 2007com.sun.xml.ws.addressing.policy

AddressingModelConfiguratorProviderTest

public class AddressingModelConfiguratorProviderTest extends TestCase
author
japod

Fields Summary
Constructors Summary
Methods Summary
public voidtestConfigureAddressingAssertionNotPresent()
Test of configure method, of class com.sun.xml.ws.policy.jaxws.addressing.AddressingModelConfiguratorProvider. policy assertion not present

        WSDLModel model = getWSDLModel("jaxws-spi/testModelConfigProviderAddrPolicyNotPresent.wsdl");
        PolicyMap policyMap = model.getExtension(WSDLPolicyMapWrapper.class).getPolicyMap();
        
        assertNull(model.getService(new QName("http://example.org","DictionaryService")).
                getFirstPort().getFeature(AddressingFeature.class));
    
public voidtestConfigureMEMBERAddressingAssertionPresent()
Test of configure method, of class com.sun.xml.ws.policy.jaxws.addressing.AddressingModelConfiguratorProvider. policy assertion present

        WSDLModel model = getWSDLModel("jaxws-spi/testModelConfigProviderAddrMEMBER.wsdl");
        PolicyMap policyMap = model.getExtension(WSDLPolicyMapWrapper.class).getPolicyMap();
        
        assertTrue(model.getService(new QName("http://example.org","DictionaryService")).
                getFirstPort().getFeature(MemberSubmissionAddressingFeature.class).isEnabled());
    
public voidtestConfigureW3CAddressingAssertionPresent()
Test of configure method, of class com.sun.xml.ws.policy.jaxws.addressing.AddressingModelConfiguratorProvider. policy assertion present

        WSDLModel model = getWSDLModel("jaxws-spi/testModelConfigProviderAddrW3C.wsdl");
        PolicyMap policyMap = model.getExtension(WSDLPolicyMapWrapper.class).getPolicyMap();
        
        assertTrue(model.getService(new QName("http://example.org","DictionaryService")).
                getFirstPort().getFeature(AddressingFeature.class).isEnabled());