LoremIpsum { public String generateParagraphsFullHtml(int quantity, boolean startWithLorem) { String prefix = "<html>" + LINE_SEPARATOR + "<header>" + LINE_SEPARATOR + "<title>Lorem Ipsum</title>" + LINE_SEPARATOR + "</header>" + LINE_SEPARATOR + LINE_SEPARATOR + "<body>"; String postfix = "</body>" + LINE_SEPARATOR + "</html>" + LINE_SEPARATOR; return generateMarkupParagraphs(prefix + LINE_SEPARATOR + "<p>" + LINE_SEPARATOR + "\t", LINE_SEPARATOR + "</p>" + LINE_SEPARATOR + postfix, LINE_SEPARATOR + "</p>" + LINE_SEPARATOR + "<p>" + LINE_SEPARATOR + "\t", quantity, startWithLorem); } LoremIpsum();  LoremIpsum(String sample, String dictionary);  LoremIpsum(String sample, String[] newDictionary);  LoremIpsum(String sample); String generateParagraph(boolean optStartWithLorem); String generateSentence(boolean optStartWithLorem); String getSample(); void setSample(String sample); String getDictionary(); void setDictionary(String dictionary); static double mean(int[] values); static double mean(double[] values); static double variance(double[] values); static double sigma(int[] values); static double sigma(double[] values); static int sum(int[] values); static double sum(double[] values); static boolean contains(String[] array, String val); String generateParagraphsHtml(int quantity, boolean startWithLorem); void generateParagraphsHtml(Appendable writer, int quantity, boolean startWithLorem); String generateOneParagraphHtml(int quantity, boolean startWithLorem); String generateParagraphsFullHtml(int quantity, boolean startWithLorem); void generateParagraphsFullHtml(Appendable writer, int quantity, boolean startWithLorem); String generateParagraphsPlainText(int quantity, boolean startWithLorem); void generateParagraphsPlainText(Appendable writer, int quantity, boolean startWithLorem); String generateParagraphsPlainText(int quantity, int maxCols, boolean startWithLorem); void generateParagraphsPlainText(Appendable writer, int quantity, int maxCols, boolean startWithLorem);  }
@Test public void testGenerateLoreIpsumHtml3() { LOG.debug("Generate new Lore Ipsum as full html document: "); LoremIpsum ipsum = new LoremIpsum(); String output = ipsum.generateParagraphsFullHtml(2048, true); LOG.debug(output); LOG.debug(""); }
@Test public void testGenerateLoreIpsumHtml2Writer() throws IOException { LOG.debug("Generate new Lore Ipsum as full html paragraph with PrintWriter:"); LoremIpsum ipsum = new LoremIpsum(); StringWriter writer = new StringWriter(); ipsum.generateParagraphsFullHtml(writer, 2048, true); LOG.debug(writer.toString()); LOG.debug("End Test."); }