Package org.codehaus.xfire.aegis.type.collection

Source Code of org.codehaus.xfire.aegis.type.collection.BeanCollectionInheritanceTest$BeanCollectionInheritanceService

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

import java.util.Collection;
import java.util.Map;

import org.codehaus.xfire.aegis.AbstractXFireAegisTest;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.soap.SoapConstants;
import org.jdom.Document;

public class BeanCollectionInheritanceTest
        extends AbstractXFireAegisTest
{

    public void setUp()
            throws Exception
    {
        super.setUp();
        Service endpoint = getServiceFactory().create(BeanCollectionInheritanceService.class);
        getServiceRegistry().register(endpoint);
    }

    public void testWSDL() throws Exception
    {
        Document doc =  getWSDLDocument("BeanCollectionInheritanceService");

        addNamespace("xsd", SoapConstants.XSD);
        assertValid("//xsd:element[@name='strings'][@type='tns:ArrayOfString']", doc);
        assertValid("//xsd:element[@name='doubles'][@type='tns:ArrayOfDouble']", doc);
    }
       
    public static class BeanCollectionInheritanceService
    {
        public Collection getInheritedBeanCollection()
        {
            return null;
        }
       
        public Map getInheritedBeanMap()
        {
          return null;
        }
    }
}
TOP

Related Classes of org.codehaus.xfire.aegis.type.collection.BeanCollectionInheritanceTest$BeanCollectionInheritanceService

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.