FileDocCategorySizeDatePackage
JCapsPolicyValidatorTest.javaAPI DocExample3778Tue May 29 16:57:38 BST 2007com.sun.xml.ws.policy.jcaps

JCapsPolicyValidatorTest

public class JCapsPolicyValidatorTest extends TestCase
author
Marek Potociar (marek.potociar at sun.com)

Fields Summary
Constructors Summary
public JCapsPolicyValidatorTest(String testName)

        super(testName);
    
Methods Summary
private voidparseFile(java.net.URL cfgFileUrl, boolean isClient)

        final SDDocumentSource doc = SDDocumentSource.create(cfgFileUrl);
        final XMLEntityResolver.Parser parser =  new XMLEntityResolver.Parser(doc);
        WSDLModel.WSDLParser.parse(
                parser,
                new PolicyConfigResolver(),
                isClient,
                new WSDLParserExtension[] { new PolicyWSDLParserExtension(false) }
        );        
    
protected voidsetUp()

    
protected voidtearDown()

    
public voidtestAssertionValidation()

        URL cfgFileUrl = PolicyUtils.ConfigFile.loadFromClasspath("policy/jcaps/test.wsdl");
        assertNotNull("Unable to locate test WSDL", cfgFileUrl);        
        
        parseFile(cfgFileUrl, false);
        parseFile(cfgFileUrl, true);