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

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

?? testmessagetag2.java

?? struts的源代碼
?? JAVA
字號:
/*
 * $Id: TestMessageTag2.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.bean;

import java.util.Locale;

import javax.servlet.jsp.PageContext;

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

import org.apache.cactus.WebResponse;
import org.apache.struts.Globals;
import org.apache.struts.taglib.SimpleBeanForTesting;
import org.apache.struts.taglib.TaglibTestBase;

/**
  * These tests attempt to cover every single possible configuration of the
  * org.apache.struts.taglib.bean.MessageTag
  *
  * I've tried to describe what I'm testing as best as possible by the method names.
  * To see how I'm testing, refer to the jsp file that these tests forward to.
  *
  * All of these tests depend on a value being correctly written on the repose, then
  * checked here in endXXX method.
  *
  */
public class TestMessageTag2 extends TaglibTestBase {

    protected final static String TEST_KEY = "BeanKey";
    protected final static String TEST_VAL = "Testing Message 1 2";

    public TestMessageTag2(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[] {TestMessageTag2.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(TestMessageTag2.class);
    }

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

        private void formatAndTest(String compare, String output) {
                //fix for introduced carriage return / line feeds
                output = replace(output,"\r","");
                output = replace(output,"\n","");
                output = output.trim();
                //System.out.println("Testing [" + compare + "] == [" + output + "]");
            assertEquals(compare, output);
        }

    /*
     * ===========================================================
     * Testing MessageTag (these comments serve as a divider of
     *                     functionality being tested)
     *
     * Section: 2 Args
     * Locale:  (default)
     * ===========================================================
     */


    public void testMessageTag2ArgKeyNoScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeyNoScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeyNoScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgKeyApplicationScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeyApplicationScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeyApplicationScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgKeySessionScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeySessionScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeySessionScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgKeyRequestScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeyRequestScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeyRequestScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }


