Author: vsiveton
Date: Thu Feb 28 18:23:18 2008
New Revision: 632209
URL: http://svn.apache.org/viewvc?rev=632209&view=rev
Log:
MPLUGIN-46: [maven-plugin-testing-harness-1.0-beta-1]
AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration
directly under plugin (configuration under executions/execution doesn't work)
Submitted by: Jimisola Laursen
Reviewed by: Vincent Siveton
o applied
Modified:
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
Modified:
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
URL:
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java?rev=632209&r1=632208&r2=632209&view=diff
==============================================================================
---
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
(original)
+++
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/AbstractMojoTestCase.java
Thu Feb 28 18:23:18 2008
@@ -248,6 +248,11 @@
break;
}
}
+
+ if ( pluginConfigurationElement == null )
+ {
+ throw new ConfigurationException( "Cannot find a
configuration element for a plugin with an artifactId of " + artifactId + "." );
+ }
}
}