beancollectioninheritancetest.java

来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 45 行

JAVA
45
字号
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;        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?