Examples of toComponent()


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

  /**
   * Test that the assertion fails if the interface is in the direct list.
   */
  public void testInterfaceExtendsItselfDirectly() throws Exception {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
        descEl.setTargetNamespace(URI.create("http://testnamespace"));
     
        InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
   
View Full Code Here

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

  /**
   * Test that the assertion fails if the interface is in the indirect list.
   */
  public void testInterfaceExtendsItselfIndirectly() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
        descEl.setTargetNamespace(URI.create("http://testnamespace"));
       
        InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
    InterfaceImpl interfac2 = (InterfaceImpl)descEl.addInterfaceElement();
View Full Code Here

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

   * Test that the assertion passes if the interface is not
   * in the direct or indirect list of extended interfaces.
   */
  public void testInterfaceExtendsOtherInterfaces() {
    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
       
        descEl.setTargetNamespace(URI.create("http://testnamespace"));
       
    // Create an interface, set it to extend to other interfaces and have
    // one of those interfaces extend a fourth interface.
View Full Code Here

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

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

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

  /**
   * 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

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

  /**
   * 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

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

  /**
   * 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

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

  /**
   * 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

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

      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      BindingElement binding = descEl.addBindingElement();
      binding.setName(name1);
      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 no interface.");
    }
  }
  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);
      BindingFaultElement bindingFault = binding.addBindingFaultElement();
    if(val.testAssertionBinding1044(descEl.toComponent().getBindings()[0], reporter))
    {
      fail("The testAssertionBinding1044 method returned true for a binding with a fault and no interface.");
    }
  }
  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.