You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by lt...@apache.org on 2009/02/25 08:55:44 UTC

svn commit: r747700 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkEventTestingSink.java

Author: ltheussl
Date: Wed Feb 25 07:55:43 2009
New Revision: 747700

URL: http://svn.apache.org/viewvc?rev=747700&view=rev
Log:
Take into account SinkEventAttributes in corresponding methods of SinkEventTestingSink.

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkEventTestingSink.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkEventTestingSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkEventTestingSink.java?rev=747700&r1=747699&r2=747700&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkEventTestingSink.java (original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkEventTestingSink.java Wed Feb 25 07:55:43 2009
@@ -599,37 +599,37 @@
     /** {@inheritDoc} */
     public void head( SinkEventAttributes attributes )
     {
-        head();
+        addEvent( "head", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void title( SinkEventAttributes attributes )
     {
-        title();
+        addEvent( "title", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void author( SinkEventAttributes attributes )
     {
-        author();
+        addEvent( "author", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void date( SinkEventAttributes attributes )
     {
-        date();
+        addEvent( "date", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void body( SinkEventAttributes attributes )
     {
-        body();
+        addEvent( "body", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void section( int level, SinkEventAttributes attributes )
     {
-        addEvent( "section" + level );
+        addEvent( "section" + level, new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
@@ -641,7 +641,7 @@
     /** {@inheritDoc} */
     public void sectionTitle( int level, SinkEventAttributes attributes )
     {
-        addEvent( "sectionTitle" + level );
+        addEvent( "sectionTitle" + level, new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
@@ -654,49 +654,49 @@
     /** {@inheritDoc} */
     public void list( SinkEventAttributes attributes )
     {
-        list();
+        addEvent( "list", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void listItem( SinkEventAttributes attributes )
     {
-        listItem();
+        addEvent( "listItem", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void numberedList( int numbering, SinkEventAttributes attributes )
     {
-        numberedList( numbering );
+        addEvent( "numberedList", new Object[] {new Integer( numbering ), attributes} );
     }
 
     /** {@inheritDoc} */
     public void numberedListItem( SinkEventAttributes attributes )
     {
-        numberedListItem();
+        addEvent( "numberedListItem", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void definitionList( SinkEventAttributes attributes )
     {
-        definitionList();
+        addEvent( "definitionList", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void definitionListItem( SinkEventAttributes attributes )
     {
-        definitionListItem();
+        addEvent( "definitionListItem", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void definition( SinkEventAttributes attributes )
     {
-        definition();
+        addEvent( "definition", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void definedTerm( SinkEventAttributes attributes )
     {
-        definedTerm();
+        addEvent( "definedTerm", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
@@ -708,91 +708,91 @@
     /** {@inheritDoc} */
     public void figureCaption( SinkEventAttributes attributes )
     {
-        figureCaption();
+        addEvent( "figureCaption", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void figureGraphics( String src, SinkEventAttributes attributes )
     {
-        figureGraphics( src );
+        addEvent( "figureGraphics", new Object[] {src, attributes} );
     }
 
     /** {@inheritDoc} */
     public void table( SinkEventAttributes attributes )
     {
-        table();
+        addEvent( "table", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void tableRow( SinkEventAttributes attributes )
     {
-        tableRow();
+        addEvent( "tableRow", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void tableCell( SinkEventAttributes attributes )
     {
-        tableCell();
+        addEvent( "tableCell", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void tableHeaderCell( SinkEventAttributes attributes )
     {
-        tableHeaderCell();
+        addEvent( "tableHeaderCell", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void tableCaption( SinkEventAttributes attributes )
     {
-        tableCaption();
+        addEvent( "tableCaption", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void paragraph( SinkEventAttributes attributes )
     {
-        paragraph();
+        addEvent( "paragraph", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void verbatim( SinkEventAttributes attributes )
     {
-        verbatim( false );
+        addEvent( "verbatim", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void horizontalRule( SinkEventAttributes attributes )
     {
-        horizontalRule();
+        addEvent( "horizontalRule", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void anchor( String name, SinkEventAttributes attributes )
     {
-        anchor( name );
+        addEvent( "anchor", new Object[] {name, attributes} );
     }
 
     /** {@inheritDoc} */
     public void link( String name, SinkEventAttributes attributes )
     {
-        link( name );
+        addEvent( "link", new Object[] {name, attributes} );
     }
 
     /** {@inheritDoc} */
     public void lineBreak( SinkEventAttributes attributes )
     {
-        lineBreak();
+        addEvent( "lineBreak", new Object[] {attributes} );
     }
 
     /** {@inheritDoc} */
     public void text( String text, SinkEventAttributes attributes )
     {
-        text( text );
+        addEvent( "text", new Object[] {text, attributes} );
     }
 
     /** {@inheritDoc} */
     public void unknown( String name, Object[] requiredParams, SinkEventAttributes attributes )
     {
-        addEvent( name, requiredParams );
+        addEvent( name, new Object[] {requiredParams, attributes} );
     }
 
       //