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

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

?? testimgtag1a.java

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

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

    /*
     * Testing ImgTag.
     */

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

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

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

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

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

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

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

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

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



}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品夜夜夜夜久久| 91精品国产手机| 国产喷白浆一区二区三区| 精品一区二区三区在线播放| 欧美大片国产精品| 国产九九视频一区二区三区| 欧美极品少妇xxxxⅹ高跟鞋| 成人99免费视频| 一个色在线综合| 欧美精品精品一区| 久久国产精品露脸对白| 久久综合色天天久久综合图片| 国产精品一区在线观看乱码| 中文字幕一区免费在线观看| 欧美影院一区二区| 蜜桃视频一区二区| 欧美国产精品中文字幕| 在线观看91精品国产入口| 丝袜a∨在线一区二区三区不卡| 欧美福利一区二区| 国产一区二区日韩精品| 一区二区三区在线观看动漫| 欧美一级免费大片| 不卡一卡二卡三乱码免费网站| 亚洲一区二区av电影| 亚洲精品一区二区三区四区高清 | 欧美人伦禁忌dvd放荡欲情| 日日夜夜免费精品| 欧美激情资源网| 欧美久久一二区| 国产成人免费视频精品含羞草妖精| 亚洲色图清纯唯美| 国产精品福利一区| 欧美高清hd18日本| 97久久精品人人澡人人爽| 午夜精品福利一区二区三区av| 久久综合资源网| 在线视频国内一区二区| 国产毛片精品视频| 丝袜亚洲另类欧美| 亚洲天堂网中文字| 精品国产免费久久| 欧美午夜一区二区| av亚洲精华国产精华| 久久黄色级2电影| 亚洲免费电影在线| 久久亚洲精品小早川怜子| 欧美日韩精品一区视频| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产精品网友自拍| 欧美一卡二卡在线观看| 色网综合在线观看| 风间由美中文字幕在线看视频国产欧美 | 亚洲精品一二三四区| wwww国产精品欧美| 在线不卡中文字幕播放| 色呦呦国产精品| 国产精品影视网| 麻豆成人久久精品二区三区小说| 一区二区欧美精品| 国产精品不卡在线| 亚洲桃色在线一区| 中文乱码免费一区二区| 2024国产精品| 日韩欧美国产综合| 欧美精品三级在线观看| 欧美日韩中文字幕一区二区| 一本一道波多野结衣一区二区| 粉嫩蜜臀av国产精品网站| 国产一区二区三区不卡在线观看 | av电影一区二区| 国产精品99久久久久久宅男| 九九国产精品视频| 久久精品久久精品| 青青草原综合久久大伊人精品 | 国产成人精品一区二区三区网站观看| 免费国产亚洲视频| 麻豆精品蜜桃视频网站| 久久精品国产77777蜜臀| 美女一区二区视频| 韩国一区二区在线观看| 老司机午夜精品| 韩国av一区二区三区| 狠狠色2019综合网| 国产成人夜色高潮福利影视| 成人免费视频网站在线观看| 国产成人av电影在线观看| 粉嫩在线一区二区三区视频| 不卡的av网站| 在线亚洲一区观看| 91 com成人网| 精品国产91乱码一区二区三区 | 日韩制服丝袜av| 蜜臀久久久99精品久久久久久| 精品在线视频一区| 粗大黑人巨茎大战欧美成人| 91婷婷韩国欧美一区二区| 欧美最新大片在线看| 制服丝袜亚洲网站| 久久久久亚洲蜜桃| 亚洲天堂精品在线观看| 亚洲第一成人在线| 狠狠色丁香九九婷婷综合五月| 成人晚上爱看视频| 2021国产精品久久精品| 亚洲国产精品传媒在线观看| 亚洲品质自拍视频| 日本不卡一区二区| 国产精品一二三在| 在线观看一区二区视频| 精品久久五月天| 综合在线观看色| 日本va欧美va欧美va精品| 国产91精品精华液一区二区三区 | 精品一区二区三区欧美| 成人激情av网| 51精品秘密在线观看| 国产午夜亚洲精品午夜鲁丝片| 一片黄亚洲嫩模| 韩国成人在线视频| 日本韩国一区二区| 精品国产凹凸成av人导航| 亚洲欧洲制服丝袜| 久久99热国产| 一本色道久久综合狠狠躁的推荐| 欧美一区二区女人| 亚洲免费视频中文字幕| 久久99精品久久久久久国产越南| 91浏览器在线视频| 精品sm在线观看| 亚洲不卡一区二区三区| 成人免费高清视频| 日韩三级视频在线看| 亚洲综合色噜噜狠狠| 国产69精品久久久久毛片| 欧美一激情一区二区三区| 亚洲欧洲国产日本综合| 国产原创一区二区三区| 欧美日韩免费不卡视频一区二区三区| 国产精品天天看| 精品亚洲aⅴ乱码一区二区三区| 欧美丝袜自拍制服另类| 中文字幕亚洲成人| 国产在线精品一区二区不卡了| 欧美夫妻性生活| 亚洲国产成人av网| 色www精品视频在线观看| 国产精品毛片无遮挡高清| 免费在线欧美视频| 欧美性色黄大片| 亚洲精品免费一二三区| 成人动漫一区二区| 国产欧美一区二区精品秋霞影院| 另类小说视频一区二区| 在线不卡中文字幕播放| 亚洲福利一区二区| 欧美性感一类影片在线播放| 亚洲日本电影在线| 一本久久精品一区二区| 亚洲欧美另类久久久精品2019| av在线不卡观看免费观看| 三级影片在线观看欧美日韩一区二区| 91美女片黄在线观看| 国产精品欧美精品| youjizz国产精品| 中文字幕精品一区二区精品绿巨人 | 高清成人免费视频| 国产视频不卡一区| 粉嫩aⅴ一区二区三区四区| 久久综合狠狠综合久久激情 | 亚洲精品国产精华液| 色综合激情久久| 亚洲综合激情另类小说区| 欧洲av一区二区嗯嗯嗯啊| 亚洲另类色综合网站| 在线观看国产一区二区| 伊人开心综合网| 欧美伊人久久大香线蕉综合69| 夜夜精品浪潮av一区二区三区| 欧美性大战久久久久久久蜜臀| 夜夜嗨av一区二区三区网页| 欧美日韩久久久一区| 免费高清在线视频一区·| 日韩欧美亚洲一区二区| 蜜桃免费网站一区二区三区| 日韩女优电影在线观看| 国产大片一区二区| 中文字幕一区二区三区在线播放 | 精品剧情在线观看| 国产精品一区二区黑丝| 亚洲欧美偷拍另类a∨色屁股| 欧美体内she精高潮| 久久99九九99精品| 国产精品视频在线看| 在线视频一区二区免费| 三级一区在线视频先锋 | 国产成人在线色| 亚洲猫色日本管| 欧美一卡二卡三卡| 岛国av在线一区|