Package info.bliki.html

Examples of info.bliki.html.HTML2WikiConverter


    String result = conv.toWiki(new ToMoinMoin(true, true));
    assertEquals(result, "hello ''world''");
  }

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


    String result = conv.toWiki(new ToWikipedia());
    assertEquals(result, "   \n" + "{| border=\"1\"\n" + "|-\n" + "|hello world\n" + "|}");
  }

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

    String result = conv.toWiki(new ToWikipedia(true, true));
    assertEquals(result, "hello ''world''");
  }

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

    String result = conv.toWiki(new ToMoinMoin(true, true));
    assertEquals(result, "\n" + "== hello   world ==\n");
  }

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

    String result = conv.toWiki(new ToWikipedia(true, true));
    assertEquals(result, "\n" + "== hello   world ==\n");
  }

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

    String result = conv.toWiki(new ToMoinMoin());
    assertEquals(result, "'''hello ''world'''''");
  }

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

    String result = conv.toWiki(new ToMoinMoin(true, true));
    assertEquals(result, "");
  }

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

    String result = conv.toWiki(new ToWikipedia());
    assertEquals(result, "'''hello ''world'''''");
  }

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

    String result = conv.toWiki(new ToMoinMoin());
    assertEquals(result, "   ");
  }

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

    String result = conv.toWiki(new ToWikipedia(true, true));
    assertEquals(result, "");
  }

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

TOP

Related Classes of info.bliki.html.HTML2WikiConverter

Copyright © 2018 www.massapicom. 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.