You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2008/02/18 16:10:41 UTC

svn commit: r628777 - /maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugins/pdf/PdfMojoTest.java

Author: ltheussl
Date: Mon Feb 18 07:10:32 2008
New Revision: 628777

URL: http://svn.apache.org/viewvc?rev=628777&view=rev
Log:
Activate test for iText implementation

Modified:
    maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugins/pdf/PdfMojoTest.java

Modified: maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugins/pdf/PdfMojoTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugins/pdf/PdfMojoTest.java?rev=628777&r1=628776&r2=628777&view=diff
==============================================================================
--- maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugins/pdf/PdfMojoTest.java (original)
+++ maven/sandbox/trunk/plugins/maven-pdf-plugin/src/test/java/org/apache/maven/plugins/pdf/PdfMojoTest.java Mon Feb 18 07:10:32 2008
@@ -61,9 +61,9 @@
 
         mojo.execute();
 
-        assertTrue( "Pdf file not created!", pdfFile.exists() );
+        assertTrue( "FO: Pdf file not created!", pdfFile.exists() );
 
-        assertTrue( "Pdf file has no content!", pdfFile.length() > 0 );
+        assertTrue( "FO: Pdf file has no content!", pdfFile.length() > 0 );
     }
 
     /**
@@ -81,23 +81,18 @@
 
         assertNotNull( "pdf mojo not found!", mojo );
 
-        // TODO
-/*
-         File pdfFile = new File( getBasedir(), "/target/test-output/pdf/maven-pdf-plugin-doc.pdf" );
+        File pdfFile = new File( getBasedir(), "/target/test-output/pdf/index.pdf" );
 
         if ( pdfFile.exists() )
         {
             pdfFile.delete();
         }
- */
 
         mojo.execute();
 
-/*
-        assertTrue( "Pdf file not created!", pdfFile.exists() );
+        assertTrue( "iText: Pdf file not created!", pdfFile.exists() );
 
-        assertTrue( "Pdf file has no content!", pdfFile.length() > 0 );
- */
+        assertTrue( "iText: Pdf file has no content!", pdfFile.length() > 0 );
      }