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: public class LineBreakWidgetTest extends WidgetTest {
06:
07: public void testRegexp() throws Exception {
08: assertMatches("\n");
09: assertMatches("\r");
10: assertMatches("\r\n");
11: }
12:
13: public void testHtml() throws Exception {
14: LineBreakWidget widget = new LineBreakWidget(
15: new MockWidgetRoot(), "\n");
16: assertEquals("<br>", widget.render());
17: }
18:
19: protected String getRegexp() {
20: return LineBreakWidget.REGEXP;
21: }
22: }
|