01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.wikitext.widgets;
04:
05: import junit.framework.TestCase;
06: import junit.swingui.TestRunner;
07:
08: public class ListItemWidgetTest extends TestCase {
09: public static void main(String[] args) {
10: TestRunner.main(new String[] { "ListItemWidgetTest" });
11: }
12:
13: public void setUp() throws Exception {
14: }
15:
16: public void tearDown() throws Exception {
17: }
18:
19: public void testHtml() throws Exception {
20: ListItemWidget widget = new ListItemWidget(
21: new MockWidgetRoot(), "some text", 0);
22: assertEquals("<li>some text</li>\n", widget.render());
23: widget = new ListItemWidget(new MockWidgetRoot(), "some text",
24: 3);
25: assertEquals("\t\t\t<li>some text</li>\n", widget.render());
26: }
27: }
|