Package org.codehaus.xfire.aegis.type.interfaceMapping

Source Code of org.codehaus.xfire.aegis.type.interfaceMapping.InterfaceInheritanceAegisTest

package org.codehaus.xfire.aegis.type.interfaceMapping;

import org.codehaus.xfire.aegis.AbstractXFireAegisTest;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.service.invoker.BeanInvoker;
import org.jdom.Document;

public class InterfaceInheritanceAegisTest extends AbstractXFireAegisTest {

  private Service service;

  public void setUp() throws Exception {
    super.setUp();

    service = getServiceFactory().create(InterfaceService.class,
                "InterfaceService",
                "urn:InterfaceService",
                null);
    service.setInvoker(new BeanInvoker(new InterfaceTestService()));
    getServiceRegistry().register(service);
  }

  public void testGetStrings() throws Exception {

    Document doc = getWSDLDocument("InterfaceService");
    //printNode(doc);
    addNamespace("xsd","http://www.w3.org/2001/XMLSchema");
    assertValid("//xsd:complexType[@name=\"BeanImpl\"]/xsd:sequence/xsd:element[@name=\"exposedName\"]",doc);
    assertValid("//xsd:complexType[@name=\"BeanImpl\"]/xsd:sequence/xsd:element[@name=\"exposedParentName\"]",doc);
  }

}
TOP

Related Classes of org.codehaus.xfire.aegis.type.interfaceMapping.InterfaceInheritanceAegisTest

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.