@Test public void test_19() { ItemizeList il = new ItemizeList(); il.addItem("il 1 item 1 some text"); il.addItem("il 1 item 2 some text"); il.addItem("il 1 item 3 some text"); ItemizeList il2 = new ItemizeList(); il2.addItem("il 2 item 1 text"); il2.addItem("il 2 item 2 text"); il2.addItem("il 2 item 3 text"); il.addItem(il2); il.setListStyle(NestedItemizeStyles.ALL_STAR_INCREMENTAL); il.setPreLabelIndent(0); il.setWidth(18); System.err.println(il.render() + "\n"); }
@Test public void test_List() { ItemizeList list = new ItemizeList(); list.addItem("item 1"); list.addItem("item 2"); list.addItem("item 3"); System.err.println(list.render() + "\n"); list.setPostLabelIndent(4); System.err.println(list.render() + "\n"); list.setListStyle(NestedItemizeStyles.ALL_STAR_INCREMENTAL); list.setPostLabelIndent(1); ItemizeList list2 = new ItemizeList(); list2.addItem("two item one"); list2.addItem("two item two"); list2.addItem("two item three four five six seven eight nine ten"); list2 = (ItemizeList) list.addItem(list2); System.err.println(list.render() + "\n"); list.setListStyle(NestedItemizeStyles.HTML_LIKE); assertEquals(NestedItemizeStyles.HTML_LIKE, list.style); assertEquals(NestedItemizeStyles.HTML_LIKE, list2.style); System.err.println(list.render() + "\n"); list.setWidth(19); System.err.println(list.render() + "\n"); }