Examples of ToJSPWiki


Examples of info.bliki.html.jspwiki.ToJSPWiki

        + "<td>Strauße (Struthionidae)</td>\n" + "</tr>\n" + "\n" + "<tr>\n"
        + "<td><i><a href=\"/wiki/Gattung_%28Biologie%29\" title=\"Gattung (Biologie)\">Gattung</a>:</i></td>\n"
        + "<td>Strauße (<i>Struthio</i>)</td>\n" + "</tr>\n" + "<tr>\n"
        + "<td><i><a href=\"/wiki/Art_%28Biologie%29\" title=\"Art (Biologie)\">Art</a>:</i></td>\n"
        + "<td>Afrikanischer Strauß</td>\n" + "</tr>\n" + "</table>");
    String result = conv.toWiki(new ToJSPWiki());
    assertEquals(result, "                         \n" +
        "|''[Klasse]:''|[Vögel] (Aves)\n" +
        "|''[Unterklasse]:''|[Urkiefervögel] (Palaeognathae)\n" +
        "|''[Ordnung]:''|[Laufvögel] (Struthioniformes)\n" +
        "|''[Familie]:''|Strauße (Struthionidae)\n" +
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test6() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<b>hello</b> <em>world</em>");
    String result = conv.toWiki(new ToJSPWiki());
    assertEquals(result, "__hello__ ''world''");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test7() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<html><body><table>\n<tr>\n<td>hello world</td>\n</tr></table></body></html>");
    String result = conv.toWiki(new ToJSPWiki());
    assertEquals(result, "   \n" +
        "|hello world\n" +
        "");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test8() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<font size=\"1\">hello</font> <em>world</em>");
    String result = conv.toWiki(new ToJSPWiki(true, true));
    assertEquals(result, "hello ''world''");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test9() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<h2>hello \n world\n</h2>");
    String result = conv.toWiki(new ToJSPWiki(true, true));
    assertEquals(result, "\n" +
        "!!!hello   world\n" +
        "");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test10() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<b>hello&nbsp;<em>world</em></b>");
    String result = conv.toWiki(new ToJSPWiki());
    assertEquals(result, "__hello ''world''__");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test11() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<h2> \n \n</h2>");
    String result = conv.toWiki(new ToJSPWiki(true, true));
    assertEquals(result, "");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test12() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<b> </b> <em> </em>");
    String result = conv.toWiki(new ToJSPWiki());
    assertEquals(result, "   ");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  }

  public void test13() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    conv.setInputHTML("<div> </div>");
    String result = conv.toWiki(new ToJSPWiki());
    assertEquals(result, " ");
  }
View Full Code Here

Examples of info.bliki.html.jspwiki.ToJSPWiki

  public void test14() {
    HTML2WikiConverter conv = new HTML2WikiConverter();
    // invalid nested html test
    conv
        .setInputHTML("<h2>the <a href=\"http://good\">good</a></h2><h3>the <div>bad</div></h3><h2>and <b><i>the</i> ugly</b></h2>");
    String result = conv.toWiki(new ToJSPWiki());
    assertEquals(result, "\n" +
        "!!!the good\n" +
        "\n" +
        "!!the bad\n" +
        "\n" +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.