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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? testactionservlet.java

?? struts的源代碼
?? JAVA
字號(hào):
/*
 * $Id: TestActionServlet.java 54929 2004-10-16 16:38:42Z germuska $ 
 *
 * Copyright 1999-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.struts.action;

import javax.servlet.ServletException;
import junit.framework.Test;
import junit.framework.TestSuite;

import org.apache.cactus.ServletTestCase;
import org.apache.struts.util.MessageResources;

/**
 * Suite of unit tests for the
 * <code>org.apache.struts.action.ActionServlet</code> class.
 */
public class TestActionServlet extends ServletTestCase
{
    /**
     * Defines the testcase name for JUnit.
     *
     * @param theName the testcase's name.
     */
    public TestActionServlet(String theName)
    {
        super(theName);
    }

    /**
     * Start the tests.
     *
     * @param theArgs the arguments. Not used
     */
    public static void main(String[] theArgs)
    {
        junit.awtui.TestRunner.main(new String[] {TestActionServlet.class.getName()});
    }

    /**
     * @return a test suite (<code>TestSuite</code>) that includes all methods
     *         starting with "test"
     */
    public static Test suite()
    {
        // All methods starting with "test" will be executed in the test suite.
        return new TestSuite(TestActionServlet.class);
    }


    // ----------------------------- initInternal() and destroyInternal() tests


    /**
     * Verify that we can initialize and destroy our internal message
     * resources object.
     */
    public void testInitDestroyInternal() {

        ActionServlet servlet = new ActionServlet();
        try {
            servlet.initInternal();
        } catch (ServletException e) {
            fail("initInternal() threw exception: " + e);
        }
        assertTrue("internal was initialized",
                   servlet.getInternal() != null);
        assertTrue("internal of correct type",
                   servlet.getInternal() instanceof MessageResources);
        servlet.destroyInternal();
        assertTrue("internal was destroyed",
                   servlet.getInternal() == null);

    }



    //----- Test initApplication() method --------------------------------------

    /**
     * Verify that nothing happens if no "application" property is defined in
     * the servlet configuration.
     */
    /*
    public void testInitApplicationNull() throws ServletException
    {
        ActionServlet servlet = new ActionServlet();
        servlet.init(config);        

        // Test the initApplication() method
        servlet.initApplication();

        // As no "application" object is found in the servlet config, no
        // attribute should be set in the context
        assertTrue(config.getServletContext().getAttribute(Action.MESSAGES_KEY) == null);
    }
    */

    /**
     * Verify that eveything is fine when only a "application" parameter is
     * defined in the servlet configuration.
     */
    /*
    public void testInitApplicationOk1() throws ServletException
    {
        // initialize config
        config.setInitParameter("application", "org.apache.struts.webapp.example.ApplicationResources");

        ActionServlet servlet = new ActionServlet();
        servlet.init(config);        

        // Test the initApplication() method
        servlet.initApplication();

        assertTrue(servlet.application != null);
        assertTrue(servlet.application.getReturnNull() == true);

        assertTrue(config.getServletContext().getAttribute(Action.MESSAGES_KEY) != null);
        assertEquals(servlet.application, config.getServletContext().getAttribute(Action.MESSAGES_KEY));

    }
    */