    public void testMessageTag2ArgKeyNoScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeyNoScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeyNoScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgKeyApplicationScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeyApplicationScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeyApplicationScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgKeySessionScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeySessionScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeySessionScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgKeyRequestScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgKeyRequestScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgKeyRequestScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }



    public void testMessageTag2ArgNameNoScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameNoScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameNoScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNameApplicationScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameApplicationScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameApplicationScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNameSessionScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameSessionScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameSessionScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNameRequestScopeDefaultBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameRequestScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameRequestScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }


    public void testMessageTag2ArgNameNoScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameNoScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameNoScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNameApplicationScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameApplicationScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameApplicationScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNameSessionScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameSessionScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameSessionScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNameRequestScopeAlternateBundle() throws Exception {
     runMyTest("testMessageTag2ArgNameRequestScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNameRequestScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }




    public void testMessageTag2ArgNamePropertyNoScopeDefaultBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertyNoScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertyNoScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNamePropertyApplicationScopeDefaultBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"), PageContext.APPLICATION_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertyApplicationScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertyApplicationScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNamePropertySessionScopeDefaultBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"), PageContext.SESSION_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertySessionScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertySessionScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNamePropertyRequestScopeDefaultBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("default.bundle.message.2"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertyRequestScopeDefaultBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertyRequestScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }


    public void testMessageTag2ArgNamePropertyNoScopeAlternateBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.2"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertyNoScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertyNoScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNamePropertyApplicationScopeAlternateBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.2"), PageContext.APPLICATION_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertyApplicationScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertyApplicationScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNamePropertySessionScopeAlternateBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.2"), PageContext.SESSION_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertySessionScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertySessionScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }

    public void testMessageTag2ArgNamePropertyRequestScopeAlternateBundle() throws Exception {
        pageContext.setAttribute("key", new SimpleBeanForTesting("alternate.bundle.message.2"), PageContext.REQUEST_SCOPE);
     runMyTest("testMessageTag2ArgNamePropertyRequestScopeAlternateBundle", new Locale("",""));
        }
        public void endMessageTag2ArgNamePropertyRequestScopeAlternateBundle(WebResponse response){
                formatAndTest(TEST_VAL, response.getText());
        }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品五月天| 亚洲人一二三区| 久久福利视频一区二区| 欧美一区二区三区不卡| 激情六月婷婷综合| 国产日产欧产精品推荐色| 成人免费电影视频| 亚洲精品乱码久久久久久久久| 日本道色综合久久| 奇米精品一区二区三区在线观看一| 91精品国产欧美日韩| 国产精品一区在线观看乱码| 欧美激情综合五月色丁香小说| 91一区一区三区| 亚洲成人自拍网| 久久综合一区二区| 91女人视频在线观看| 日韩精品成人一区二区三区| 日韩欧美高清在线| 国产成人精品影视| 一区二区三区四区高清精品免费观看| 欧美久久久久久久久久| 国产精品99久久久久| 亚洲男人电影天堂| 制服丝袜激情欧洲亚洲| 韩国欧美一区二区| 亚洲三级在线播放| 日韩一区二区高清| 91在线观看高清| 久久国产精品免费| 亚洲欧美激情小说另类| 精品久久久久久综合日本欧美| 99久久精品久久久久久清纯| 日韩经典中文字幕一区| 国产精品伦一区| 欧美日韩视频不卡| 成人毛片视频在线观看| 婷婷夜色潮精品综合在线| 国产精品久久久久久久久久久免费看 | 美女久久久精品| 国产精品剧情在线亚洲| 日韩欧美国产午夜精品| 一本到不卡免费一区二区| 国产专区欧美精品| 青娱乐精品视频在线| 亚洲激情六月丁香| 国产亚洲污的网站| 欧美成人激情免费网| 欧美性猛交xxxxxx富婆| 成人免费视频app| 久久精品国产精品青草| 亚洲成人av一区二区三区| 国产精品毛片大码女人| 26uuu欧美日本| 精品视频123区在线观看| 91美女在线看| 成人av电影免费在线播放| 国产一区二区导航在线播放| 日本成人中文字幕| 香蕉影视欧美成人| 亚洲五月六月丁香激情| 一区二区三区国产| 亚洲欧美自拍偷拍| 中文字幕一区二区三区色视频| 精品国产1区二区| 日韩欧美在线不卡| 欧美精品精品一区| 欧美综合在线视频| 欧美视频自拍偷拍| 在线精品亚洲一区二区不卡| 色哟哟欧美精品| 一本久久a久久免费精品不卡| 99久久99久久综合| 色综合久久久久综合体| 日本国产一区二区| 欧美午夜精品电影| 欧美性色aⅴ视频一区日韩精品| 97久久超碰精品国产| av在线播放不卡| 91年精品国产| 91精品国产91热久久久做人人| 色综合久久中文综合久久97| 91丨九色porny丨蝌蚪| 日韩欧美国产精品| 蜜桃久久久久久久| 国产一区二区在线观看视频| 国产亚洲一本大道中文在线| 欧美国产精品一区二区| 国产精品蜜臀在线观看| 中文字幕亚洲一区二区va在线| 久久99精品久久久久久国产越南| 91免费观看视频| 精品欧美一区二区久久| 色哟哟国产精品| 成人免费视频caoporn| 97久久久精品综合88久久| 欧美在线你懂得| 4438x亚洲最大成人网| 2023国产精华国产精品| 久久精品视频免费| 亚洲欧美成人一区二区三区| 偷拍日韩校园综合在线| 国产原创一区二区| 99视频在线精品| 欧美伦理影视网| 久久久天堂av| 一区二区三区精品在线观看| 久久99国产精品麻豆| 成人伦理片在线| 69av一区二区三区| 国产精品理论片在线观看| 午夜私人影院久久久久| 国产精品一二二区| 欧美在线一区二区| 久久精品人人做人人爽人人| 一区二区免费在线播放| 精品综合免费视频观看| 色综合一区二区| 26uuu欧美| 亚洲高清免费视频| 国产成人h网站| 69堂精品视频| 亚洲女同ⅹxx女同tv| 精品一区二区三区视频| 欧美午夜精品一区| 国产精品色哟哟| 免费成人在线观看视频| 91电影在线观看| 久久精品夜夜夜夜久久| 婷婷国产在线综合| jlzzjlzz亚洲女人18| 精品国产免费一区二区三区四区| 一区二区欧美国产| 不卡高清视频专区| 亚洲精品一区二区三区福利| 亚洲h在线观看| 91丝袜呻吟高潮美腿白嫩在线观看| 欧美一级二级三级乱码| 亚洲一区二区三区视频在线播放| 丁香婷婷综合五月| 精品免费视频.| 午夜精品一区在线观看| 91日韩在线专区| 成人免费一区二区三区视频| 国内成人免费视频| 精品国精品自拍自在线| 日韩国产欧美三级| 欧美精品aⅴ在线视频| 一区二区三区在线免费播放| 成人app下载| 中文字幕av一区二区三区免费看 | 国产精品网站一区| 国内精品久久久久影院一蜜桃| 91精品久久久久久久99蜜桃 | 麻豆91精品视频| 欧美日韩亚洲丝袜制服| 亚洲一区二区欧美日韩| 在线亚洲免费视频| 一区二区在线观看免费视频播放| 99国产精品久| 亚洲免费在线电影| 一本色道久久综合亚洲精品按摩| ...av二区三区久久精品| 白白色亚洲国产精品| 国产精品久久久久久久久动漫 | 老司机午夜精品| 日韩欧美国产一区二区三区| 免费xxxx性欧美18vr| 日韩一区二区三区视频在线| 免费成人在线观看视频| 欧美一区二区精品在线| 久久国产尿小便嘘嘘尿| 精品久久久久99| 国产精品91xxx| 中文字幕在线不卡视频| 一本色道亚洲精品aⅴ| 亚洲高清不卡在线观看| 日韩丝袜情趣美女图片| 国产一区二区三区| 中文字幕第一区二区| 色偷偷久久人人79超碰人人澡| 亚洲一区二区三区在线播放| 欧美一区二区三区四区视频| 久久精品国产精品亚洲精品| 国产日韩综合av| 91搞黄在线观看| 欧美aaaaaa午夜精品| 日本一区二区三区在线不卡| 色综合视频在线观看| 日韩成人免费在线| 久久久精品tv| 欧美在线观看视频一区二区| 玖玖九九国产精品| 国产精品免费视频网站| 91国偷自产一区二区开放时间 | 免费人成精品欧美精品| ww亚洲ww在线观看国产| 99这里都是精品| 日韩精品免费专区| 国产免费观看久久|