You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ep...@apache.org on 2006/05/09 02:50:28 UTC
svn commit: r405248 - in /maven/plugins/trunk/maven-assembly-plugin/src/test:
java/org/apache/maven/plugin/assembly/AssemblyMojoTest.java
resources/assemblies/fileSet-doesnt-exist.xml
Author: epunzalan
Date: Mon May 8 17:50:27 2006
New Revision: 405248
URL: http://svn.apache.org/viewcvs?rev=405248&view=rev
Log:
PR: MASSEMBLY-88
Improved test case with a failure message instead of a test error
Modified:
maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/AssemblyMojoTest.java
maven/plugins/trunk/maven-assembly-plugin/src/test/resources/assemblies/fileSet-doesnt-exist.xml
Modified: maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/AssemblyMojoTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/AssemblyMojoTest.java?rev=405248&r1=405247&r2=405248&view=diff
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/AssemblyMojoTest.java (original)
+++ maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/AssemblyMojoTest.java Mon May 8 17:50:27 2006
@@ -443,10 +443,15 @@
}
public void testFileSetDirectoryDoesntExist()
- throws Exception
{
- executeMojo( "fileSet-doesnt-exist-plugin-config.xml" );
- assertTrue( true );
+ try
+ {
+ executeMojo( "fileSet-doesnt-exist-plugin-config.xml" );
+ }
+ catch ( Exception e )
+ {
+ fail( "Should not throw an exception on an empty assembly" );
+ }
}
private AssemblyMojo getMojo( String pluginXml )
Modified: maven/plugins/trunk/maven-assembly-plugin/src/test/resources/assemblies/fileSet-doesnt-exist.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-assembly-plugin/src/test/resources/assemblies/fileSet-doesnt-exist.xml?rev=405248&r1=405247&r2=405248&view=diff
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/src/test/resources/assemblies/fileSet-doesnt-exist.xml (original)
+++ maven/plugins/trunk/maven-assembly-plugin/src/test/resources/assemblies/fileSet-doesnt-exist.xml Mon May 8 17:50:27 2006
@@ -1,5 +1,5 @@
<!--
- ~ Copyright 2001-2005 The Apache Software Foundation.
+ ~ Copyright 2001-2006 The Apache Software Foundation.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.