    // [...]
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人激情av| 国产.欧美.日韩| 亚洲欧美另类在线| 国产偷国产偷精品高清尤物| 精品三级在线看| 67194成人在线观看| 欧美午夜不卡视频| 欧美色图免费看| 欧美午夜电影在线播放| 欧美日韩性生活| 欧美日韩国产免费一区二区 | 51久久夜色精品国产麻豆| 欧洲av在线精品| 欧美视频在线观看一区| 欧美日韩国产片| 欧美一区中文字幕| 欧美一卡2卡3卡4卡| 日韩一级成人av| 精品精品欲导航| 久久久国产午夜精品| 亚洲精品一区在线观看| 亚洲自拍偷拍av| 亚洲最色的网站| 亚洲成av人**亚洲成av**| 午夜电影一区二区三区| 精品中文字幕一区二区| 久久国内精品自在自线400部| 国产一区二区福利视频| 激情综合色丁香一区二区| 国产乱码精品一区二区三区av| 成人午夜激情在线| 国产精品1区二区.| 99国产精品国产精品毛片| 一本色道久久综合狠狠躁的推荐 | www.欧美日韩| 91精彩视频在线观看| 欧美日韩一级黄| 久久综合色一综合色88| 亚洲三级电影网站| 偷拍一区二区三区| 国产伦理精品不卡| 色哟哟日韩精品| 欧美一区二区网站| 欧美激情资源网| 亚洲一线二线三线视频| 奇米亚洲午夜久久精品| 国产精品白丝av| 91在线播放网址| 欧美福利视频导航| 国产精品久久久久一区二区三区| 亚洲一区二区三区美女| 精品一区免费av| 91在线观看视频| 欧美xingq一区二区| 亚洲色图欧美激情| 免费成人av资源网| 99国产欧美久久久精品| 日韩一级视频免费观看在线| 国产精品国产三级国产| 日本午夜精品视频在线观看| 国产高清在线观看免费不卡| 欧美日韩一区国产| 久久精品一区二区三区不卡牛牛| 一区二区三区四区不卡在线| 国产一区二三区好的| 欧美在线小视频| 亚洲卡通动漫在线| 国产91精品精华液一区二区三区| 欧美日韩夫妻久久| 中文字幕在线观看一区| 美女一区二区视频| 欧美三级中文字幕在线观看| 国产情人综合久久777777| 免费在线视频一区| 欧美最猛黑人xxxxx猛交| 国产精品无人区| 九色综合狠狠综合久久| 欧美日韩一区三区四区| 亚洲视频每日更新| 国产成人鲁色资源国产91色综 | 色婷婷国产精品| 久久久久久久精| 久久精品国产一区二区三| 欧美综合在线视频| 亚洲精品视频免费观看| 成人黄色免费短视频| 2014亚洲片线观看视频免费| 日本在线不卡视频| 色视频成人在线观看免| 国产精品高潮呻吟久久| 国产一区视频导航| 欧美r级电影在线观看| 丝瓜av网站精品一区二区 | 欧美成人一区二区三区片免费| 亚洲国产精品久久久久秋霞影院| 成人精品视频一区| 中文字幕第一区第二区| 国产在线精品视频| 欧美理论片在线| 亚洲一区二区三区在线| 色婷婷久久久亚洲一区二区三区| 亚洲天堂av一区| 不卡的av在线播放| 1000部国产精品成人观看| 成人av免费在线观看| 亚洲国产精品ⅴa在线观看| 欧美日本乱大交xxxxx| 一区二区三区视频在线看| 日本韩国视频一区二区| 亚洲综合一区二区三区| 日本韩国欧美一区| 亚洲五码中文字幕| 欧美人伦禁忌dvd放荡欲情| 日韩中文字幕亚洲一区二区va在线 | 国产精品夜夜嗨| 国产日韩在线不卡| 国产高清不卡二三区| 国产精品美女一区二区三区| av不卡免费电影| 欧美激情在线观看视频免费| 成人免费高清视频在线观看| 国产精品萝li| 色网站国产精品| 亚洲二区在线观看| 色婷婷av久久久久久久| 婷婷一区二区三区| 26uuu国产一区二区三区| 国产xxx精品视频大全| 中文字幕中文乱码欧美一区二区| 97精品超碰一区二区三区| 亚洲国产日韩av| 精品久久人人做人人爰| 国产成人aaa| 一区二区三区日韩精品视频| 这里是久久伊人| 国产一区二区美女诱惑| 国产精品久久久久天堂| 欧美午夜在线观看| 久久精品国产精品青草| 国产欧美精品国产国产专区| 色婷婷av一区二区三区软件| 欧美aaa在线| ...xxx性欧美| 欧美日本一区二区三区四区| 国内精品嫩模私拍在线| 日韩伦理免费电影| 9191久久久久久久久久久| 国产一区二区三区在线观看精品| ㊣最新国产の精品bt伙计久久| 欧美三级电影网| 韩国理伦片一区二区三区在线播放| 国产精品免费aⅴ片在线观看| 91网站最新网址| 免费av成人在线| 中文字幕在线播放不卡一区| 久久久不卡影院| 不卡在线视频中文字幕| 青青草国产成人av片免费| 亚洲欧洲日韩在线| 欧美一区二区三区不卡| 99久久久国产精品| 精品中文字幕一区二区小辣椒| 亚洲女同一区二区| 久久免费午夜影院| 欧美日韩激情一区二区| 成人夜色视频网站在线观看| 亚洲一区二区欧美| 久久综合狠狠综合| 欧美日本在线看| 99九九99九九九视频精品| 日韩精品一级二级 | 制服丝袜国产精品| 99视频有精品| 黄网站免费久久| 亚洲va中文字幕| 1区2区3区精品视频| 日韩欧美视频一区| 欧美三片在线视频观看| 99re在线视频这里只有精品| 韩国女主播成人在线| 日本午夜一区二区| 亚洲线精品一区二区三区 | 亚洲mv大片欧洲mv大片精品| 国产精品美女www爽爽爽| 精品区一区二区| 欧美精品在线视频| 色八戒一区二区三区| 99久免费精品视频在线观看| 国产精品一区二区x88av| 免费成人在线网站| 亚洲bt欧美bt精品| 亚洲一区精品在线| 亚洲猫色日本管| 亚洲色大成网站www久久九九| 国产亚洲精品bt天堂精选| 久久先锋资源网| 亚洲精品在线免费观看视频| 欧美一级艳片视频免费观看| 欧美日韩国产综合一区二区三区 | 制服.丝袜.亚洲.中文.综合|