On Mar 13, 2007, at 1:34 PM, Christian Gmeiner wrote:
Author: austriancoder
Date: 2007-03-13 13:33:54 +0100 (Tue, 13 Mar 2007)
New Revision: 2389
Added:
xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/xpn/
xwiki/wysiwyg/
xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/xpn/
xwiki/wysiwyg/ConverterTest.java
Log:
Our first test for the converter :)
Added: xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/
xpn/xwiki/wysiwyg/ConverterTest.java
===================================================================
--- xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/
xpn/xwiki/wysiwyg/ConverterTest.java 2007-03-13 11:16:01 UTC (rev
2388)
+++ xwiki/branches/XWIKI_WYSIWYG_NEWARCHI/core/src/test/java/com/
xpn/xwiki/wysiwyg/ConverterTest.java 2007-03-13 12:33:54 UTC (rev
2389)
@@ -0,0 +1,11 @@
+package com.xpn.xwiki.wysiwyg;
+
+public class ConverterTest extends org.jmock.cglib.MockObjectTestCase
+{
+
+ public void testBoldConversation() {
+
+ String result = Converter.convert("<strong>bold text</
strong>", false);
+ assertEquals(result, "*bold text*");
+ }
+}
cool. One little detail: the assertEquals first parameter is the
expected string and the second is the result. :)
Thanks
-Vincent