maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r732140 [2/2] - /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/
Date Tue, 06 Jan 2009 22:01:30 GMT
Added: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java?rev=732140&view=auto
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
(added)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
Tue Jan  6 14:01:29 2009
@@ -0,0 +1,66 @@
+package org.apache.maven.doxia.siterenderer;
+
+/*
+ * 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 com.gargoylesoftware.htmlunit.html.HtmlApplet;
+import com.gargoylesoftware.htmlunit.html.HtmlDivision;
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import com.gargoylesoftware.htmlunit.html.HtmlParameter;
+
+import java.util.Iterator;
+
+
+/**
+ * 
+ *
+ * @author ltheussl
+ * @version $Id$
+ */
+public class MiscVerifier
+    extends AbstractVerifier
+{
+    /** {@inheritDoc} */
+    public void verify( String file )
+            throws Exception
+    {
+        HtmlPage page = htmlPage( file );
+        assertNotNull( page );
+
+        HtmlElement element = page.getHtmlElementById( "contentBox" );
+        assertNotNull( element );
+        HtmlDivision division = (HtmlDivision) element;
+        assertNotNull( division );
+
+        Iterator elementIterator = division.getAllHtmlChildElements();
+
+        // ----------------------------------------------------------------------
+        //
+        // ----------------------------------------------------------------------
+
+        HtmlApplet applet = (HtmlApplet) elementIterator.next();
+        assertEquals( "org.micro.applet.Main", applet.getAttributeValue( "code" ) );
+        assertEquals( "micro-applet.jar", applet.getAttributeValue( "archive" ) );
+
+        HtmlParameter param = (HtmlParameter) elementIterator.next();
+        assertEquals( "midlet", param.getAttributeValue( "name" ) );
+        assertEquals( "org.micro.applet.SimpleDemoMIDlet", param.getAttributeValue( "value"
) );
+    }
+}

Propchange: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MiscVerifier.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MultipleBlockVerifier.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MultipleBlockVerifier.java?rev=732140&view=auto
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MultipleBlockVerifier.java
(added)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MultipleBlockVerifier.java
Tue Jan  6 14:01:29 2009
@@ -0,0 +1,135 @@
+package org.apache.maven.doxia.siterenderer;
+
+/*
+ * 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 com.gargoylesoftware.htmlunit.html.HtmlAnchor;
+import com.gargoylesoftware.htmlunit.html.HtmlDivision;
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlHeader2;
+import com.gargoylesoftware.htmlunit.html.HtmlListItem;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import com.gargoylesoftware.htmlunit.html.HtmlParagraph;
+import com.gargoylesoftware.htmlunit.html.HtmlUnorderedList;
+
+import java.util.Iterator;
+
+
+/**
+ * 
+ *
+ * @author ltheussl
+ * @version $Id$
+ */
+public class MultipleBlockVerifier
+    extends AbstractVerifier
+{
+    /** {@inheritDoc} */
+    public void verify( String file )
+            throws Exception
+    {
+        HtmlPage page = htmlPage( file );
+        assertNotNull( page );
+
+        HtmlElement element = page.getHtmlElementById( "contentBox" );
+        assertNotNull( element );
+        HtmlDivision division = (HtmlDivision) element;
+        assertNotNull( division );
+
+        Iterator elementIterator = division.getAllHtmlChildElements();
+
+        // ----------------------------------------------------------------------
+        // Verify link
+        // ----------------------------------------------------------------------
+
+        HtmlDivision div = (HtmlDivision) elementIterator.next();
+        assertNotNull( div );
+        assertEquals( div.getAttributeValue( "class" ), "section" );
+
+        HtmlHeader2 h2 = (HtmlHeader2) elementIterator.next();
+        assertNotNull( h2 );
+        assertEquals( h2.asText().trim(), "section name" );
+
+        HtmlAnchor a = (HtmlAnchor) elementIterator.next();
+        assertNotNull( a );
+        assertEquals( a.getAttributeValue( "name" ), "section_name" );
+
+        // ----------------------------------------------------------------------
+        // Paragraph
+        // ----------------------------------------------------------------------
+
+        HtmlParagraph p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "text" );
+
+        // ----------------------------------------------------------------------
+        // Unordered list
+        // ----------------------------------------------------------------------
+
+        HtmlUnorderedList ul = (HtmlUnorderedList) elementIterator.next();
+        assertNotNull( ul );
+
+        HtmlListItem li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "list1" );
+
+        // ----------------------------------------------------------------------
+        // Paragraph
+        // ----------------------------------------------------------------------
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "text2" );
+
+        // ----------------------------------------------------------------------
+        // Unordered list
+        // ----------------------------------------------------------------------
+
+        ul = (HtmlUnorderedList) elementIterator.next();
+        assertNotNull( ul );
+
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "list1" );
+
+        // ----------------------------------------------------------------------
+        // Paragraph
+        // ----------------------------------------------------------------------
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "text3" );
+
+        // ----------------------------------------------------------------------
+        // Unordered list
+        // ----------------------------------------------------------------------
+
+        ul = (HtmlUnorderedList) elementIterator.next();
+        assertNotNull( ul );
+
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.getFirstDomChild().asText().trim(), "list1" );
+
+        assertFalse( elementIterator.hasNext() );
+    }
+}

