Examples of toComponent()


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

      InterfaceOperationElement oper = interfac.addInterfaceOperationElement();
     
      InterfaceFaultReferenceElement faultReference = oper.addInterfaceFaultReferenceElement();
      faultReference.setMessageLabel(MessageLabel.IN);
     
      descEl.toComponent().getInterfaces(); //init Interface's ref to its Description
     
    if(!val.testAssertionInterfaceFaultReference1039(new InterfaceFaultReference[]{(InterfaceFaultReferenceImpl)faultReference}, reporter))
    {
      fail("The testAssertionInterfaceFaultReference1039 method returned false for ano interface fault reference that has a null fault.");
    }
View Full Code Here

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

      faultReference2.setRef(name1QN);
      faultReference2.setMessageLabel(MessageLabel.IN);
      InterfaceFaultReferenceElement faultReference3 = oper.addInterfaceFaultReferenceElement();
      faultReference3.setMessageLabel(MessageLabel.OUT);

      descEl.toComponent().getInterfaces(); //init Interface's ref to its Description
     
    if(val.testAssertionInterfaceFaultReference1039(new InterfaceFaultReference[]{(InterfaceFaultReferenceImpl)faultReference, (InterfaceFaultReferenceImpl)faultReference3, (InterfaceFaultReferenceImpl)faultReference2}, reporter))
    {
      fail("The testAssertionInterfaceFaultReference1039 method returned true for two interface fault references that have the same fault and message label and a third interface fault reference that has a null fault and is defined second.");
    }
View Full Code Here

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

  try
  {
      DescriptionElement desc = factory.newDescription();
      BindingElement bindingEl = desc.addBindingElement();
      bindingEl.setName(name1);
    if(!val.testAssertionBinding1044(desc.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1044 method returned false for a binding with no interface, operation, or faults specified.");
    }
  }
  catch(WSDLException e)
View Full Code Here

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

      InterfaceElement interfac = descEl.addInterfaceElement();
      interfac.setName(name1);
    BindingElement binding = descEl.addBindingElement();
      binding.setName(name2);
      binding.setInterfaceName(name1QN);
    if(!val.testAssertionBinding1044(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1044 method returned false for a binding with an interface and no operation or faults specified.");
    }
  }
  catch(WSDLException e)
View Full Code Here

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

      interfac.setName(name1);
      BindingElement binding = descEl.addBindingElement();
      binding.setName(name2);
      binding.setInterfaceName(name1QN);
      BindingOperationElement bindingOperation = binding.addBindingOperationElement();
    if(!val.testAssertionBinding1044(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1044 method returned false for a binding with an interface and an operation specified.");
    }
  }
  catch(WSDLException e)
View Full Code Here

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

      interfac.setName(name1);
      BindingElement binding = descEl.addBindingElement();
      binding.setName(name2);
      binding.setInterfaceName(name1QN);
      BindingFaultElement bindingFault = binding.addBindingFaultElement();
    if(!val.testAssertionBinding1044(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1044 method returned false for a binding with an interface and a fault specified.");
    }
  }
  catch(WSDLException e)
View Full Code Here

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

      BindingElement binding = descEl.addBindingElement();
      binding.setName(name2);
      binding.setInterfaceName(name1QN);
      BindingFaultElement bindingFault = binding.addBindingFaultElement();
      BindingOperationElement bindingOperation = binding.addBindingOperationElement();
    if(!val.testAssertionBinding1044(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1044 method returned false for a binding with an interface and an operation and a fault specified.");
    }
  }
  catch(WSDLException e)
View Full Code Here

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

    BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
    bopElement.setRef(new QName("operation1"));
    fFaultElement = bindingElement.addBindingFaultElement();
    fFaultElement.setRef(new QName("fault1"));
   
    Description descComp = descriptionElement.toComponent();
    descComp.getBindings(); // this triggers setting the link to description in the binding

    BindingFault bf = (BindingFault)fFaultElement;
 
    InterfaceFault retrievedFault = bf.getInterfaceFault();
View Full Code Here

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

    bopElement.setRef(new QName("operation1"));
    fFaultRefElement = bopElement.addBindingFaultReferenceElement();
    fFaultRefElement.setMessageLabel(new NCName("Fault1MessageLabel"));
    fFaultRefElement.setRef(new QName("Fault1Ref"));

    Description descComp = descriptionElement.toComponent();
    descComp.getBindings(); // this triggers setting the link to description in the binding
   
    fFaultRef = (BindingFaultReference) fFaultRefElement;
    InterfaceFaultReference retrievedFault = fFaultRef.getInterfaceFaultReference();
    assertEquals("The retrieved InterfaceFaultReference is not that which was set",
View Full Code Here

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

   * Test that the assertion passes for an interface that
   * extends no other interfaces.
   */
  public void testNoInterfaceExtension() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
    descEl.setTargetNamespace(URI.create("http://testnamespace"));
   
    InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name"));
   
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.