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

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

?? testlinktag5.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: TestLinkTag5.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 TestLinkTag5 extends JspTestCase {

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

    /*
     * Testing LinkTag.
     */

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

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

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

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

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

    public void testLinkHrefIndexedArrayProperty() 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("testLinkHrefIndexedArrayProperty", "");
        }

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

    public void testLinkHrefIndexedMapProperty() 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("testLinkHrefIndexedMapProperty", "");
        }

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

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


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

    public void testLinkHrefIndexedAlternateIdArrayProperty() 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("testLinkHrefIndexedAlternateIdArrayProperty", "");
        }

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

    public void testLinkHrefIndexedAlternateIdMapProperty() 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("testLinkHrefIndexedAlternateIdMapProperty", "");
        }

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

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

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

    public void testLinkHrefNameNoScope() 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("testLinkHrefNameNoScope", "");
    }

    public void testLinkHrefNamePropertyNoScope() 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("testLinkHrefNamePropertyNoScope", "");
    }

    public void testLinkHrefNameApplicationScope() 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("testLinkHrefNameApplicationScope", "");
    }

    public void testLinkHrefNamePropertyApplicationScope() 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("testLinkHrefNamePropertyApplicationScope", "");
    }

    public void testLinkHrefNameSessionScope() 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("testLinkHrefNameSessionScope", "");
    }

    public void testLinkHrefNamePropertySessionScope() 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("testLinkHrefNamePropertySessionScope", "");
    }

    public void testLinkHrefNameRequestScope() 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("testLinkHrefNameRequestScope", "");
    }

    public void testLinkHrefNamePropertyRequestScope() 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("testLinkHrefNamePropertyRequestScope", "");
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品免费在线观看| 亚洲色图色小说| 欧美另类高清zo欧美| 丁香一区二区三区| 一区二区三区丝袜| 国产精品久久久久久久裸模 | 不卡在线观看av| 国产综合久久久久久久久久久久| 亚洲视频精选在线| 中文字幕亚洲综合久久菠萝蜜| 精品国产电影一区二区| 欧美一区二区三级| 91精品国产综合久久福利软件 | 国产又黄又大久久| 日本不卡免费在线视频| 亚洲综合区在线| 亚洲欧美经典视频| 亚洲免费在线观看视频| 国产精品国产自产拍高清av王其| 久久久久国产一区二区三区四区 | 7777精品伊人久久久大香线蕉完整版 | 亚洲成人激情av| 亚洲一区二区在线免费观看视频| 国产女同互慰高潮91漫画| 国产亚洲一区二区在线观看| 精品国产不卡一区二区三区| 精品奇米国产一区二区三区| 日韩欧美国产系列| 欧美激情一二三区| 亚洲欧洲精品一区二区三区不卡| 91蜜桃网址入口| 麻豆精品一二三| 欧美日韩三级一区| 国产麻豆精品视频| 91免费版pro下载短视频| 99久久精品一区| 欧美精品第1页| 中文字幕av资源一区| 亚洲线精品一区二区三区| 精品亚洲欧美一区| 91伊人久久大香线蕉| 欧美精品一区视频| 亚洲欧美电影一区二区| 美腿丝袜在线亚洲一区| 波多野结衣精品在线| 欧美一区二区三区四区高清| 国产亚洲精品bt天堂精选| 国产精品理论在线观看| 亚洲国产另类精品专区| 国产成人精品网址| 欧美日韩二区三区| ...xxx性欧美| 国产成人精品1024| 日韩视频一区二区三区在线播放 | 亚洲女人小视频在线观看| 美日韩一区二区三区| 色八戒一区二区三区| 国产精品久久久久久久久搜平片| 免费成人在线视频观看| 欧美吞精做爰啪啪高潮| 亚洲女同ⅹxx女同tv| 波多野结衣一区二区三区| 久久青草国产手机看片福利盒子| 五月综合激情日本mⅴ| 久久精品网站免费观看| 日本中文字幕不卡| 日韩一区二区三区观看| 一区二区三区精品在线观看| 成人综合激情网| 亚洲欧美乱综合| 91搞黄在线观看| 亚洲国产精品久久人人爱| 秋霞午夜鲁丝一区二区老狼| 国产精品一区二区不卡| 欧美一级精品大片| 琪琪一区二区三区| 精品日韩欧美一区二区| 国产精品一品视频| 国产精品无码永久免费888| 国产精品123| 中文字幕中文在线不卡住| 99免费精品在线观看| 亚洲嫩草精品久久| 日韩一区二区麻豆国产| 国产精品18久久久久久久网站| 国产日韩欧美不卡在线| 成人毛片在线观看| 性做久久久久久免费观看欧美| 日韩一区二区在线观看视频| 国产麻豆视频精品| 伊人色综合久久天天人手人婷| 欧美另类videos死尸| 成人做爰69片免费看网站| 午夜精品久久久久久久蜜桃app| 69av一区二区三区| 成人在线视频首页| 日韩vs国产vs欧美| 中文字幕第一页久久| 色婷婷av一区二区三区大白胸 | 国产欧美日韩一区二区三区在线观看 | 欧美日韩视频在线观看一区二区三区 | 91精品国产91热久久久做人人| 久久99国产精品成人| 亚洲a一区二区| 一区二区三区四区中文字幕| 26uuu亚洲综合色欧美| 91麻豆精品国产91久久久久 | 亚洲日本丝袜连裤袜办公室| 亚洲男同性恋视频| 国产欧美精品一区二区三区四区| 在线播放91灌醉迷j高跟美女| 99精品久久久久久| 成人免费av在线| 国产精品一区专区| 国产激情视频一区二区三区欧美 | 色素色在线综合| 成人国产一区二区三区精品| 精品在线你懂的| 久久疯狂做爰流白浆xx| 强制捆绑调教一区二区| 日本不卡视频在线| 久久er精品视频| 国内精品自线一区二区三区视频| 日韩经典一区二区| 美洲天堂一区二卡三卡四卡视频| 男女性色大片免费观看一区二区| 日韩高清欧美激情| 久久精品国产成人一区二区三区| 久久99精品久久久久| 久久er精品视频| 成人午夜视频福利| 色网站国产精品| 欧美一区二区三区公司| 亚洲午夜久久久久久久久久久| 亚洲日本中文字幕区| 亚洲成人av一区| 精品亚洲免费视频| 99久免费精品视频在线观看| 色噜噜夜夜夜综合网| 欧美一区二区三区四区五区| 欧美xxxx老人做受| 一区二区成人在线观看| 精品一区二区在线视频| 99国产精品视频免费观看| 欧美另类变人与禽xxxxx| 国产日产欧美一区| 亚洲成人1区2区| 成人高清在线视频| 欧美日韩成人一区| 国产精品无人区| 五月婷婷综合激情| av不卡免费电影| 久久蜜臀中文字幕| 麻豆久久久久久| 欧美日韩国产123区| 亚洲欧洲精品天堂一级| 激情欧美日韩一区二区| 欧美伊人精品成人久久综合97 | 另类专区欧美蜜桃臀第一页| 99re这里都是精品| 国产亚洲成aⅴ人片在线观看| 免费在线观看视频一区| 欧美体内she精视频| 国产无一区二区| 激情五月婷婷综合网| 91精品麻豆日日躁夜夜躁| 亚洲一二三区不卡| 91豆麻精品91久久久久久| 国产精品电影院| 国产伦精一区二区三区| 91精品国产综合久久久蜜臀粉嫩 | 国产视频911| 国产精品99久久久久久久女警| 欧美一级片在线| 日韩av午夜在线观看| 日韩一区二区三区电影| 美洲天堂一区二卡三卡四卡视频| 欧美日韩一区二区在线观看| 性欧美大战久久久久久久久| 欧美精品三级在线观看| 亚洲成av人片观看| 制服丝袜中文字幕亚洲| 麻豆国产一区二区| 国产精品你懂的在线欣赏| 欧美精彩视频一区二区三区| 午夜天堂影视香蕉久久| 色诱亚洲精品久久久久久| 国产日韩精品久久久| www.日韩在线| 经典三级视频一区| 国产精品久久久久影院老司 | aaa亚洲精品| 午夜欧美视频在线观看| 久久天天做天天爱综合色| 99久久国产综合精品女不卡| 亚洲午夜久久久久久久久久久| 欧美成人精精品一区二区频| 福利一区二区在线| 天堂精品中文字幕在线| 欧美国产一区二区在线观看 |