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

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

?? testmessagetag2_fr.java

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

    protected final static String TEST_KEY = "BeanKey";
    protected final static String TEST_VAL_FR = "Message D'Essai 1 2";

    public TestMessageTag2_fr(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_fr.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_fr.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_fr() throws Exception {
     runMyTest("testMessageTag2ArgKeyNoScopeDefaultBundle", new Locale("fr","fr"));
        }
        public void endMessageTag2ArgKeyNoScopeDefaultBundle(WebResponse response){
                formatAndTest(TEST_VAL_FR, response.getText());
        }

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

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

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


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

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

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

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



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

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

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

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


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

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

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

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




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

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

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

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


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

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

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

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


}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美福利视频一区| 国产在线精品一区在线观看麻豆| voyeur盗摄精品| 亚洲国产精品激情在线观看| 成人激情开心网| 中文字幕在线观看一区二区| 99热在这里有精品免费| 亚洲欧美日韩国产一区二区三区| 91黄色免费看| 奇米888四色在线精品| 久久在线观看免费| 成+人+亚洲+综合天堂| 亚洲一本大道在线| 日韩免费观看高清完整版在线观看| 另类成人小视频在线| 久久精品视频免费| 色激情天天射综合网| 三级影片在线观看欧美日韩一区二区 | 欧美福利视频一区| 国产一区二区久久| 亚洲视频1区2区| 制服丝袜一区二区三区| 韩国欧美一区二区| 18欧美亚洲精品| 日韩欧美中文一区| 成人av在线播放网址| 日韩在线一区二区三区| 国产午夜精品一区二区| 日本精品一级二级| 国产曰批免费观看久久久| 亚洲欧美日本韩国| 91精品国产综合久久蜜臀| 国产精品乡下勾搭老头1| 夜色激情一区二区| 精品国产伦一区二区三区观看方式 | 毛片基地黄久久久久久天堂| 国产精品女主播在线观看| 在线观看日韩电影| 国产成人精品三级麻豆| 日韩高清不卡在线| 中文字幕一区二区三区在线不卡| 5月丁香婷婷综合| 不卡的看片网站| 久草精品在线观看| 亚洲永久免费av| 国产精品蜜臀在线观看| 欧美一级欧美三级在线观看| 色综合色综合色综合 | 亚洲成a人在线观看| 国产精品萝li| 欧美精品一区二区不卡| 欧美日韩一级片在线观看| 波多野结衣一区二区三区 | 国产欧美日韩亚州综合| 欧美精品一区二区三区一线天视频| 91麻豆蜜桃一区二区三区| 精品一二三四在线| 青娱乐精品视频| 亚洲va在线va天堂| 亚洲最大的成人av| 亚洲人成伊人成综合网小说| 国产亚洲精品bt天堂精选| 精品国产乱码久久久久久老虎 | a美女胸又www黄视频久久| 韩国av一区二区三区四区| 日韩电影在线一区二区三区| 亚洲制服欧美中文字幕中文字幕| 中文字幕一区二区视频| 国产欧美日韩精品一区| 久久久久国产一区二区三区四区 | 日韩精品一区二区三区在线| 欧美日韩1234| 欧美日韩成人综合天天影院| 欧美在线视频你懂得| 91福利在线播放| 欧美这里有精品| 欧美视频三区在线播放| 一本色道**综合亚洲精品蜜桃冫| 99久久亚洲一区二区三区青草| 成人毛片视频在线观看| 99久久综合色| 91视视频在线观看入口直接观看www | 国产福利一区二区三区视频 | 亚洲综合自拍偷拍| 亚洲成人av免费| 视频一区二区不卡| 强制捆绑调教一区二区| 久热成人在线视频| 国产一区二区精品久久| 成人高清在线视频| 色综合久久88色综合天天| 欧美午夜精品久久久久久孕妇| 99精品在线观看视频| 色偷偷成人一区二区三区91 | 久久99久久精品| 国产麻豆成人传媒免费观看| 大胆欧美人体老妇| 91福利精品第一导航| 欧美日韩不卡一区| 2020国产精品| 日韩美女视频一区二区 | 精品国产亚洲在线| 国产精品热久久久久夜色精品三区 | 亚洲一区在线观看网站| 日本午夜精品一区二区三区电影| 精品亚洲国内自在自线福利| 国内精品在线播放| 色综合网站在线| 欧美成va人片在线观看| 欧美极品aⅴ影院| 亚洲国产美国国产综合一区二区| 美日韩黄色大片| av一区二区三区在线| 精品视频1区2区3区| 久久久亚洲综合| 一区二区成人在线视频| 经典三级视频一区| 国产不卡在线一区| 91黄色激情网站| 欧美极品aⅴ影院| 视频一区国产视频| 99视频精品全部免费在线| 日韩精品一区二区三区在线播放| 亚洲欧美日韩国产综合| 久久er精品视频| 欧美性感一区二区三区| 久久亚洲综合色| 五月天激情综合网| 99re热这里只有精品免费视频| 91精品视频网| 亚洲素人一区二区| 国产一区二区看久久| 宅男噜噜噜66一区二区66| 亚洲日本va在线观看| 国内精品在线播放| 欧美色综合天天久久综合精品| 国产亚洲综合在线| 青娱乐精品在线视频| 欧美三区免费完整视频在线观看| 日本一区二区三区免费乱视频| 亚洲一区二区五区| 久久激情五月婷婷| 91精品福利视频| 国产日韩欧美精品综合| 美国三级日本三级久久99| 色婷婷av一区二区三区gif| 久久影院午夜论| 国产亚洲午夜高清国产拍精品 | 在线不卡一区二区| 亚洲品质自拍视频| 国产一区二三区| 欧美日本在线看| 中文字幕日本乱码精品影院| 国产一区二区三区视频在线播放| 色婷婷久久综合| 欧美激情一区二区三区不卡| 日韩av中文在线观看| 欧美日韩日日摸| 国产精品成人免费在线| 国产乱子伦视频一区二区三区| 欧美精品123区| 国产精品系列在线| 日韩电影在线观看一区| 777亚洲妇女| 亚洲二区在线视频| 91麻豆国产福利精品| 亚洲日本护士毛茸茸| 99国产精品久久久久久久久久| 久久精品亚洲精品国产欧美 | 精品国产一区二区三区四区四| 亚洲成人第一页| 精品视频123区在线观看| 亚洲男人的天堂在线观看| 成人av在线网| 国产精品电影院| 成人av高清在线| 日本一区二区综合亚洲| 97精品久久久午夜一区二区三区| 国产精品免费丝袜| 成人理论电影网| 精品国产伦一区二区三区观看体验 | 久久嫩草精品久久久精品一| 首页国产丝袜综合| 欧美亚洲自拍偷拍| 亚洲在线视频网站| 欧美日韩激情一区| 久久丁香综合五月国产三级网站| 欧美一区二区视频网站| 日韩成人dvd| 欧美色图一区二区三区| 人人狠狠综合久久亚洲| 日韩精品在线网站| 久久99精品视频| 国产欧美在线观看一区| 欧洲人成人精品| 亚洲成av人片一区二区梦乃| 91精品福利在线一区二区三区 | 激情久久五月天| 国产免费观看久久| 色婷婷亚洲综合|