Package org.apache.woden.wsdl20

Examples of org.apache.woden.wsdl20.Description


  /**
   * Test that the assertion passes when only one interface is defined.
   */
  public void testOneInterface() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
    try {
      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
View Full Code Here


  /**
   * Test that the assertion passes for a list of interfaces that contains no duplicate names.
   */
  public void testMultipleInterfaceNoDuplicateNames() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
    try {
      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
View Full Code Here

  /**
   * Test that the assertion fails for two interfaces that are defined with the same NCName object.
   */
  public void testDuplicateInterfaceNCNames() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
    try {
      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
View Full Code Here

  /**
   * Test that the assertion fails for two interfaces that are defined with the same name.
   */
  public void testDuplicateInterfaceNames() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
    try {
      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
View Full Code Here

        WSDLFactory factory = WSDLFactory.newInstance();
        WSDLReader reader = factory.newWSDLReader();
        ErrorHandler handler = new TestErrorHandler();
        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
        reader.getErrorReporter().setErrorHandler(handler);
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
        DescriptionElement desc = descComp.toElement();
       
        DocumentationElement doc = null;
        UnknownExtensionElement ee = null;
       
        //wsdl:description
View Full Code Here

  reader = null;
  }
 
  public void testReadValidWSDL20()
  {
    Description desc = null;
    try
    {
        URL wsdlURL = getClass().getClassLoader().getResource("org/apache/woden/primer-hotelReservationService.wsdl");
      desc = reader.readWSDL(wsdlURL.toString());
    }
View Full Code Here

    }
  }
 
  public void testReadWSDLSourceDoc()
  {
      Description desc = null;
      try
      {
        URL wsdlURL = getClass().getClassLoader().getResource("org/apache/woden/primer-hotelReservationService.wsdl");
        String wsdlURLStr = wsdlURL.toString();
        URI wsdlURI = URI.create(wsdlURLStr);
View Full Code Here

      assertNotNull("The description returned is null.", desc);
  }

  public void testReadWSDLSourceIS()
  {
      Description desc = null;
      try
      {
        URL wsdlURL = getClass().getClassLoader().getResource("org/apache/woden/primer-hotelReservationService.wsdl");
        String wsdlURLStr = wsdlURL.toString();
       
View Full Code Here

      }
      assertNotNull("The description returned is null.", desc);
  }
 
  public void testReadEmbeddedWSDLSource() {
      Description desc = null;
      //Load in a WSDL 2.0 file
      URL wsdlURL = getClass().getClassLoader().getResource("org/apache/woden/embeded.xml");

      //Good Tests.
      String[] goodFragids = new String[]{
View Full Code Here

   */
  public void testChameleon1B()
  {
  try
  {
    Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-1B/getBalance.wsdl");
    assertNotNull("Description is null.", desc);
    // TODO: determine the assertions that should fail for this test.
  }
  catch(Exception e)
  {
View Full Code Here

TOP

Related Classes of org.apache.woden.wsdl20.Description

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.