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 MetaWidgetTest extends AbstractWidget {
06: public void setUp() throws Exception {
07: }
08:
09: public void tearDown() throws Exception {
10: }
11:
12: public void testRegexp() throws Exception {
13: assertMatches(MetaWidget.REGEXP, "!meta some string");
14: assertMatches(MetaWidget.REGEXP, "!meta '''BoldWikiWord'''");
15: }
16:
17: public void testItalicWidgetRendersHtmlItalics() throws Exception {
18: MetaWidget widget = new MetaWidget(new MockWidgetRoot(),
19: "!meta text");
20: assertEquals("<span class=\"meta\">text</span>", widget
21: .render());
22: }
23:
24: protected String getRegexp() {
25: return MetaWidget.REGEXP;
26: }
27:
28: }
|