maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r636244 - in /maven/doxia/doxia-tools/trunk/doxia-converter/src/test: java/org/apache/maven/doxia/ConverterTest.java resources/unit/apt/test.apt
Date Wed, 12 Mar 2008 08:04:30 GMT
Author: ltheussl
Date: Wed Mar 12 01:04:25 2008
New Revision: 636244

URL: http://svn.apache.org/viewvc?rev=636244&view=rev
Log:
[DOXIA-230] the test resource file test.apt was not an apt file.

Modified:
    maven/doxia/doxia-tools/trunk/doxia-converter/src/test/java/org/apache/maven/doxia/ConverterTest.java
    maven/doxia/doxia-tools/trunk/doxia-converter/src/test/resources/unit/apt/test.apt

Modified: maven/doxia/doxia-tools/trunk/doxia-converter/src/test/java/org/apache/maven/doxia/ConverterTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-converter/src/test/java/org/apache/maven/doxia/ConverterTest.java?rev=636244&r1=636243&r2=636244&view=diff
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-converter/src/test/java/org/apache/maven/doxia/ConverterTest.java
(original)
+++ maven/doxia/doxia-tools/trunk/doxia-converter/src/test/java/org/apache/maven/doxia/ConverterTest.java
Wed Mar 12 01:04:25 2008
@@ -143,17 +143,16 @@
         converter.convert( input, output );
         assertTrue( new File( out ).exists() );
 
-        //TODO
-        //        in = getBasedir() + "/target/unit/file/apt/test.apt.xhtml";
-        //        from = "xhtml";
-        //        out = getBasedir() + "/target/unit/file/apt/test.apt";
-        //        to = "apt";
-        //
-        //        input = InputFileWrapper.valueOf( in, from, converter.getInputFormats()
);
-        //        output = OutputFileWrapper.valueOf( out, to, converter.getOutputFormats()
);
-        //
-        //        converter.convert( input, output );
-        //        assertTrue( new File( out ).exists() );
+        in = getBasedir() + "/target/unit/file/apt/test.apt.xhtml";
+        from = "xhtml";
+        out = getBasedir() + "/target/unit/file/apt/test.apt";
+        to = "apt";
+
+        input = InputFileWrapper.valueOf( in, from, converter.getInputFormats() );
+        output = OutputFileWrapper.valueOf( out, to, converter.getOutputFormats() );
+
+        converter.convert( input, output );
+        assertTrue( new File( out ).exists() );
     }
 
     /**

Modified: maven/doxia/doxia-tools/trunk/doxia-converter/src/test/resources/unit/apt/test.apt
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-converter/src/test/resources/unit/apt/test.apt?rev=636244&r1=636243&r2=636244&view=diff
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-converter/src/test/resources/unit/apt/test.apt (original)
+++ maven/doxia/doxia-tools/trunk/doxia-converter/src/test/resources/unit/apt/test.apt Wed
Mar 12 01:04:25 2008
@@ -1 +1,86 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>
\ No newline at end of file
+                                    ------
+                                    Title
+                                    ------
+                                    Author
+                                    ------
+                                     Date
+
+  Paragraph 1, line 1.
+  Paragraph 1, line 2.
+
+  Paragraph 2, line 1.
+  Paragraph 2, line 2.
+
+Section title
+
+* Sub-section title
+
+** Sub-sub-section title
+
+*** Sub-sub-sub-section title
+
+**** Sub-sub-sub-sub-section title
+
+      * List item 1.
+
+      * List item 2.
+
+        Paragraph contained in list item 2.
+
+            * Sub-list item 1.
+
+            * Sub-list item 2.
+
+      * List item 3.
+        Force end of list:
+
+      []
+
++------------------------------------------+
+Verbatim text not contained in list item 3
++------------------------------------------+
+
+      [[1]] Numbered item 1.
+
+                [[A]] Numbered item A.
+
+                [[B]] Numbered item B.
+
+      [[2]] Numbered item 2.
+
+  List numbering schemes: [[1]], [[a]], [[A]], [[i]], [[I]].
+
+      [Defined term 1] of definition list.
+
+      [Defined term 2] of definition list.
+
++-------------------------------+
+Verbatim text
+                        in a box        
++-------------------------------+
+
+  --- instead of +-- suppresses the box around verbatim text.
+
+  Horizontal line:
+
+=======================================================================
+
+
+  New page.
+
+  <Italic> font. <<Bold>> font. <<<Monospaced>>> font.
+
+  {Anchor}. Link to {{Anchor}}. Link to {{http://www.pixware.fr}}. 
+  Link to {{{Anchor}showing alternate text}}.
+  Link to {{{http://www.pixware.fr}Pixware home page}}.
+
+  Force line\
+  break.
+
+  Non\ breaking\ space.
+
+  Escaped special characters: \~, \=, \-, \+, \*, \[, \], \<, \>, \{, \}, \\.
+
+  Copyright symbol: \251, \xA9, \u00a9.
+
+~~Commented out.



Mime
View raw message