maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From och...@apache.org
Subject svn commit: r399593 - in /maven/plugins/trunk/maven-jxr-plugin/src/test: java/org/apache/maven/plugin/jxr/JxrReportTest.java resources/unit/default-configuration/exception-test-plugin-config.xml
Date Thu, 04 May 2006 07:55:39 GMT
Author: oching
Date: Thu May  4 00:55:37 2006
New Revision: 399593

URL: http://svn.apache.org/viewcvs?rev=399593&view=rev
Log:
PR: MJXR-10

Created test for exceptions.

Added:
    maven/plugins/trunk/maven-jxr-plugin/src/test/resources/unit/default-configuration/exception-test-plugin-config.xml
Modified:
    maven/plugins/trunk/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/JxrReportTest.java

Modified: maven/plugins/trunk/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/JxrReportTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/JxrReportTest.java?rev=399593&r1=399592&r2=399593&view=diff
==============================================================================
--- maven/plugins/trunk/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/JxrReportTest.java
(original)
+++ maven/plugins/trunk/maven-jxr-plugin/src/test/java/org/apache/maven/plugin/jxr/JxrReportTest.java
Thu May  4 00:55:37 2006
@@ -253,6 +253,24 @@
 
     }
 
+    public void testExceptions()
+        throws Exception
+    {
+        try
+        {
+            File testPom =
+                new File( getBasedir(), "src/test/resources/unit/default-configuration/exception-test-plugin-config.xml"
);
+            JxrReport mojo = (JxrReport) lookupMojo( "jxr", testPom );
+            mojo.execute();
+
+            fail( "Must throw exception");
+        }
+        catch ( Exception e )
+        {
+            assertTrue( true );
+        }
+    }
+
     protected void tearDown()
         throws Exception
     {

Added: maven/plugins/trunk/maven-jxr-plugin/src/test/resources/unit/default-configuration/exception-test-plugin-config.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-jxr-plugin/src/test/resources/unit/default-configuration/exception-test-plugin-config.xml?rev=399593&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jxr-plugin/src/test/resources/unit/default-configuration/exception-test-plugin-config.xml
(added)
+++ maven/plugins/trunk/maven-jxr-plugin/src/test/resources/unit/default-configuration/exception-test-plugin-config.xml
Thu May  4 00:55:37 2006
@@ -0,0 +1,43 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>def.configuration</groupId>
+  <artifactId>default-configuration</artifactId>
+  <packaging>jar</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <inceptionYear>2006</inceptionYear>
+  <name>Maven Jxr Plugin Default Configuration Test</name>
+  <url>http://maven.apache.org</url>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jxr-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.maven.plugin.jxr.stubs.DefaultConfigurationMavenProjectStub"/>
+          <outputDirectory>${basedir}/target/test/unit/default-configuration/target/site</outputDirectory>
+          <docTitle>Maven Jxr Plugin Default Configuration Test 1.0-SNAPSHOT Reference</docTitle>
+          <inputEncoding>ISO-8859-1</inputEncoding>
+          <outputEncoding>ISO-8859-1</outputEncoding>
+          <sourceDirs>
+            <value>${basedir}/src/test/resources/unit/default-configuration</value>
+          </sourceDirs>
+          <destDir>${basedir}/target/test/unit/default-configuration/target/site/xref</destDir>
+          <javadocDir>${basedir}/target/test/unit/default-configuration/target/site/apidocs</javadocDir>
+          <linkJavadoc>true</linkJavadoc>
+          <aggregate>false</aggregate>
+          <bottom>Copyright 2006 Apache Foundation</bottom>
+          <templateDir>temp</templateDir>
+          <stylesheet>stylesheet.css</stylesheet>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>



Mime
View raw message