com.ibm.wsdl.tck
Class WSDLReaderTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.ibm.wsdl.tck.WSDLReaderTest
All Implemented Interfaces:
junit.framework.Test

public class WSDLReaderTest
extends junit.framework.TestCase

This class implements a series of tests used to check javax.wsdl.xml.WSDLReader implementations for compliance with the JWSDL specification.

Author:
Matthew J. Duftler (duftler@us.ibm.com)

Constructor Summary
WSDLReaderTest()
           
 
Method Summary
protected  void setUp()
           
 void testReadWSDL()
          Test each variation of WSDLReader.readWSDL(...) to ensure that definitions can be retrieved and parsed.
 void testReadWSDLwithSchemas()
          Added for the JWSDL 1.1 Maintenance Release.
 void testSetGetExtensionRegistry()
          Test WSDLReader.setExtensionRegistry(...) and WSDLReader.getExtensionRegistry().
 void testSetGetFeature()
          Test WSDLReader.setFeature(...) and WSDLReader.getFeature(...).
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WSDLReaderTest

public WSDLReaderTest()
Method Detail

setUp

protected void setUp()
              throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

testSetGetExtensionRegistry

public void testSetGetExtensionRegistry()
Test WSDLReader.setExtensionRegistry(...) and WSDLReader.getExtensionRegistry().


testSetGetFeature

public void testSetGetFeature()
Test WSDLReader.setFeature(...) and WSDLReader.getFeature(...). Test for recognition of both specification-mandated features.


testReadWSDL

public void testReadWSDL()
                  throws javax.wsdl.WSDLException,
                         java.io.IOException,
                         javax.xml.parsers.ParserConfigurationException,
                         org.xml.sax.SAXException
Test each variation of WSDLReader.readWSDL(...) to ensure that definitions can be retrieved and parsed. Test navigating the definition by starting with the port and walking all the way back to the message parts. Test retrieving a document that contains an <import>.

Throws:
javax.wsdl.WSDLException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException

testReadWSDLwithSchemas

public void testReadWSDLwithSchemas()
                             throws javax.wsdl.WSDLException,
                                    java.io.IOException,
                                    javax.xml.parsers.ParserConfigurationException,
                                    org.xml.sax.SAXException
Added for the JWSDL 1.1 Maintenance Release. Test that WSDLReader will correctly parse wsdl that has xml schema <import>, <include> and <redefine> elements. The schema fragments should be stored as DOM elements within Schema objects linked together with SchemaReference objects to mirror the nested schemas. Test navigating the definition by starting with the top level schema and walking all the way down the imported, included and redefined schemas.

Throws:
javax.wsdl.WSDLException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException


Copyright © 2003 IBM. All Rights Reserved.