Author: ltheussl
Date: Tue Aug 21 08:07:45 2007
New Revision: 568158

URL: http://svn.apache.org/viewvc?rev=568158&view=rev
Log:
Add a simple parser test case

Added:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/ConfluenceParserTest.java
   (with props)
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/resources/
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/resources/test.confluence

Added: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/ConfluenceParserTest.java
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/ConfluenceParserTest.java?rev=568158&view=auto
==============================================================================
--- 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/ConfluenceParserTest.java
 (added)
+++ 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/ConfluenceParserTest.java
 Tue Aug 21 08:07:45 2007
@@ -0,0 +1,53 @@
+package org.apache.maven.doxia.module.confluence;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.maven.doxia.parser.AbstractParserTest;
+import org.apache.maven.doxia.parser.Parser;
+
+/**
+ * Test class for ConfluenceParser.
+ */
+public class ConfluenceParserTest extends AbstractParserTest
+{
+    private ConfluenceParser parser;
+
+    /** [EMAIL PROTECTED] */
+    protected void setUp()
+        throws Exception
+    {
+        super.setUp();
+
+        parser = (ConfluenceParser) lookup( Parser.ROLE, "confluence" );
+    }
+
+    /** [EMAIL PROTECTED] */
+    protected Parser createParser()
+    {
+        return parser;
+    }
+
+    /** [EMAIL PROTECTED] */
+    protected String outputExtension()
+    {
+        return "confluence";
+    }
+
+}

Propchange: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/ConfluenceParserTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/java/org/apache/maven/doxia/module/confluence/ConfluenceParserTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/resources/test.confluence
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/resources/test.confluence?rev=568158&view=auto
==============================================================================
--- 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/resources/test.confluence
 (added)
+++ 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-confluence/src/test/resources/test.confluence
 Tue Aug 21 08:07:45 2007
@@ -0,0 +1,98 @@
+This the way that we would like to *translate* sites that are primarily
+authored in confluence while at the same time having the site be rendered in
+a _standard way on a static website_.
+
+----
+
+Here is a link to [JIRA|http://jira.codehaus.org]
+
+Here is a link with no text [http://jira.codehaus.org]
+
+This is some {{monospaced}} text.
+
+* item one
+** foo
+** bar
+* item two
+* item three
+
+Some more text
+
+# number one
+# number two
+# number three
+
+||one||two||three||
+|foo|bar|baz|
+
+h1. I am h1
+
+this is how you would code a mojo!
+
+{code}
+public class MyMojo
+    extends AbstractMojo
+{
+    /**
+     * @parameter expression="${plugin.artifacts}"
+     * @required
+     */
+    private List pluginArtifacts;
+
+    public void execute()
+        throws MojoExecutionException
+    {
+        ...
+        for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
+        {
+            Artifact pluginArtifact = (Artifact) i.next();
+        }
+        ...
+    }
+}
+{code}
+
+h2. I am h2
+
+this is the way of the world
+
+{noformat}
+public class MyMojo
+    extends AbstractMojo
+{
+    /**
+     * @parameter expression="${plugin.artifacts}"
+     * @required
+     */
+    private List pluginArtifacts;
+
+    public void execute()
+        throws MojoExecutionException
+    {
+        ...
+        for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
+        {
+            Artifact pluginArtifact = (Artifact) i.next();
+        }
+        ...
+    }
+}
+{noformat}
+
+h3. I am h3
+
+this is the way of the world
+
+h4. I am h4
+
+this is the way of the world
+
+h5. I am h5
+
+this is the way of the world
+
+h1. Answered Questions
+
+h3. What can I do to get the Maven love?
+
+Well, you just have to be calm and the maven love will come your way.


Reply via email to