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

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

?? creoletojspwikitranslatortest.java

?? jspwiki source code,jspwiki source code
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*     JSPWiki - a JSP-based WikiWiki clone.    Licensed to the Apache Software Foundation (ASF) under one    or more contributor license agreements.  See the NOTICE file    distributed with this work for additional information    regarding copyright ownership.  The ASF licenses this file    to you 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 com.ecyrd.jspwiki.parser;import java.io.FileInputStream;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Properties;import junit.framework.Test;import junit.framework.TestCase;import junit.framework.TestSuite;public class CreoleToJSPWikiTranslatorTest extends TestCase{    public static final String TEST_PROPERTIES = "tests/com/ecyrd/jspwiki/parser/creole.properties";    public static void main(String[] args)    {        junit.textui.TestRunner.run(CreoleToJSPWikiTranslatorTest.class);    }    protected void setUp() throws Exception    {        super.setUp();    }    protected void tearDown() throws Exception    {        super.tearDown();    }    public void testBold() throws Exception    {        String src = "This is **bold**.";        assertEquals("This is __bold__.", translate(src));    }    public void testBoldVersusList() throws Exception    {        String src = "**This is all bold.**";        assertEquals("__This is all bold.__", translate(src));    }    public void testBoldAcrossLineBreaks() throws Exception    {        String src = "This is **bold\nand still bold**.";        assertEquals("This is __bold" + System.getProperty("line.separator") + "and still bold__.", translate(src));    }    public void testBoldAcrossLineParagraphs() throws Exception    {        String src = "This is **bold\r\n\r\nand no more bold.";        assertEquals("This is __bold__\r\n\r\nand no more bold.", translate(src));    }    public void testItalicAcrossLineBreaks() throws Exception    {        String src = "This is //italic\r\nand still italic//.";        assertEquals("This is ''italic\r\nand still italic''.", translate(src));    }    public void testItalicAcrossLineParagraphs() throws Exception    {        String src = "This is //italic\r\n\r\nnand no more italic.";        assertEquals("This is ''italic''\r\n\r\nnand no more italic.", translate(src));    }    public void testItalic() throws Exception    {        String src = "This is //italic//.";        assertEquals("This is ''italic''.", translate(src));    }    public void testImage() throws Exception    {        String src = "This is {{Image}}.";        assertEquals("This is [{Image src='Image'}].", translate(src));    }    public void testImageLink() throws Exception    {        String src = "This is [[http://www.wikicreole.org|{{Image}}]] with a link.";        assertEquals("This is [{Image src='Image' link='http://www.wikicreole.org'}] with a link.", translate(src));    }    public void testImageDescription() throws Exception    {        String src = "This is {{Image|Description}}.";        assertEquals("This is [{Image src='Image' caption='Description'}].", translate(src));    }    public void testImageLinkDescription() throws Exception    {        String src = "This is [[http://www.wikicreole.org|{{Image|Description}}]].";        assertEquals("This is [{Image src='Image' link='http://www.wikicreole.org' caption='Description'}].", translate(src));    }    public void testHyperlinks2() throws Exception    {        String src = "This should be a [[hyperlink]]";        assertEquals("This should be a [hyperlink]", translate(src));    }    public void testHyperlinks3() throws Exception    {        String src = "This should be a [[hyperlink too]]";        assertEquals("This should be a [hyperlink too]", translate(src));    }    public void testHyperlinks4() throws Exception    {        String src = "This should be a [[HyperLink]]";        assertEquals("This should be a [HyperLink]", translate(src));    }    public void testHyperlinks5() throws Exception    {        String src = "This should be a [[HyperLink|here]]";        assertEquals("This should be a [here|HyperLink]", translate(src));    }    public void testHyperlinksNamed1() throws Exception    {        String src = "This should be a [[HyperLink#heading|here]]";        assertEquals("This should be a [here|HyperLink#heading]", translate(src));    }    public void testHyperlinksNamed2() throws Exception    {        String src = "This should be a [[HyperLink#heading]]";        assertEquals("This should be a [HyperLink#heading]", translate(src));    }    //    // Testing CamelCase hyperlinks    //    public void testHyperLinks6() throws Exception    {        String src = "[[DiscussionAboutWiki]] [[WikiMarkupDevelopment]].";        assertEquals("[DiscussionAboutWiki] [WikiMarkupDevelopment].", translate(src));    }    /** ******* Stuff not in JSPWikiMarkupParserTest ************************* */    /* these are test where errors occured in the Creole Wiki */    public void testHeadingsCreole1() throws Exception    {        String src = "=====Level 4 heading";        assertEquals("__Level 4 heading__", translate(src));    }    public void testHyperLinksCreole1() throws Exception    {        String src = "Sponsored by the [Wiki Symposium|http://www.wikisym.org/] and [i3G Institute|http://www.i3g.hs-heilbronn.de].";        assertEquals(                     "Sponsored by the [Wiki Symposium|http://www.wikisym.org/] and [i3G Institute|http://www.i3g.hs-heilbronn.de].",                     translate(src));    }    public void testHyperLinksJSPWiki() throws Exception    {        String src = "* [http://www.wikisym.org/cgi-bin/mailman/listinfo/wiki-research|Wiki research mailing list]";        assertEquals(src, translate(src));    }    public void testHyperLinksCreole2() throws Exception    {        String src = "Sponsored by the [[http://www.wikisym.org/|Wiki Symposium]] and [[http://www.i3g.hs-heilbronn.de|i3G Institute]].";        assertEquals(                     "Sponsored by the [Wiki Symposium|http://www.wikisym.org/] and [i3G Institute|http://www.i3g.hs-heilbronn.de].",                     translate(src));    }    public void testPreformattedCreole() throws Exception    {        String src = "{{{$$...$$}}}";        assertEquals(src, translate(src));    }    public void testPreformattedCreole2() throws Exception    {        String src = "{{{\r\n" + "\r\n" + "[[http://en.wikipedia.org|wikipedia]]\r\n" + "}}}";        assertEquals(src, translate(src));    }    public void testPreformattedCreole3() throws Exception    {        String src = "{{{\r\n" + "Guitar Chord C:\r\n" + "\r\n" + "||---|---|---|\r\n" + "||-0-|---|---|\r\n"                     + "||---|-0-|---|\r\n" + "||---|---|-0-|\r\n" + "||---|---|---|\\n" + "}}}";        assertEquals(src, translate(src));    }    public void testPreformattedCreole4() throws Exception    {        // don't interpret plugins        String src = "{{{<<Test>>}}}";        assertEquals(src, translate(src));    }    public void testPreformattedCreole5() throws Exception    {        String src = "{{{<<<Test>>>}}}";        assertEquals(src, translate(src));    }    public void testPreformattedPlusLinks1() throws Exception    {        String preformatted = "{{{\r\n" + "Guitar Chord C:\r\n" + "\r\n" + "||---|---|---|\r\n" + "||-0-|---|---|\r\n"                              + "||---|-0-|---|\r\n" + "||---|---|-0-|\r\n" + "||---|---|---|\r\n" + "}}}";        String src = "[[http://www.wikicreole.org|external Links]]\r\n" + preformatted;        String target = "[external Links|http://www.wikicreole.org]\r\n" + preformatted;        assertEquals(target, translate(src));    }    public void testPreformattedPlusLinks2() throws Exception    {        String preformatted = "{{{\r\n" + "[[http://www.wikicreole.org]]\r\n" + "}}}";        String src = "[[http://www.wikicreole.org]]\r\n" + preformatted;        String target = "[http://www.wikicreole.org]\r\n" + preformatted;        assertEquals(target, translate(src));    }    public void testListCreole() throws Exception    {        String src = "- 1\r\n" + "-- 2\r\n" + "--- 3\r\n" + "---- 4\r\n" + "----- 5";        String target = "* 1\r\n" + "** 2\r\n" + "*** 3\r\n" + "**** 4\r\n" + "***** 5";        assertEquals(target, translate(src));    }    public void testLineAmbiguity() throws Exception    {        String src = "Some text\r\n\r\n----\r\n\r\nMore text";        assertEquals(src, translate(src));    }    public void testSignartureAmbiguity() throws Exception    {        String src = "Some **text**\r\n\r\n--Steff";        String target = "Some __text__\r\n\r\n--Steff";        assertEquals(target, translate(src));    }    public void disabledTestLinebreakCreole() throws Exception    {        String src = "My contact dates:\n" + "Pone: xyz\r\n" + "Fax: +45\n" + "Mobile: abc";        String target = "My contact dates:\\\\\n" + "Pone: xyz\\\\\r\n" + "Fax: +45\\\\\n" + "Mobile: abc";        assertEquals(target, translate(src));    }    public void disabledTestLinebreakCreoleShort() throws Exception    {        String src = "a\n" + "b\n" + "c\n";        String target = "a\\\\\n" + "b\\\\\n" + "c\n";        assertEquals(target, translate(src));    }    public void disabledTestLinebreakCreoleWithLists() throws Exception    {        String src = "*This\n" + "*Is\n" + "*a\n" + "*list";        assertEquals(src, translate(src));    }    public void testCSS() throws Exception    {        String src = "Some test\r\n" + "\r\n" + "%%commentbox\r\n" + "Aloha World!\r\n" + "%%\r\n" + "\r\n"                     + "Does the pagefilter mess up special jspwiki css markup?";        assertEquals(src, translate(src));    }    public void testSeparatorAfterHypenList() throws Exception    {        String src = "- 1\r\n" + "-- 1.1\r\n" + "-- 1.2\r\n" + "- 2\r\n" + "---------\r\n" + "test\r\n" + "Test";        String target = "* 1\r\n" + "** 1.1\r\n" + "** 1.2\r\n" + "* 2\r\n" + "---------\r\n" + "test\r\n" + "Test";        assertEquals(target, translate(src));    }    /**     * This might not work, users will have to resolve this ambiguity by hand...     *     * @throws Exception     */    public void testBulletListBoldAmbiguity() throws Exception    {        String src = "* 1\r\n" + "** 1.1\r\n" + "** 1.2\r\n" + "* 2\r\n" + "---------\r\n" + "test";        assertEquals(src, translate(src));    }    public void testEscapeHypens() throws Exception    {        String src = " 1\\\\\r\n" + "~- 3\\\\\r\n" + "~===\\\\\r\n" + "~- 2\\\\";        String target = " 1\\\\\r\n" + "~- 3\\\\\r\n" + "~===\\\\\r\n" + "~- 2\\\\";        assertEquals(target, translate(src));    }    public void testEscapeNowiki() throws Exception    {        String src = "{{{\r\n" + "{{{\r\n" + "{{Image}}\r\n" + "~}}}\r\n" + "}}}\r\n" + "Test";        String target = "{{{\r\n" + "{{{\r\n" + "{{Image}}\r\n" + "~}}}\r\n" + "}}}\r\n" + "Test";        assertEquals(target, translate(src));    }    public void testTables1() throws Exception    {        String src = "|a|b\r\n" + "|c|d";        assertEquals(src, translate(src));    }    public void testTables2() throws Exception    {        String src = "|a|b|\r\n" + "|c|d|";        String target = "|a|b\r\n" + "|c|d";        assertEquals(target, translate(src));    }    public void testTables3() throws Exception    {        String src = "before\r\n" + "|a|b|   \r\n" + "|c|d|\r\n" + "after";        String target = "before\r\n" + "|a|b\r\n" + "|c|d\r\n" + "after";        assertEquals(target, translate(src));    }    public void testTables4() throws Exception    {        String src = "before\r\n" + "|a\\\\b|b|\r\n" + "|c|d|\r\n" + "after";        String target = "before\r\n" + "|a\\\\b|b\r\n" + "|c|d\r\n" + "after";        assertEquals(target, translate(src));    }        public void testTables5() throws Exception    {        // does a empty line between two tables get lost?        String src = "|a|b|\r\n" + "\r\n" +  "|x|y|\r\nTest";        String target = "|a|b\r\n" + "\r\n" +  "|x|y\r\nTest";        assertEquals(target, translate(src));    }    public void testTableHeaders1() throws Exception

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品影院在线观看| 国产精品美女久久久久久2018| 一区二区三区精品在线观看| 97aⅴ精品视频一二三区| 亚洲欧美视频在线观看| 91福利国产精品| 亚洲国产成人av好男人在线观看| 91麻豆精品国产91久久久久久| 首页国产丝袜综合| 久久影院午夜片一区| 国产精品一区二区免费不卡 | 黄色日韩网站视频| 精品欧美一区二区三区精品久久| 国产美女精品在线| 亚洲少妇中出一区| 51午夜精品国产| 国产精品一区二区久激情瑜伽| 中文字幕日韩精品一区| 欧美性猛片aaaaaaa做受| 日韩不卡免费视频| 国产欧美在线观看一区| 91福利在线看| 国产一区二区剧情av在线| 国产精品国产馆在线真实露脸 | 精品国产a毛片| 99热99精品| 日韩激情视频在线观看| 国产精品久久久久久久久图文区 | 99精品欧美一区二区蜜桃免费| 亚洲mv在线观看| 久久久美女艺术照精彩视频福利播放| 99精品欧美一区| 美女在线观看视频一区二区| 国产精品不卡视频| 日韩视频在线永久播放| kk眼镜猥琐国模调教系列一区二区| 偷窥少妇高潮呻吟av久久免费| 国产亚洲综合av| 91精品国产日韩91久久久久久| 国产成人午夜精品影院观看视频 | 欧美一区二区三区视频| 岛国一区二区三区| 美女视频第一区二区三区免费观看网站 | 免费成人结看片| 中文字幕在线观看不卡视频| 欧美成人免费网站| 欧美三级电影在线看| 不卡av在线免费观看| 久久精品免费看| 亚洲国产精品久久人人爱| 国产精品久久久一本精品| 91精品欧美福利在线观看| 91免费观看国产| 国产成人av电影| 免费观看在线综合| 性欧美大战久久久久久久久| 亚洲嫩草精品久久| 国产精品免费av| 久久中文字幕电影| 精品国产凹凸成av人网站| 91精品国产欧美一区二区18| 欧美最猛性xxxxx直播| 91香蕉视频黄| aaa欧美大片| 成人福利视频在线看| 国产乱码精品1区2区3区| 久久99精品久久久久婷婷| 人人狠狠综合久久亚洲| 日日夜夜免费精品视频| 亚洲国产aⅴ成人精品无吗| 亚洲与欧洲av电影| 亚洲综合视频在线| 亚洲妇女屁股眼交7| 亚洲国产成人高清精品| 午夜欧美一区二区三区在线播放 | 亚洲成人一区二区在线观看| 亚洲乱码中文字幕| 亚洲图片欧美激情| 亚洲视频一二三区| 亚洲精品免费在线| 亚洲国产成人av| 日韩影院精彩在线| 久国产精品韩国三级视频| 麻豆成人久久精品二区三区红| 丝袜美腿亚洲一区二区图片| 天堂成人免费av电影一区| 奇米精品一区二区三区在线观看 | 福利91精品一区二区三区| 国产成人免费在线观看| av日韩在线网站| 欧美色综合久久| 91精品久久久久久久99蜜桃| 日韩欧美高清在线| 久久久久久久久免费| 欧美国产1区2区| 亚洲精品日日夜夜| 日韩中文字幕91| 国产尤物一区二区在线| 成a人片国产精品| 欧美色大人视频| 日韩色在线观看| 国产欧美日韩精品a在线观看| 日韩理论片中文av| 日韩二区三区四区| 国产一区二区福利| 91在线丨porny丨国产| 欧美蜜桃一区二区三区| 精品国产123| 亚洲精品午夜久久久| 日本91福利区| av电影在线观看一区| 在线不卡欧美精品一区二区三区| 久久综合资源网| 亚洲欧美日韩国产成人精品影院 | 国产精品99精品久久免费| 色噜噜久久综合| 日韩精品一区国产麻豆| 国产精品二区一区二区aⅴ污介绍| 亚洲国产va精品久久久不卡综合| 久久se精品一区精品二区| 91麻豆国产精品久久| 精品免费一区二区三区| 亚洲日本在线天堂| 精品一二三四区| 欧美综合一区二区三区| 久久人人超碰精品| 亚洲韩国精品一区| 成人综合在线观看| 日韩欧美电影在线| 一区二区三区中文在线观看| 国产在线精品一区二区不卡了| 欧美自拍偷拍午夜视频| 国产精品视频一二三区| 日本特黄久久久高潮| 91色九色蝌蚪| 日本一区二区三区在线观看| 麻豆传媒一区二区三区| 欧美三级中文字幕在线观看| 国产精品无码永久免费888| 精品一区二区影视| 欧美日韩五月天| 亚洲精品videosex极品| 在线观看网站黄不卡| 日韩欧美一级二级三级 | 五月天久久比比资源色| 本田岬高潮一区二区三区| 欧美电视剧免费观看| 亚洲v日本v欧美v久久精品| 99免费精品视频| 国产农村妇女毛片精品久久麻豆| 免费成人av资源网| 欧美一区欧美二区| 亚洲成人中文在线| 欧美亚洲禁片免费| 亚洲一区二区精品久久av| 91丨porny丨蝌蚪视频| 国产精品网站导航| 国产suv精品一区二区6| 精品国产免费久久 | 亚洲国产一区视频| 色噜噜狠狠一区二区三区果冻| 国产精品高潮久久久久无| 国产精品一区免费视频| 久久久影院官网| 国产精品 欧美精品| 国产欧美一区二区在线| 国产成人午夜高潮毛片| 欧美激情一区在线| 国产.欧美.日韩| 亚洲国产精品国自产拍av| 一区二区三区资源| 蜜桃传媒麻豆第一区在线观看| 日本道免费精品一区二区三区| ...xxx性欧美| 一本色道a无线码一区v| 亚洲欧美日韩中文字幕一区二区三区 | 理论电影国产精品| 日韩一区二区免费电影| 狠狠色综合播放一区二区| 欧美α欧美αv大片| 国产一区二区在线观看视频| 久久久久高清精品| 成人精品视频一区二区三区尤物| 国产精品国产三级国产aⅴ中文 | 成人av网站免费| 亚洲专区一二三| 欧美一区三区四区| 国产在线精品一区二区夜色| 国产午夜亚洲精品不卡| 色素色在线综合| 青青草国产精品97视觉盛宴| 久久影院午夜片一区| 99国产精品视频免费观看| 亚洲中国最大av网站| 日韩欧美黄色影院| 99久久久久久| 日本美女一区二区| 国产午夜精品一区二区三区视频 | 亚洲v中文字幕| 久久欧美中文字幕|