Examples of toComponent()


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

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

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

  try
  {
      DescriptionElement descEl = factory.newDescription();
    BindingElement binding = descEl.addBindingElement();
    binding.setType(new URI("http://www.sample.org"));
    if(!val.testAssertionBinding1048(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1048 method returned false for a binding with an absolute type.");
    }
  }
  catch(URISyntaxException e)
View Full Code Here

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

  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
    BindingElement binding = descEl.addBindingElement();
    binding.setType(new URI("sample.org"));
    if(val.testAssertionBinding1048(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1048 method returned true for a binding with a relative type.");
    }
  }
  catch(URISyntaxException e)
View Full Code Here

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

  // caught be schema validation.
  try
  {
      DescriptionElement descEl = factory.newDescription();
    BindingElement binding = descEl.addBindingElement();
    if(!val.testAssertionBinding1048(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1048 method returned false for a binding with a null type.");
    }
  }
  catch(WSDLException e)
View Full Code Here

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

  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
    BindingElement binding = descEl.addBindingElement();
    binding.setName(name1);
    if(!val.testAssertionBinding1049(descEl.toComponent().getBindings(), reporter))
    {
      fail("The testAssertionBinding1049 method returned false for an list of bindings that contains only one binding.");
    }
  }
  catch(WSDLException e)
View Full Code Here

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

      BindingElement binding2 = descEl.addBindingElement();
    binding2.setName(name2);
      BindingElement binding3 = descEl.addBindingElement();
    binding3.setName(name3);
   
    Binding[] bindings = descEl.toComponent().getBindings();
   
    if(!val.testAssertionBinding1049(bindings, reporter))
    {
      fail("The testAssertionBinding1049 method returned false for a list of bindings that contains no duplicates.");
    }
View Full Code Here

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

      BindingElement binding2 = descEl.addBindingElement();
      binding2.setName(name2);
      BindingElement binding3 = descEl.addBindingElement();
    binding3.setName(name1);
   
    Binding[] bindings = descEl.toComponent().getBindings();
   
    if(val.testAssertionBinding1049(bindings, reporter))
    {
      fail("The testAssertionBinding1049 method returned true for a list of binginds that contains two bindings defined with the same QName object.");
    }
View Full Code Here

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

      BindingElement binding2 = descEl.addBindingElement();
      binding2.setName(name2);
      BindingElement binding3 = descEl.addBindingElement();
    binding3.setName(new NCName("name1"));
   
    Binding[] bindings = descEl.toComponent().getBindings();
   
    if(val.testAssertionBinding1049(bindings, reporter))
    {
      fail("The testAssertionBinding1049 method returned true for a list of bindings that contains two bindings with the same name defined with different QName objects.");
    }
View Full Code Here

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

  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      BindingElement binding = descEl.addBindingElement();
      binding.setName(name1);
    if(!val.testAssertionBinding1045(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1045 method returned false for a binding with no defined interface.");
    }
  }
  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.testAssertionBinding1045(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1045 method returned false for a binding with an interface with no operations.");
    }
  }
  catch(WSDLException e)
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.