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

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

?? testlinktag3.java

?? struts的源代碼
?? JAVA
字號(hào):
/*
 * $Id: TestLinkTag3.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.taglib.html;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.StringTokenizer;

import javax.servlet.jsp.PageContext;

import junit.framework.Test;
import junit.framework.TestSuite;

import org.apache.cactus.JspTestCase;
import org.apache.struts.Globals;
import org.apache.struts.taglib.SimpleBeanForTesting;

/**
 * Suite of unit tests for the
 * <code>org.apache.struts.taglib.html.LinkTag</code> class.
 *
 */
public class TestLinkTag3 extends JspTestCase {

    /**
     * Defines the testcase name for JUnit.
     *
     * @param theName the testcase's name.
     */
    public TestLinkTag3(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[] {TestLinkTag3.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(TestLinkTag3.class);
    }

    private void runMyTest(String whichTest, String locale) throws Exception {
        pageContext.setAttribute(Globals.LOCALE_KEY, new Locale(locale, locale), PageContext.SESSION_SCOPE);
        request.setAttribute("runTest", whichTest);
        pageContext.forward("/test/org/apache/struts/taglib/html/TestLinkTag3.jsp");
    }

    /*
     * Testing LinkTag.
     */

//--------Testing attributes using forward------

    public void testLinkAction() throws Exception {
        runMyTest("testLinkAction", "");
    }

    public void testLinkActionAccesskey() throws Exception {
        runMyTest("testLinkActionAccesskey", "");
    }

    public void testLinkActionAnchor() throws Exception {
        runMyTest("testLinkActionAnchor", "");
    }

    public void testLinkActionIndexedArray() throws Exception {
        ArrayList lst = new ArrayList();
        lst.add("Test Message");
        pageContext.setAttribute("lst", lst, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedArray", "");
        }

    public void testLinkActionIndexedArrayProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        ArrayList lst = new ArrayList();
        lst.add("Test Message");
        sbft.setList(lst);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedArrayProperty", "");
        }

    public void testLinkActionIndexedMap() throws Exception {
        HashMap map = new HashMap();
        map.put("tst1", "Test Message");
        pageContext.setAttribute("lst", map, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedMap", "");
        }

    public void testLinkActionIndexedMapProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        HashMap map = new HashMap();
        map.put("tst1", "Test Message");
        sbft.setMap(map);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedMapProperty", "");
        }

    public void testLinkActionIndexedEnumeration() throws Exception {
        StringTokenizer st = new StringTokenizer("Test Message");
        pageContext.setAttribute("lst", st, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedEnumeration", "");
        }

    public void testLinkActionIndexedEnumerationProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        StringTokenizer st = new StringTokenizer("Test Message");
        sbft.setEnumeration(st);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedEnumerationProperty", "");
        }


    public void testLinkActionIndexedAlternateIdArray() throws Exception {
        ArrayList lst = new ArrayList();
        lst.add("Test Message");
        pageContext.setAttribute("lst", lst, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedAlternateIdArray", "");
        }

    public void testLinkActionIndexedAlternateIdArrayProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        ArrayList lst = new ArrayList();
        lst.add("Test Message");
        sbft.setList(lst);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedAlternateIdArrayProperty", "");
        }

    public void testLinkActionIndexedAlternateIdMap() throws Exception {
        HashMap map = new HashMap();
        map.put("tst1", "Test Message");
        pageContext.setAttribute("lst", map, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedAlternateIdMap", "");
        }

    public void testLinkActionIndexedAlternateIdMapProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        HashMap map = new HashMap();
        map.put("tst1", "Test Message");
        sbft.setMap(map);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedAlternateIdMapProperty", "");
        }

    public void testLinkActionIndexedAlternateIdEnumeration() throws Exception {
        StringTokenizer st = new StringTokenizer("Test Message");
        pageContext.setAttribute("lst", st, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedAlternateIdEnumeration", "");
        }

    public void testLinkActionIndexedAlternateIdEnumerationProperty() throws Exception {
        SimpleBeanForTesting sbft = new SimpleBeanForTesting();
        StringTokenizer st = new StringTokenizer("Test Message");
        sbft.setEnumeration(st);
        pageContext.setAttribute("lst", sbft, PageContext.REQUEST_SCOPE);
        runMyTest("testLinkActionIndexedAlternateIdEnumerationProperty", "");
        }

    public void testLinkActionLinkName() throws Exception {
       runMyTest("testLinkActionLinkName", "");
    }

    public void testLinkActionNameNoScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                pageContext.setAttribute("paramMap", map, PageContext.REQUEST_SCOPE);
       runMyTest("testLinkActionNameNoScope", "");
    }

    public void testLinkActionNamePropertyNoScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                SimpleBeanForTesting sbft = new SimpleBeanForTesting(map);
                pageContext.setAttribute("paramPropertyMap", sbft, PageContext.REQUEST_SCOPE);
       runMyTest("testLinkActionNamePropertyNoScope", "");
    }

    public void testLinkActionNameApplicationScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                pageContext.setAttribute("paramMap", map, PageContext.APPLICATION_SCOPE);
       runMyTest("testLinkActionNameApplicationScope", "");
    }

    public void testLinkActionNamePropertyApplicationScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                SimpleBeanForTesting sbft = new SimpleBeanForTesting(map);
                pageContext.setAttribute("paramPropertyMap", sbft, PageContext.APPLICATION_SCOPE);
       runMyTest("testLinkActionNamePropertyApplicationScope", "");
    }

    public void testLinkActionNameSessionScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                pageContext.setAttribute("paramMap", map, PageContext.SESSION_SCOPE);
       runMyTest("testLinkActionNameSessionScope", "");
    }

    public void testLinkActionNamePropertySessionScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                SimpleBeanForTesting sbft = new SimpleBeanForTesting(map);
                pageContext.setAttribute("paramPropertyMap", sbft, PageContext.SESSION_SCOPE);
       runMyTest("testLinkActionNamePropertySessionScope", "");
    }

    public void testLinkActionNameRequestScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                pageContext.setAttribute("paramMap", map, PageContext.REQUEST_SCOPE);
       runMyTest("testLinkActionNameRequestScope", "");
    }

    public void testLinkActionNamePropertyRequestScope() throws Exception {
                HashMap map = new HashMap();
                map.put("param1","value1");
                map.put("param2","value2");
                map.put("param3","value3");
                map.put("param4","value4");
                SimpleBeanForTesting sbft = new SimpleBeanForTesting(map);
                pageContext.setAttribute("paramPropertyMap", sbft, PageContext.REQUEST_SCOPE);
       runMyTest("testLinkActionNamePropertyRequestScope", "");
    }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美偷拍另类a∨色屁股| 亚洲伦理在线免费看| 蜜桃久久av一区| 欧美精品 国产精品| 亚洲福利视频导航| 欧美三级在线播放| 亚洲电影中文字幕在线观看| 欧美日韩在线免费视频| 亚洲一区中文在线| 欧美系列在线观看| 亚洲一区二区高清| 欧美高清视频在线高清观看mv色露露十八| 亚洲国产综合91精品麻豆| 欧美吞精做爰啪啪高潮| 亚洲午夜精品在线| 欧美日韩国产美| 日韩黄色片在线观看| 51久久夜色精品国产麻豆| 日本欧美一区二区三区| 日韩一区二区三区电影在线观看| 老司机一区二区| 久久一夜天堂av一区二区三区| 狠狠v欧美v日韩v亚洲ⅴ| 国产喷白浆一区二区三区| 大桥未久av一区二区三区中文| 国产精品久久久久久久岛一牛影视| 不卡的av网站| 一区二区不卡在线视频 午夜欧美不卡在| 色婷婷精品大视频在线蜜桃视频 | 亚洲精品一区二区三区蜜桃下载 | 色婷婷综合久久久久中文一区二区 | 欧美日韩亚洲不卡| 天堂蜜桃一区二区三区| 日韩欧美一级精品久久| 国产专区欧美精品| 国产精品久久夜| 欧美伊人精品成人久久综合97 | 亚洲一区在线观看免费观看电影高清| 精品视频一区三区九区| 日本欧美在线观看| 久久久国产一区二区三区四区小说| 成人丝袜18视频在线观看| 亚洲激情网站免费观看| 欧美精品v日韩精品v韩国精品v| 久久9热精品视频| 欧美国产综合色视频| 在线观看日韩一区| 久久精品国产亚洲aⅴ| 欧美国产精品专区| 欧美吻胸吃奶大尺度电影| 久久精品噜噜噜成人88aⅴ| 亚洲国产经典视频| 欧美日韩日本视频| 国产精品99久久不卡二区| 亚洲人成精品久久久久| 制服丝袜国产精品| 床上的激情91.| 亚洲va韩国va欧美va精品| 欧美成人精品二区三区99精品| 从欧美一区二区三区| 亚洲va国产va欧美va观看| 久久久午夜电影| www.亚洲在线| 日本大胆欧美人术艺术动态| 日本一区免费视频| 欧美日韩精品欧美日韩精品一| 国产精品自在在线| 亚洲午夜久久久久| 国产色产综合产在线视频| 欧美色大人视频| 国产91综合网| 秋霞午夜av一区二区三区| 国产精品久久一卡二卡| 日韩一区二区三区视频| 91视频精品在这里| 久久不见久久见免费视频1| 一区二区三区丝袜| 久久久久9999亚洲精品| 欧美日本一区二区三区四区| 国产sm精品调教视频网站| 天堂蜜桃91精品| 亚洲欧美综合色| 精品国产免费久久| 欧美在线观看18| 成人免费看片app下载| 美女一区二区在线观看| 亚洲愉拍自拍另类高清精品| 亚洲国产高清在线| 精品国产免费久久| 欧美人妇做爰xxxⅹ性高电影| 99久久婷婷国产综合精品| 精品一区二区三区视频在线观看| 亚洲香肠在线观看| 中文字幕一区在线观看| 久久美女艺术照精彩视频福利播放 | 久久久久久久久久美女| 欧美精品tushy高清| 日本精品一区二区三区四区的功能| 国产乱码字幕精品高清av| 午夜亚洲福利老司机| 亚洲色图清纯唯美| 国产欧美日韩在线观看| 精品人在线二区三区| 欧美人狂配大交3d怪物一区| 色欧美片视频在线观看| 成人sese在线| 国产99精品国产| 国产老肥熟一区二区三区| 久久国产尿小便嘘嘘尿| 日韩在线卡一卡二| 亚洲精品综合在线| 综合久久国产九一剧情麻豆| 亚洲国产精品99久久久久久久久| 久久婷婷国产综合国色天香| 日韩三级伦理片妻子的秘密按摩| 欧美女孩性生活视频| 欧美在线一区二区三区| 色婷婷综合久久久久中文| 99久久99久久精品免费看蜜桃| 成人亚洲一区二区一| 国产成人亚洲综合a∨猫咪| 久久福利资源站| 久久99精品国产麻豆婷婷| 麻豆成人久久精品二区三区小说| 日韩不卡在线观看日韩不卡视频| 香蕉久久夜色精品国产使用方法 | 欧美日韩日日摸| 欧美视频一区二区三区在线观看| 色综合天天做天天爱| 色综合婷婷久久| 在线观看亚洲a| 欧美日韩一区高清| 欧美日韩国产另类一区| 欧美日韩一区二区三区在线| 欧美日韩亚洲另类| 欧美疯狂性受xxxxx喷水图片| 正在播放亚洲一区| 日韩欧美国产三级电影视频| 欧美电影免费观看高清完整版在线观看| 欧美一区二区黄| 欧美xxxxxxxx| 日本一区二区不卡视频| 一区视频在线播放| 一区二区在线电影| 亚洲国产精品综合小说图片区| 亚洲福利一二三区| 日本人妖一区二区| 久久99精品网久久| 国产成人精品一区二| av男人天堂一区| 欧美亚洲一区二区在线观看| 欧美日韩三级一区二区| 日韩三级视频在线看| 久久久精品中文字幕麻豆发布| 国产精品全国免费观看高清 | 亚洲国产一区二区在线播放| 视频在线观看91| 精品一区二区三区av| 粉嫩一区二区三区性色av| 99久久精品国产麻豆演员表| 欧美在线不卡视频| 91精品婷婷国产综合久久| 久久亚洲精品小早川怜子| 国产精品理论片在线观看| 亚洲综合色丁香婷婷六月图片| 秋霞成人午夜伦在线观看| 国产精品一二三四五| 91免费看视频| 欧美一区二区黄| 欧美激情一区二区三区在线| 亚洲综合免费观看高清完整版在线 | 亚洲国产成人av网| 精品在线一区二区三区| 成人av网在线| 51精品视频一区二区三区| 久久久久青草大香线综合精品| 最新国产精品久久精品| 日韩精品每日更新| 粉嫩高潮美女一区二区三区| 欧美性受xxxx黑人xyx性爽| 欧美成人国产一区二区| 日韩理论片一区二区| 日韩黄色片在线观看| 成人福利在线看| 欧美卡1卡2卡| 国产精品污污网站在线观看| 午夜久久福利影院| 国产91对白在线观看九色| 欧美日韩免费在线视频| 国产午夜精品一区二区三区嫩草| 一区二区三区**美女毛片| 国产一区二区毛片| 欧美精品视频www在线观看| 国产视频一区不卡| 日韩av中文在线观看| 91丨porny丨国产入口| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 天天操天天综合网| 不卡欧美aaaaa| 欧美xxxx老人做受|