亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xfiretestcase.java

?? Xfire文件 用于開發web service 的一個開源工具 很好用的
?? JAVA
字號:
package org.codehaus.xfire.aegis.inheritance.xfire;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

import org.codehaus.xfire.aegis.inheritance.ws1.BeanA;
import org.codehaus.xfire.aegis.inheritance.ws1.BeanB;
import org.codehaus.xfire.aegis.inheritance.ws1.WS1;
import org.codehaus.xfire.aegis.inheritance.ws1.impl.WS1Impl;
import org.codehaus.xfire.aegis.inheritance.ws2.WS2;
import org.codehaus.xfire.aegis.inheritance.ws2.common.ParentBean;
import org.codehaus.xfire.aegis.inheritance.ws2.common.pack1.ContentBean1;
import org.codehaus.xfire.aegis.inheritance.ws2.common.pack2.ContentBean2;
import org.codehaus.xfire.aegis.inheritance.ws2.impl.WS2Impl;
import org.codehaus.xfire.server.http.XFireHttpServer;
import org.codehaus.xfire.test.AbstractXFireTest;
import org.jdom.Document;

/**
 * <br/>
 * 
 * @author xfournet
 */
public class XFireTestCase
    extends AbstractXFireTest
{
    private XFireHelper m_helper;

    private WS1 m_remoteWS1;

    private WS1 m_localWS1;

    private WS2 m_remoteWS2;

    private WS2 m_localWS2;

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

        String url = "http://localhost:9035";

        assertNotNull("Property 'xfiretestcase.url' is not set !", url);

        XFireHelper xFireHelper = new XFireHelper();

        m_localWS1 = new WS1Impl();
        m_remoteWS1 = (WS1) xFireHelper.createClientProxy(xFireHelper.createServiceWS1(), url);

        m_localWS2 = new WS2Impl();
        m_remoteWS2 = (WS2) xFireHelper.createClientProxy(xFireHelper.createServiceWS2(), url);

        startServer();
    }

    protected void tearDown()
        throws Exception
    {
        xFireHttpServer.stop();
        super.tearDown();
    }

    XFireHttpServer xFireHttpServer;

    public void startServer()
        throws Exception
    {
        // Create WS
        m_helper = new XFireHelper(getXFire());
        m_helper.registerService(m_helper.createServiceWS1(), new WS1Impl());
        m_helper.registerService(m_helper.createServiceWS2(), new WS2Impl());

        // Start Jetty server
        xFireHttpServer = new XFireHttpServer(m_helper.getXfire());
        xFireHttpServer.setPort(9035);
        xFireHttpServer.start();
    }

    protected void assertEquals(Object[] expected, Object[] result)
    {
        if (!Arrays.equals(expected, result))
        {
            fail("Expected : " + Arrays.asList(expected) + " ; result : " + Arrays.asList(result));
        }
    }

    public void testExplicitInheritance()
    {
        assertEquals(m_localWS1.getBeanA(), m_remoteWS1.getBeanA());
        assertEquals(m_localWS1.getBeanB(), m_remoteWS1.getBeanB());
    }

    public void testNonExplicitInheritance()
    {
        assertEquals(m_localWS1.getBean("a"), m_localWS1.getBean("a"));
        assertEquals(m_localWS1.getBean("a"), m_remoteWS1.getBean("a"));
        assertEquals(new BeanB(), new BeanB());
        assertEquals(m_localWS1.getBean("b"), m_localWS1.getBean("b"));
        assertEquals(m_localWS1.getBean("b"), m_remoteWS1.getBean("b"));
        assertEquals(m_localWS1.getBean("c"), m_remoteWS1.getBean("c"));
        assertEquals(m_localWS1.getBean("d"), m_remoteWS1.getBean("d"));
    }

    public void testChildInheritance()
    {
        assertEquals(m_localWS1.getRootBean("a"), m_remoteWS1.getRootBean("a"));
        assertEquals(m_localWS1.getRootBean("b"), m_remoteWS1.getRootBean("b"));
        assertEquals(m_localWS1.getRootBean("c"), m_remoteWS1.getRootBean("c"));
        assertEquals(m_localWS1.getRootBean("d"), m_remoteWS1.getRootBean("d"));
    }

    public void testArrayWithInheritance()
    {
//        assertEquals(m_localWS1.listBeans(), m_remoteWS1.listBeans());
        assertEquals(m_localWS1.listRootBeans(), m_remoteWS1.listRootBeans());
//        assertEquals(m_localWS1.getResultBean(), m_remoteWS1.getResultBean());
    }

    public void testMapInheritance()
    {
        BeanA beanA = new BeanA();
        BeanB beanB = new BeanB();
        
        Map m = new HashMap();
        m.put(beanA, beanB);
        
        Map response = m_remoteWS1.echoMap(m);
        assertEquals(1, response.size());
        
        Object objB = response.get(beanA);
        assertEquals(objB, beanB);
    }
    
    public void testInheritedException()
    {
        Throwable localThrowable;
        Throwable remoteThrowable;

        // test base exception
        try
        {
            m_localWS1.throwException(false);
            localThrowable = null;
        }
        catch (Throwable t)
        {
            localThrowable = t;
        }
        assertNotNull(localThrowable);

        try
        {
            m_remoteWS1.throwException(false);
            remoteThrowable = null;
        }
        catch (Throwable t)
        {
            remoteThrowable = t;
        }
        assertNotNull(remoteThrowable);

        assertEquals(localThrowable, remoteThrowable);

        // test inherited exception
        try
        {
            m_localWS1.throwException(true);
            localThrowable = null;
        }
        catch (Throwable t)
        {
            localThrowable = t;
        }
        assertNotNull(localThrowable);

        try
        {
            m_remoteWS1.throwException(true);
            remoteThrowable = null;
        }
        catch (Throwable t)
        {
            remoteThrowable = t;
        }
        assertNotNull(remoteThrowable);

        assertEquals(localThrowable, remoteThrowable);
    }

    public void testMixedPackageChildInheritance()
        throws Exception
    {
        assertEquals(m_localWS2.getParentBean("X"), m_remoteWS2.getParentBean("X"));
        assertEquals(m_localWS2.getParentBean("Y"), m_remoteWS2.getParentBean("Y"));

        String baseId = System.currentTimeMillis() + "-";
        ParentBean parentBean;

        parentBean = new ParentBean(baseId + "A", new ContentBean1("data1-A"));
        m_localWS2.putParentBean(parentBean);
        m_remoteWS2.putParentBean(parentBean);
        assertEquals(m_localWS2.getParentBean(parentBean.getId()), m_remoteWS2
                .getParentBean(parentBean.getId()));

        parentBean = new ParentBean(baseId + "B", new ContentBean2("data1-B", "content2-B"));
        m_localWS2.putParentBean(parentBean);
        m_remoteWS2.putParentBean(parentBean);
        assertEquals(m_localWS2.getParentBean(parentBean.getId()), m_remoteWS2
                .getParentBean(parentBean.getId()));
    }

    public void testMixedPackageException()
    {
        Throwable localThrowable;
        Throwable remoteThrowable;

        // test AlreadyExists exception
        try
        {
            m_localWS2.putParentBean(new ParentBean("X", null));
            localThrowable = null;
        }
        catch (Throwable t)
        {
            localThrowable = t;
        }
        assertNotNull(localThrowable);

        try
        {
            m_remoteWS2.putParentBean(new ParentBean("X", null));
            remoteThrowable = null;
        }
        catch (Throwable t)
        {
            remoteThrowable = t;
        }
        assertNotNull(remoteThrowable);

        assertEquals(localThrowable, remoteThrowable);

        // test NotFound exception
        try
        {
            m_localWS2.getParentBean("Z");
            localThrowable = null;
        }
        catch (Throwable t)
        {
            localThrowable = t;
        }
        assertNotNull(localThrowable);

        try
        {
            m_remoteWS2.getParentBean("Z");
            remoteThrowable = null;
        }
        catch (Throwable t)
        {
            remoteThrowable = t;
        }
        assertNotNull(remoteThrowable);

        assertEquals(localThrowable, remoteThrowable);
    }

    public void testWSDLDocument()
        throws Exception
    {
        Document wsdl = getWSDLDocument("ws1");
        assertValid("//wsdl:types/xsd:schema/xsd:complexType[@name='ArrayOfBeanD']", wsdl);
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品视频免费| 亚洲综合图片区| 欧美va在线播放| 日韩无一区二区| 日韩欧美国产wwwww| 欧美成人一区二区三区片免费 | 亚洲卡通动漫在线| 亚洲欧美日韩国产一区二区三区| 椎名由奈av一区二区三区| 国产精品麻豆一区二区 | 9l国产精品久久久久麻豆| 成人精品视频一区二区三区尤物| 国产福利一区在线| aaa国产一区| 在线亚洲人成电影网站色www| 欧美无人高清视频在线观看| 欧美三级蜜桃2在线观看| 777精品伊人久久久久大香线蕉| 欧美一区二区在线免费播放| 精品免费国产二区三区| 国产精品天干天干在线综合| 亚洲欧美另类小说视频| 亚洲成av人片一区二区| 国产自产2019最新不卡| 不卡一区中文字幕| 欧美色国产精品| 久久综合成人精品亚洲另类欧美| 久久综合狠狠综合久久综合88| 一区在线播放视频| 午夜视频一区二区三区| 国产成人无遮挡在线视频| 91香蕉视频污| 精品福利一区二区三区| 成人欧美一区二区三区白人| 天堂一区二区在线免费观看| 国产成人精品亚洲午夜麻豆| 一本大道av伊人久久综合| 欧美一级搡bbbb搡bbbb| 日韩一区在线看| 国产一区二区三区免费看| 91福利资源站| 国产精品天美传媒| 免费人成黄页网站在线一区二区| 99久久精品免费观看| 欧美xxxxx牲另类人与| 亚洲欧美日韩在线| 国产精品亚洲一区二区三区妖精| 在线电影欧美成精品| 亚洲天堂av一区| 国产精选一区二区三区| 欧美日韩国产精品成人| 成人欧美一区二区三区视频网页| 狠狠色2019综合网| 7777精品伊人久久久大香线蕉完整版 | 日日摸夜夜添夜夜添亚洲女人| 国产精品99久久久久| 欧美精品在线观看一区二区| 亚洲欧美日韩一区二区三区在线观看| 久久国产生活片100| 欧美喷潮久久久xxxxx| 国产精品女同一区二区三区| 麻豆精品视频在线观看免费| 在线观看91精品国产麻豆| 一区二区三区欧美久久| 99精品视频一区二区| 日本一区二区三区四区在线视频 | 亚洲大片精品永久免费| 95精品视频在线| 国产精品三级在线观看| 国产乱码字幕精品高清av | 欧美婷婷六月丁香综合色| 亚洲国产精华液网站w| 国产999精品久久久久久| 久久这里都是精品| 国产综合久久久久影院| 精品国产乱码久久久久久影片| 天天综合色天天综合色h| 精品视频1区2区| 亚洲韩国一区二区三区| 欧美日韩在线三级| 亚洲va国产va欧美va观看| 欧美在线一区二区三区| 日韩国产成人精品| 日韩欧美一区在线观看| 黄色日韩网站视频| 欧美国产1区2区| 色综合天天综合网国产成人综合天| 亚洲欧洲成人av每日更新| 91蝌蚪porny九色| 一二三四区精品视频| 欧美日本一道本在线视频| 奇米影视在线99精品| 久久天堂av综合合色蜜桃网| 国产成人精品免费网站| 亚洲摸摸操操av| 欧美日本一区二区三区四区 | 久久精品欧美一区二区三区不卡 | 一区二区三区在线影院| 欧美性生活一区| 久久97超碰国产精品超碰| 国产亚洲成aⅴ人片在线观看| av高清不卡在线| 亚洲国产成人高清精品| 精品电影一区二区三区 | 一级女性全黄久久生活片免费| 欧美美女一区二区| 国产精品1024| 亚洲一二三四在线观看| 久久久午夜电影| 一本大道久久a久久精品综合 | 精品国产乱子伦一区| 不卡欧美aaaaa| 日日夜夜免费精品| 国产精品三级久久久久三级| 欧美无乱码久久久免费午夜一区| 九一久久久久久| 亚洲色图制服诱惑| 欧美成人精品福利| 色婷婷综合久久| 国内精品伊人久久久久av影院| 亚洲精品欧美二区三区中文字幕| wwwwxxxxx欧美| 在线免费观看视频一区| 成人黄色免费短视频| 蜜桃在线一区二区三区| 一区二区三区四区五区视频在线观看| 欧美一卡2卡3卡4卡| 在线亚洲一区二区| 97se亚洲国产综合在线| 国模冰冰炮一区二区| 午夜精品在线视频一区| 一区二区三区国产精华| 中文字幕国产一区| 亚洲精品一区二区在线观看| 欧美伦理影视网| 色天天综合色天天久久| 成人免费毛片高清视频| 精品一区二区三区免费毛片爱| 午夜精品爽啪视频| 一级女性全黄久久生活片免费| 国产精品传媒在线| 国产色综合久久| 国产日产欧美一区| 久久婷婷久久一区二区三区| 精品国产91九色蝌蚪| 日韩一级二级三级| 91麻豆精品国产无毒不卡在线观看| 在线看不卡av| 欧美午夜精品免费| 在线观看日韩精品| 欧美性生活久久| 欧美日韩一区二区三区在线| 欧美在线免费视屏| 色偷偷久久一区二区三区| 在线观看中文字幕不卡| 欧美影院一区二区| 欧美日韩mp4| 日韩一级免费观看| 久久九九99视频| 国产精品萝li| 一区二区成人在线| 午夜精品久久久久久| 蜜乳av一区二区三区| 国产精品夜夜嗨| 99riav久久精品riav| 欧美午夜一区二区| 7777女厕盗摄久久久| 精品999在线播放| 中文字幕在线免费不卡| 亚洲精品成a人| 免费不卡在线视频| 激情综合色播五月| 国产91丝袜在线18| 在线视频欧美精品| 日韩视频一区二区在线观看| 国产三级欧美三级日产三级99| 亚洲人成在线观看一区二区| 丝袜a∨在线一区二区三区不卡| 激情综合亚洲精品| 色哟哟日韩精品| 日韩欧美的一区二区| 国产欧美精品在线观看| 亚洲国产精品久久久男人的天堂| 免费成人在线网站| 99久久99久久精品免费看蜜桃| 欧美日韩你懂的| 久久久久久麻豆| 亚洲午夜在线视频| 国产乱码精品一品二品| 色欧美片视频在线观看在线视频| 7777精品伊人久久久大香线蕉完整版| 国产欧美日韩精品一区| 午夜久久久久久电影| 波多野结衣的一区二区三区| 欧美日韩精品免费| 综合欧美一区二区三区| 久久精品国产免费看久久精品| 在线视频你懂得一区| 国产农村妇女精品| 久久精品久久综合|