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

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

?? testmessagetag4.java

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

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

    public TestMessageTag4(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[] {TestMessageTag4.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(TestMessageTag4.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/TestMessageTag4.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: 4 Args
     * Locale:  (default)
     * ===========================================================
     */


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

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

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

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


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

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

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

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



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

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

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

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


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

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

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

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




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

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

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

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


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

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

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

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


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品黑人久久久| 一区二区在线观看免费视频播放| 亚洲免费大片在线观看| 国内精品伊人久久久久av影院| 激情五月婷婷综合网| 欧美午夜精品久久久久久超碰| 欧美激情一区二区三区| 国产成人精品免费在线| 精品国产a毛片| 精品综合久久久久久8888| 日韩视频一区二区三区在线播放| 欧美精品一区二区三区很污很色的| 久久精品一级爱片| 高清在线成人网| 国产精品麻豆欧美日韩ww| 99久久精品情趣| 一区二区激情小说| 欧美人xxxx| 成人一区二区视频| 亚洲青青青在线视频| 欧美日韩专区在线| 麻豆精品视频在线观看免费| 精品免费视频.| www.日韩大片| 日本不卡视频在线观看| 精品免费国产一区二区三区四区| 蜜桃一区二区三区在线观看| 精品国产乱码久久| 色美美综合视频| 亚洲国产岛国毛片在线| 欧美中文字幕一区二区三区| 久久精品国产亚洲a| 自拍偷拍亚洲激情| 日韩美一区二区三区| 在线视频国产一区| 国产精品影视天天线| 自拍偷拍亚洲激情| 欧美精品色综合| 99精品欧美一区| 国产激情精品久久久第一区二区| 亚洲一区在线电影| 国产精品天美传媒沈樵| 久久午夜电影网| 99久久久无码国产精品| 五月婷婷色综合| 亚洲综合成人在线| 中文字幕欧美日韩一区| 欧美一区二区视频免费观看| 91黄色小视频| 精品一区中文字幕| 伊人色综合久久天天| 成人免费在线播放视频| 久久精品视频网| 日韩免费观看高清完整版在线观看| 91捆绑美女网站| 日本三级韩国三级欧美三级| 亚洲欧美韩国综合色| 亚洲另类春色校园小说| 日韩三级免费观看| 欧美在线高清视频| 国产综合色在线视频区| 极品销魂美女一区二区三区| 亚洲成人手机在线| 亚洲国产成人av网| 国产日韩欧美制服另类| 国产精品美女久久久久久久网站| 18成人在线视频| 日日夜夜精品免费视频| 亚洲天堂av一区| 偷拍与自拍一区| 六月婷婷色综合| 成人av片在线观看| 欧美日韩你懂得| 国产精品日日摸夜夜摸av| 日韩欧美综合一区| 91麻豆精品国产91久久久久久久久 | 欧美一级片在线| 在线视频一区二区三| 欧美精品18+| 国产精品大尺度| 一二三区精品视频| 狠狠狠色丁香婷婷综合激情 | 在线观看三级视频欧美| 日韩免费一区二区| 中文字幕第一区综合| 亚洲成人精品一区二区| 狠狠色丁香婷婷综合| 91黄视频在线| 欧美电影一区二区三区| 国产精品理伦片| 视频在线观看一区二区三区| 色综合色综合色综合色综合色综合 | 精品国内二区三区| 伊人色综合久久天天人手人婷| 亚洲成人av免费| 国产精品一二三| 色综合激情久久| 亚洲免费视频中文字幕| 成人性生交大片免费| 91精品久久久久久久久99蜜臂| 九九国产精品视频| 精品国产一区久久| 亚洲国产aⅴ成人精品无吗| 国产一区二区三区蝌蚪| 久久久久久久国产精品影院| 亚洲精品日韩一| 亚洲超碰97人人做人人爱| 欧美午夜精品一区二区三区| 综合自拍亚洲综合图不卡区| 91在线精品一区二区| 亚洲精品高清在线观看| 国产精品456| 国产欧美日韩卡一| 成人黄动漫网站免费app| 日本一区二区免费在线 | 精品少妇一区二区三区日产乱码 | 国产伦精品一区二区三区在线观看| 亚洲国产精品久久久久秋霞影院 | 亚洲精品国产视频| 99精品在线免费| 亚洲一二三区不卡| 精品处破学生在线二十三| 国产成人综合在线播放| 日韩精品中文字幕在线不卡尤物 | 国产精品白丝jk黑袜喷水| 制服丝袜一区二区三区| 精品亚洲成a人| 亚洲欧美综合色| 91精品国产91久久久久久最新毛片 | 国产一区美女在线| 洋洋av久久久久久久一区| 精品国产91九色蝌蚪| 色综合天天狠狠| 久久国产精品免费| 夜夜嗨av一区二区三区四季av| 久久亚洲精华国产精华液| 色一区在线观看| 韩国一区二区在线观看| 中日韩免费视频中文字幕| 欧美日韩日日摸| 色婷婷av一区二区三区之一色屋| 国产传媒欧美日韩成人| 蜜臀av一区二区在线免费观看| 亚洲欧美偷拍卡通变态| 国产精品久久久久一区二区三区 | 成人禁用看黄a在线| 99久久免费精品| 精品影院一区二区久久久| 亚洲一级二级在线| 国产欧美视频一区二区| 精品欧美久久久| 欧美日韩一区二区三区免费看 | 亚洲一区国产视频| 中文字幕一区日韩精品欧美| 精品国产凹凸成av人导航| 欧美日韩夫妻久久| 欧美男女性生活在线直播观看| 欧美亚洲综合久久| 91精品国产综合久久久久久| 91在线免费视频观看| 国产精品情趣视频| 成人aaaa免费全部观看| 一本一道综合狠狠老| 欧美在线一区二区三区| 91精品一区二区三区久久久久久 | 日韩欧美一级二级三级| 精品sm在线观看| 亚洲国产一区二区a毛片| 日日夜夜精品视频天天综合网| 国产成人午夜精品5599 | 天堂在线亚洲视频| 国产综合色精品一区二区三区| 成人av电影免费观看| 欧美日韩不卡一区二区| 中文字幕精品—区二区四季| 一区二区理论电影在线观看| 老鸭窝一区二区久久精品| 国产自产高清不卡| 在线观看视频一区二区欧美日韩| 久久久久久久久久久黄色| 亚洲国产一区视频| 成人丝袜视频网| 久久综合色综合88| 亚洲国产精品视频| 成人av综合一区| 国产午夜精品一区二区| 久久精品99国产精品日本| av日韩在线网站| 久久―日本道色综合久久| 一区二区三区色| 成人不卡免费av| 日韩欧美国产wwwww| 日韩视频免费观看高清完整版在线观看| 国产精品免费视频一区| 久久9热精品视频| 久久久噜噜噜久久中文字幕色伊伊 | 国产午夜精品久久久久久免费视| 日韩福利电影在线| 91精品国产综合久久精品app | 日韩av网站在线观看|