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

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

?? testlinktag1.java

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

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

    /*
     * Testing LinkTag.
     */

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲乱码一区二区三区在线观看| 久久精品国产在热久久| 成人毛片视频在线观看| 久久综合色播五月| 国产黄色精品网站| 亚洲国产成人在线| 91视频精品在这里| 三级精品在线观看| 欧美成人在线直播| 99精品偷自拍| 亚洲电影你懂得| 欧美变态tickling挠脚心| 国产精品99久久久久久久vr| 国产精品二三区| 欧洲精品一区二区| 久久精品国产秦先生| 国产精品美女一区二区三区| 欧美喷潮久久久xxxxx| 日韩影院免费视频| 国产三级精品三级在线专区| 色综合久久88色综合天天 | 亚洲乱码国产乱码精品精小说 | 欧美国产日本视频| 欧美怡红院视频| 国产综合色精品一区二区三区| 国产精品久久看| 555夜色666亚洲国产免| 国产ts人妖一区二区| 亚洲成人免费影院| 国产日韩欧美不卡在线| 91久久精品国产91性色tv| 青青草视频一区| 亚洲人成7777| 久久综合网色—综合色88| 欧美中文字幕一二三区视频| 精品亚洲国产成人av制服丝袜 | 精品一区二区精品| 一区二区在线观看不卡| 久久亚区不卡日本| 欧美精品v国产精品v日韩精品| 国产精品99精品久久免费| 亚洲成av人在线观看| 欧美韩日一区二区三区| 欧美一级片免费看| 色噜噜久久综合| 国产乱码字幕精品高清av| 亚洲bt欧美bt精品| 亚洲色图视频免费播放| 久久精品视频免费| 欧美一级国产精品| 欧美日韩在线免费视频| 成人动漫av在线| 国产不卡视频一区二区三区| 亚洲国产综合色| 综合网在线视频| 欧美极品xxx| 久久久久综合网| 日韩区在线观看| 欧美另类变人与禽xxxxx| 色猫猫国产区一区二在线视频| 粉嫩一区二区三区性色av| 久久99国产精品免费网站| 日日摸夜夜添夜夜添精品视频| 亚洲精品videosex极品| 亚洲欧洲综合另类在线| 国产精品免费网站在线观看| 久久久久综合网| 久久久久九九视频| 亚洲精品一区二区在线观看| 欧美一级欧美三级在线观看| 欧美久久久久久蜜桃| 欧美人妖巨大在线| 欧美撒尿777hd撒尿| 欧美三级蜜桃2在线观看| 欧美伊人久久久久久久久影院| 91热门视频在线观看| 91蝌蚪porny九色| 日本黄色一区二区| 欧美午夜精品久久久| 欧美性大战久久久久久久蜜臀| 91搞黄在线观看| 欧美日韩精品一区二区三区四区 | 亚洲国产成人av网| 午夜精品一区二区三区免费视频 | 国产精品乱人伦中文| 国产精品久久看| 亚洲男人都懂的| 亚洲成人av一区二区| 天天影视网天天综合色在线播放| 午夜激情一区二区三区| 美女网站在线免费欧美精品| 久久99精品国产.久久久久| 国产一区二区主播在线| 成人午夜av影视| 色久综合一二码| 欧美福利电影网| 久久精子c满五个校花| 国产精品短视频| 亚洲二区在线视频| 久久99国产精品久久99果冻传媒| 国内外成人在线| 色久综合一二码| 日韩欧美亚洲国产另类 | 国产农村妇女毛片精品久久麻豆| 亚洲欧洲成人自拍| 亚洲国产精品影院| 黄色资源网久久资源365| 成人av资源网站| 678五月天丁香亚洲综合网| 久久女同精品一区二区| 亚洲私人黄色宅男| 蜜桃视频在线观看一区| 成人动漫视频在线| 欧美一区二区日韩| 国产精品久久久久影视| 日韩精品一区第一页| 顶级嫩模精品视频在线看| 欧美三级视频在线播放| 欧美国产国产综合| 婷婷综合五月天| 成人在线视频一区| 欧美美女喷水视频| 国产精品网友自拍| 久久精品理论片| 欧美系列日韩一区| 国产视频一区二区三区在线观看| 一区二区三区在线免费播放| 日韩一区精品字幕| 色综合天天综合网天天狠天天 | 亚洲一区二区在线观看视频 | 欧美国产日韩一二三区| 五月激情综合色| 99re这里只有精品首页| 欧美成人vr18sexvr| 亚洲一二三专区| 99久久国产免费看| 久久综合成人精品亚洲另类欧美| 亚洲主播在线播放| va亚洲va日韩不卡在线观看| 精品99久久久久久| 日韩av电影免费观看高清完整版在线观看| 成人丝袜18视频在线观看| 欧美成人vps| 日韩一区精品视频| 欧美丝袜丝交足nylons图片| 国产精品天天看| 狠狠久久亚洲欧美| 日韩精品一区二区三区视频播放 | 日韩视频一区在线观看| 亚洲国产另类av| 精品视频全国免费看| 国产精品久久久久久久久晋中| 精品一区二区国语对白| 日韩一区二区三区av| 天堂一区二区在线| 欧美午夜片在线看| 一区二区三区在线看| 99精品久久只有精品| 国产人成一区二区三区影院| 韩国v欧美v日本v亚洲v| 精品国产电影一区二区| 麻豆免费看一区二区三区| 日韩一区二区三区视频在线观看| 亚洲成av人综合在线观看| 欧美色图片你懂的| 午夜欧美视频在线观看 | 欧美一级专区免费大片| 日韩成人伦理电影在线观看| 欧美视频一区二区三区在线观看 | 人人爽香蕉精品| 9191国产精品| 久久机这里只有精品| 日韩免费性生活视频播放| 久久国产生活片100| 久久综合色一综合色88| 国产成都精品91一区二区三| 中文一区一区三区高中清不卡| 波多野结衣中文字幕一区 | 亚洲综合成人在线| 欧美三级欧美一级| 久久精品久久久精品美女| 久久精品夜夜夜夜久久| 成人h动漫精品一区二| 亚洲精品国产成人久久av盗摄| 在线免费观看不卡av| 日韩黄色小视频| 久久综合精品国产一区二区三区| 国产激情视频一区二区三区欧美| 国产精品大尺度| 欧美日韩一区二区欧美激情 | 极品少妇xxxx偷拍精品少妇| 国产校园另类小说区| 99re热这里只有精品免费视频| 亚洲免费高清视频在线| 欧美一区二区视频观看视频| 国内精品久久久久影院色| 中文字幕亚洲综合久久菠萝蜜| 欧洲一区在线电影| 久久成人久久鬼色| 国产精品久久久久久久第一福利|