Package org.apache.woden.wsdl20.xml

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.toComponent()


      BindingFaultElement bindingFault2 = binding.addBindingFaultElement();
    bindingFault2.setRef(name2QN);
      BindingFaultElement bindingFault3 = binding.addBindingFaultElement();
    bindingFault3.setRef(name3QN);
   
      descEl.toComponent().getBindings(); //init Binding's ref to its Description
     
    BindingFault[] bindingFaults = new BindingFault[]{(BindingFaultImpl)bindingFault, (BindingFaultImpl)bindingFault2, (BindingFaultImpl)bindingFault3};
   
    if(!val.testAssertionBindingFault1050(bindingFaults, reporter))
    {
View Full Code Here


      BindingFaultElement bindingFault2 = binding.addBindingFaultElement();
      bindingFault2.setRef(name2QN);
      BindingFaultElement bindingFault3 = binding.addBindingFaultElement();
      bindingFault3.setRef(name1QN);
     
      descEl.toComponent().getBindings(); //init Binding's ref to its Description
     
    BindingFault[] bindingFaults = new BindingFault[]{(BindingFaultImpl)bindingFault, (BindingFaultImpl)bindingFault2, (BindingFaultImpl)bindingFault3};
   
    if(val.testAssertionBindingFault1050(bindingFaults, reporter))
    {
View Full Code Here

  try
  {
      DescriptionElement descEl = factory.newDescription();
      ServiceElement service = descEl.addServiceElement();
    EndpointElement endpoint = service.addEndpointElement();
    if(!val.testAssertionEndpoint1062(descEl.toComponent().getServices()[0].getEndpoints()[0], reporter))
    {
      fail("The testAssertionEndpoint1062 method returned false for an endpoint with no binding defined.");
    }
  }
  catch(WSDLException e)
View Full Code Here

      binding.setName(name2);
      ServiceElement service = descEl.addServiceElement();
      service.setInterfaceName(name1QN);
      EndpointElement endpoint = service.addEndpointElement();
      endpoint.setBindingName(name2QN);
    if(!val.testAssertionEndpoint1062(descEl.toComponent().getServices()[0].getEndpoints()[0], reporter))
    {
      fail("The testAssertionEndpoint1062 method returned false for an endpoint that specifies a binding with no specified interface.");
    }
  }
  catch(WSDLException e)
View Full Code Here

      binding.setInterfaceName(name1QN);
      ServiceElement service = descEl.addServiceElement();
      service.setInterfaceName(name1QN);
      EndpointElement endpoint = service.addEndpointElement();
      endpoint.setBindingName(name2QN);
    if(!val.testAssertionEndpoint1062(descEl.toComponent().getServices()[0].getEndpoints()[0], reporter))
    {
      fail("The testAssertionEndpoint1062 method returned false for an endpoint that specifies a binding with the same interface specified as the parent service specifies.");
    }
  }
  catch(WSDLException e)
View Full Code Here

      binding.setInterfaceName(name2QN);
      ServiceElement service = descEl.addServiceElement();
      service.setInterfaceName(name1QN);
      EndpointElement endpoint = service.addEndpointElement();
      endpoint.setBindingName(name3QN);
    if(val.testAssertionEndpoint1062(descEl.toComponent().getServices()[0].getEndpoints()[0], reporter))
    {
      fail("The testAssertionEndpoint1062 method returned true for an endpoint that specifies a binding with a different interface specified than the parent service specifies.");
    }
  }
  catch(WSDLException e)
View Full Code Here

            fail("Can't instantiate the WSDLFactory object.");
        }

        DescriptionElement desc = factory.newDescription();
        desc.addServiceElement();
      fEmptyService = desc.toComponent().getServices()[0];
    }

    /*
     * @see TestCase#tearDown()
     */
 
View Full Code Here

      ServiceElement fServiceElement = fDescElement.addServiceElement();
      fServiceElement.setName(new NCName("service1"));
      fServiceElement.setInterfaceName(new QName("interface1"));
     
      // "create" the component model to complete the woden object hierachy references
      Description fDesc = fDescElement.toComponent();
      fDesc.getServices(); // necessary to set the reference to Description in Service

      /* Test assertions:
       * (Object equivalence is fine here - we check both refer to same Object)
       */
 
View Full Code Here

      EndpointElement fEndpointElement = fServiceElement.addEndpointElement();
      fEndpointElement.setName(fEndpointNCname);
        fEndpointElement.setBindingName(fBindingQName);
     
      // Component model creation
        Description fDesc = fDescElement.toComponent();
        Endpoint fDerivedEndpoint = fDesc.getService(fServiceQName).getEndpoint(fEndpointNCname);
       
      assertEquals(fDerivedEndpoint.getBinding().getName(), fBindingQName); // just compare QNames
  }
   
View Full Code Here

    BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
    bopElement.setRef(new QName("operation1"));
    fBindingMessageRefElement = bopElement.addBindingMessageReferenceElement();
    fBindingMessageRefElement.setMessageLabel(new NCName("MessageRef1MessageLabel"));

    Description descComp = descriptionElement.toComponent();
    descComp.getBindings(); // this triggers setting the link to description in the binding
   
    fBindingMessageRef = (BindingMessageReference) fBindingMessageRefElement;
    InterfaceMessageReference retrievedMessage = fBindingMessageRef.getInterfaceMessageReference();
    assertEquals("The retrieved InterfaceMessageReference is not that which was set",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.