Propchange: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MultipleBlockVerifier.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/MultipleBlockVerifier.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/NestedItemsVerifier.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/NestedItemsVerifier.java?rev=732140&view=auto
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/NestedItemsVerifier.java
(added)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/NestedItemsVerifier.java
Tue Jan  6 14:01:29 2009
@@ -0,0 +1,308 @@
+package org.apache.maven.doxia.siterenderer;
+
+/*
+ * 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 com.gargoylesoftware.htmlunit.html.HtmlAnchor;
+import com.gargoylesoftware.htmlunit.html.HtmlDefinitionDescription;
+import com.gargoylesoftware.htmlunit.html.HtmlDefinitionList;
+import com.gargoylesoftware.htmlunit.html.HtmlDefinitionTerm;
+import com.gargoylesoftware.htmlunit.html.HtmlDivision;
+import com.gargoylesoftware.htmlunit.html.HtmlElement;
+import com.gargoylesoftware.htmlunit.html.HtmlHeader2;
+import com.gargoylesoftware.htmlunit.html.HtmlHeader4;
+import com.gargoylesoftware.htmlunit.html.HtmlListItem;
+import com.gargoylesoftware.htmlunit.html.HtmlOrderedList;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import com.gargoylesoftware.htmlunit.html.HtmlParagraph;
+import com.gargoylesoftware.htmlunit.html.HtmlUnorderedList;
+
+import java.util.Iterator;
+
+
+/**
+ * 
+ *
+ * @author ltheussl
+ * @version $Id$
+ */
+public class NestedItemsVerifier
+    extends AbstractVerifier
+{
+    /** {@inheritDoc} */
+    public void verify( String file )
+            throws Exception
+    {
+        HtmlPage page = htmlPage( file );
+        assertNotNull( page );
+
+        HtmlElement element = page.getHtmlElementById( "contentBox" );
+        assertNotNull( element );
+        HtmlDivision division = (HtmlDivision) element;
+        assertNotNull( division );
+
+        Iterator elementIterator = division.getAllHtmlChildElements();
+
+        // ----------------------------------------------------------------------
+        // Verify link
+        // ----------------------------------------------------------------------
+
+        HtmlDivision div = (HtmlDivision) elementIterator.next();
+        assertNotNull( div );
+        assertEquals( div.getAttributeValue( "class" ), "section" );
+
+        HtmlHeader2 h2 = (HtmlHeader2) elementIterator.next();
+        assertNotNull( h2 );
+        assertEquals( h2.asText().trim(), "List Section" );
+
+        HtmlAnchor a = (HtmlAnchor) elementIterator.next();
+        assertNotNull( a );
+        assertEquals( a.getAttributeValue( "name" ), "List_Section" );
+
+        // ----------------------------------------------------------------------
+        // Unordered lists
+        // ----------------------------------------------------------------------
+        div = (HtmlDivision) elementIterator.next();
+        assertNotNull( div );
+        assertEquals( div.getAttributeValue( "class" ), "section" );
+
+        HtmlHeader4 h4 = (HtmlHeader4) elementIterator.next();
+        assertNotNull( h4 );
+        assertEquals( h4.asText().trim(), "Unordered lists" );
+
+        HtmlParagraph p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Below is an unordered list, followed by six paragraphs."
);
+
+        HtmlUnorderedList ul = (HtmlUnorderedList) elementIterator.next();
+        assertNotNull( ul );
+
+        HtmlListItem li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 1." );
+
+        ul = (HtmlUnorderedList) elementIterator.next();
+        assertNotNull( ul );
+
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.getFirstDomChild().asText().trim(), "Item 11." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.getFirstDomChild().asText().trim(), "Item 12." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 13." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 14." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 2." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 3." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 4." );
+
+        ul = (HtmlUnorderedList) elementIterator.next();
+        assertNotNull( ul );
+
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 41." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 42." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 43." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 44." );
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 1 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 2 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 3 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 4 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 5 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 6 below list." );
+
+        // ----------------------------------------------------------------------
+        // Ordered lists
+        // ----------------------------------------------------------------------
+        div = (HtmlDivision) elementIterator.next();
+        assertNotNull( div );
+        assertEquals( div.getAttributeValue( "class" ), "section" );
+
+        h4 = (HtmlHeader4) elementIterator.next();
+        assertNotNull( h4 );
+        assertEquals( h4.asText().trim(), "Ordered lists" );
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Below is an ordered list, followed by six paragraphs."
);
+
+        HtmlOrderedList ol = (HtmlOrderedList) elementIterator.next();
+        assertNotNull( ol );
+
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 1." );
+
+        ol = (HtmlOrderedList) elementIterator.next();
+        assertNotNull( ol );
+
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 11." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 12." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 13." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 14." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 2." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 3." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 4." );
+
+        ol = (HtmlOrderedList) elementIterator.next();
+        assertNotNull( ol );
+
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 41." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 42." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 43." );
+        li = (HtmlListItem) elementIterator.next();
+        assertNotNull( li );
+        assertEquals( li.getFirstDomChild().asText().trim(), "Item 44." );
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 1 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 2 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 3 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 4 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 5 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 6 below list." );
+
+        // ----------------------------------------------------------------------
+        // Definition lists
+        // ----------------------------------------------------------------------
+        div = (HtmlDivision) elementIterator.next();
+        assertNotNull( div );
+        assertEquals( div.getAttributeValue( "class" ), "section" );
+
+        h4 = (HtmlHeader4) elementIterator.next();
+        assertNotNull( h4 );
+        assertEquals( h4.asText().trim(), "Definition lists" );
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Below is a definition list, followed by six paragraphs."
);
+
+        HtmlDefinitionList dl = (HtmlDefinitionList) elementIterator.next();
+        assertNotNull( dl );
+
+        HtmlDefinitionTerm dt = (HtmlDefinitionTerm) elementIterator.next();
+        assertNotNull( dt );
+        assertEquals( dt.getFirstDomChild().asText().trim(), "Term 1." );
+        HtmlDefinitionDescription dd = (HtmlDefinitionDescription) elementIterator.next();
+        assertNotNull( dd );
+        assertEquals( dd.getFirstDomChild().asText().trim(), "Description 1." );
+
+        dt = (HtmlDefinitionTerm) elementIterator.next();
+        assertNotNull( dt );
+        assertEquals( dt.getFirstDomChild().asText().trim(), "Term 2." );
+        dd = (HtmlDefinitionDescription) elementIterator.next();
+        assertNotNull( dd );
+        assertEquals( dd.getFirstDomChild().asText().trim(), "Description 2." );
+
+        dl = (HtmlDefinitionList) elementIterator.next();
+        assertNotNull( dl );
+        dt = (HtmlDefinitionTerm) elementIterator.next();
+        assertNotNull( dt );
+        assertEquals( dt.getFirstDomChild().asText().trim(), "Term 21." );
+        dd = (HtmlDefinitionDescription) elementIterator.next();
+        assertNotNull( dd );
+        assertEquals( dd.getFirstDomChild().asText().trim(), "Description 21." );
+
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 1 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 2 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 3 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 4 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 5 below list." );
+        p = (HtmlParagraph) elementIterator.next();
+        assertNotNull( p );
+        assertEquals( p.asText().trim(), "Paragraph 6 below list." );
+
+        assertFalse( elementIterator.hasNext() );
+    }
+}

Propchange: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/NestedItemsVerifier.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/NestedItemsVerifier.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message