maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r1125262 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoConfigurationTest.java
Date Fri, 20 May 2011 07:23:00 GMT
Author: ltheussl
Date: Fri May 20 07:23:00 2011
New Revision: 1125262

URL: http://svn.apache.org/viewvc?rev=1125262&view=rev
Log:
use simpler example for test

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoConfigurationTest.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoConfigurationTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoConfigurationTest.java?rev=1125262&r1=1125261&r2=1125262&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoConfigurationTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-fo/src/test/java/org/apache/maven/doxia/module/fo/FoConfigurationTest.java
Fri May 20 07:23:00 2011
@@ -43,8 +43,8 @@ public class FoConfigurationTest
         assertEquals( "Non existent attribute ID should return empty string!", "",
                       config.getAttributeString( "a.dummy.attribute" ) );
 
-        assertEquals( "Wrong attributes returned for body.pre!", " font-family=\"monospace\"
font-size=\"10pt\"",
-                      config.getAttributeString( "body.pre" ) );
+        assertEquals( "Wrong attributes returned for italic!", " font-style=\"italic\"",
+                      config.getAttributeString( "italic" ) );
     }
 
     /** Tests the getAttributeSet( String ) method. */
@@ -60,11 +60,10 @@ public class FoConfigurationTest
                     config.getAttributeSet( "a.dummy.attribute" ) );
 
         MutableAttributeSet expected = new SimpleAttributeSet();
-        expected.addAttribute( "font-size", "10pt" );
-        expected.addAttribute( "font-family", "monospace" );
-        MutableAttributeSet actual = config.getAttributeSet( "body.pre" );
+        expected.addAttribute( "font-style", "italic" );
+        MutableAttributeSet actual = config.getAttributeSet( "italic" );
 
-        assertTrue( "Wrong AttributeSet returned for body.pre!", expected.isEqual( actual
) );
+        assertTrue( "Wrong AttributeSet returned for italic!", expected.isEqual( actual )
);
     }
 
 }



Mime
View raw message