FileDocCategorySizeDatePackage
PolicyExtensionHandlerTest.javaAPI DocExample4348Tue May 29 16:59:10 BST 2007com.sun.tools.ws.policy.jaxws

PolicyExtensionHandlerTest

public class PolicyExtensionHandlerTest extends TestCase
author
Jakub Podlesak (jakub.podlesak at sun.com)

Fields Summary
Constructors Summary
public PolicyExtensionHandlerTest(String testName)

        super(testName);
    
Methods Summary
public voidtestByRunningFakeWsImport()

        WsimportOptions importOptions = new WsimportOptions();

        URL resource = Thread.currentThread().getContextClassLoader().getResource("testPolicyTWSDLExtension.wsdl");
        importOptions.addWSDL(new File(resource.getFile()));
        final Listener listener = new Listener();
        // another fake impl
        ErrorReceiverFilter receiver = new ErrorReceiverFilter(listener) {
            public void info(SAXParseException exception) {
            }
            
            public void warning(SAXParseException exception) {
            }
            
            @Override
            public void pollAbort() throws AbortException {
            }
        };
        
        WSDLModeler wsdlModeler = new WSDLModeler(importOptions, receiver);
        Model model = wsdlModeler.buildModel();
        assertNotNull(model);