Author: kcardineaud Date: 2011-06-10 09:51:04 +0200 (Fri, 10 Jun 2011) New Revision: 603 Url: http://nuiton.org/repositories/revision/jrst/603 Log: #1590 Verbatim block not well generated : add a test Modified: trunk/jrst/src/test/java/org/nuiton/jrst/JRSTReaderTest.java trunk/jrst/src/test/resources/testLiteral.rst Modified: trunk/jrst/src/test/java/org/nuiton/jrst/JRSTReaderTest.java =================================================================== --- trunk/jrst/src/test/java/org/nuiton/jrst/JRSTReaderTest.java 2011-06-09 16:37:50 UTC (rev 602) +++ trunk/jrst/src/test/java/org/nuiton/jrst/JRSTReaderTest.java 2011-06-10 07:51:04 UTC (rev 603) @@ -158,7 +158,7 @@ Assert.assertTrue(actualXml.contains(xmlexpected)); } - /* + @Test public void testLiteral() throws Exception { URL url = JRSTReaderTest.class.getResource("/testLiteral.rst"); @@ -170,7 +170,9 @@ String xmlexpected = - "<literal_block>refcomp.admin.email=l'email des administrateurs. Example : admin@refcomp.com"; + "<literal_block> refcomp.admin.email=l'email des administrateurs. Example : admin@refcomp.com\n" + + "\n" + + "</literal_block></list_item></enumerated_list><paragraph>Paragraphe test</paragraph></document>"; String actualXml = doc.asXML(); @@ -178,7 +180,7 @@ log.warn("Expected :\n" + xmlexpected); Assert.assertTrue(actualXml.contains(xmlexpected)); - }*/ + } @Test Modified: trunk/jrst/src/test/resources/testLiteral.rst =================================================================== --- trunk/jrst/src/test/resources/testLiteral.rst 2011-06-09 16:37:50 UTC (rev 602) +++ trunk/jrst/src/test/resources/testLiteral.rst 2011-06-10 07:51:04 UTC (rev 603) @@ -3,4 +3,6 @@ 2. Editer la configuration de base. Créez un fichier de configuration nommé:: - refcomp.admin.email=l'email des administrateurs. Example : admin@refcomp.com \ No newline at end of file + refcomp.admin.email=l'email des administrateurs. Example : admin@refcomp.com + +Paragraphe test \ No newline at end of file