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

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

?? testimgtag5a.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: TestImgTag5a.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.HashMap;
import java.util.Locale;

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.ImgTag</code> class.
 *
 */
public class TestImgTag5a extends JspTestCase {

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

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

    /*
     * Testing ImgTag.
     */

//--------Testing attributes using page------

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

    public void testImgSrcNamePropertyNoScope() 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("paramPropertyMapNoScope", sbft, PageContext.REQUEST_SCOPE);
       runMyTest("testImgSrcNamePropertyNoScope", "");
    }

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

    public void testImgSrcNamePropertyApplicationScope() 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("paramPropertyMapApplicationScope", sbft, PageContext.APPLICATION_SCOPE);
       runMyTest("testImgSrcNamePropertyApplicationScope", "");
    }

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

    public void testImgSrcNamePropertySessionScope() 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("paramPropertyMapSessionScope", sbft, PageContext.SESSION_SCOPE);
       runMyTest("testImgSrcNamePropertySessionScope", "");
    }

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

    public void testImgSrcNamePropertyRequestScope() 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("paramPropertyMapRequestScope", sbft, PageContext.REQUEST_SCOPE);
       runMyTest("testImgSrcNamePropertyRequestScope", "");
    }



}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三区免费完整视频在线观看| 香蕉加勒比综合久久| 欧美精品丝袜久久久中文字幕| 国产麻豆视频一区二区| 亚洲美女区一区| 久久久美女艺术照精彩视频福利播放| 在线精品亚洲一区二区不卡| 成人精品一区二区三区四区| 久久99久久久欧美国产| 偷拍与自拍一区| 一区二区三区国产精品| 欧美激情资源网| 久久色.com| 欧美电影免费观看完整版| 在线成人小视频| 欧美色国产精品| 在线亚洲免费视频| 91网站黄www| 不卡一区在线观看| 精品亚洲aⅴ乱码一区二区三区| 亚洲成人av福利| 亚洲一区二区影院| 亚洲欧美成人一区二区三区| 中国色在线观看另类| 久久久精品中文字幕麻豆发布| 精品少妇一区二区三区免费观看 | 欧美日韩在线直播| 91免费观看在线| 91免费观看在线| 99久久精品国产一区| 北岛玲一区二区三区四区| 福利一区二区在线观看| 国产福利一区二区| 国产91精品一区二区麻豆网站| 久久69国产一区二区蜜臀| 麻豆精品久久精品色综合| 青青国产91久久久久久 | 日本免费新一区视频| 日韩专区欧美专区| 日本午夜精品一区二区三区电影| 日韩精品视频网| 免费xxxx性欧美18vr| 蜜臀av一区二区在线免费观看| 日本不卡免费在线视频| 久久精品二区亚洲w码| 精品一区二区三区在线播放视频 | 精品欧美一区二区三区精品久久| 日韩视频在线观看一区二区| 亚洲精品一线二线三线 | 人人超碰91尤物精品国产| 日韩国产欧美一区二区三区| 日韩av二区在线播放| 久久99精品视频| 国产一区中文字幕| 高清视频一区二区| 色婷婷激情久久| 欧美日韩一区二区三区免费看| 69av一区二区三区| 久久久久久久久久久久电影| 欧美国产一区二区| 一区二区欧美在线观看| 午夜精品福利视频网站| 六月丁香婷婷久久| 成人动漫视频在线| 欧美在线观看视频在线| 在线综合+亚洲+欧美中文字幕| 日韩免费视频一区二区| 国产精品沙发午睡系列990531| 欧美一区二区三区在线| 精品久久国产字幕高潮| 亚洲国产精品激情在线观看| 亚洲靠逼com| 精品在线播放午夜| 91美女片黄在线观看91美女| 欧美日韩午夜影院| 久久夜色精品国产噜噜av| 亚洲精品视频一区二区| 久久精品99国产精品| 色综合视频在线观看| 日韩一级二级三级精品视频| 中文字幕在线观看一区二区| 婷婷六月综合网| 国产91清纯白嫩初高中在线观看 | 亚洲欧美日韩在线播放| 奇米一区二区三区| www.在线成人| 5月丁香婷婷综合| 国产精品国产成人国产三级| 日韩av成人高清| 91论坛在线播放| 久久人人超碰精品| 婷婷综合久久一区二区三区| 99久久精品免费观看| 精品国产乱码久久久久久免费| 一区二区三区日本| 国产成人免费高清| 精品乱码亚洲一区二区不卡| 亚洲精品成人精品456| 国产精品一线二线三线精华| 88在线观看91蜜桃国自产| 亚洲欧美色一区| 高清beeg欧美| 精品久久久久av影院| 婷婷夜色潮精品综合在线| 99久久伊人久久99| 欧美电影免费观看高清完整版在 | 精品一区二区三区免费观看| 欧美三区在线视频| 亚洲欧美激情在线| 成人综合日日夜夜| 精品盗摄一区二区三区| 日本午夜一区二区| 欧美三级蜜桃2在线观看| 亚洲婷婷国产精品电影人久久| 国产激情91久久精品导航| 日韩欧美一级二级三级久久久| 一区二区三区免费观看| 97se亚洲国产综合在线| 国产日产欧产精品推荐色| 紧缚捆绑精品一区二区| 91精品一区二区三区久久久久久| 亚洲无人区一区| 欧美午夜影院一区| 一本久久精品一区二区| 69堂成人精品免费视频| 一区二区久久久久| 一本大道av伊人久久综合| 国产蜜臀97一区二区三区| 国产乱码精品一区二区三| 亚洲精品在线免费观看视频| 精品在线你懂的| 国产剧情一区在线| 亚洲综合一区二区| 国产亚洲欧美日韩日本| 8x福利精品第一导航| 韩国av一区二区三区| 国产欧美日韩激情| 一本大道av伊人久久综合| 亚洲影视资源网| 欧美精品一区二区在线观看| 色婷婷综合久久久| 精品亚洲成a人在线观看| 亚洲人成在线播放网站岛国| 日韩精品一区二区三区三区免费 | 日韩国产精品久久| 亚洲视频免费在线| 国产日韩欧美一区二区三区乱码 | 亚洲与欧洲av电影| 亚洲六月丁香色婷婷综合久久| 欧美日韩美少妇| 欧美三级电影在线观看| av成人老司机| 在线一区二区三区四区| 欧美日韩视频一区二区| 国产精品99久久久| 波多野结衣中文一区| 久久99精品久久久久久| 日韩精品欧美精品| 欧美成人女星排行榜| 欧美一区二区视频在线观看2022 | 国产精品免费视频网站| 亚洲视频每日更新| voyeur盗摄精品| 国产视频一区在线播放| 欧美经典三级视频一区二区三区| 亚洲品质自拍视频网站| 伊人开心综合网| 亚洲欧美日韩国产成人精品影院 | 首页国产欧美久久| 日韩精品欧美精品| 91精品一区二区三区久久久久久 | 亚洲一区二区三区视频在线播放| 99久久国产综合精品色伊| 亚洲va国产va欧美va观看| 久久久国产午夜精品 | 久久综合五月天婷婷伊人| 丁香啪啪综合成人亚洲小说| 亚洲日本电影在线| 欧美一级在线观看| 成人免费视频播放| 三级一区在线视频先锋| 久久久久久亚洲综合| 日本丰满少妇一区二区三区| 久久国产三级精品| 一区二区在线免费观看| 精品国产髙清在线看国产毛片| 91丝袜国产在线播放| 久久福利资源站| 夜夜亚洲天天久久| 亚洲国产精品二十页| 欧美久久高跟鞋激| av电影在线不卡| 精品亚洲porn| 视频精品一区二区| 亚洲欧洲三级电影| 精品电影一区二区| 91精品国产综合久久小美女| 成人激情小说乱人伦| 韩国午夜理伦三级不卡影院| 亚洲在线中文字幕|