You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2008/02/19 03:03:27 UTC
svn commit: r628964 - in
/maven/plugin-tools/trunk/maven-plugin-testing-harness/src:
main/java/org/apache/maven/plugin/testing/
main/java/org/apache/maven/plugin/testing/stubs/
test/java/org/apache/maven/plugin/testing/
Author: vsiveton
Date: Mon Feb 18 18:03:14 2008
New Revision: 628964
URL: http://svn.apache.org/viewvc?rev=628964&view=rev
Log:
o minor javadoc updates
Modified:
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ConfigurationException.java
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactResolver.java
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ArtifactStubFactoryTest.java
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorMojo.java
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorTest.java
maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/MojoTestCaseTest.java
Modified: maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ConfigurationException.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ConfigurationException.java?rev=628964&r1=628963&r2=628964&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ConfigurationException.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/ConfigurationException.java Mon Feb 18 18:03:14 2008
@@ -25,20 +25,34 @@
* @author jesse
* @version $Id$
*/
-public class ConfigurationException extends Exception
+public class ConfigurationException
+ extends Exception
{
+ /** serialVersionUID */
+ static final long serialVersionUID = -6180939638742159065L;
+
+ /**
+ * @param message The detailed message.
+ */
public ConfigurationException( String message )
{
- super(message);
+ super( message );
}
+ /**
+ * @param cause The detailed cause.
+ */
public ConfigurationException( Throwable cause )
{
- super(cause);
+ super( cause );
}
+ /**
+ * @param message The detailed message.
+ * @param cause The detailed cause.
+ */
public ConfigurationException( String message, Throwable cause )
{
- super(message, cause);
+ super( message, cause );
}
}
Modified: maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactResolver.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactResolver.java?rev=628964&r1=628963&r2=628964&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactResolver.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactResolver.java Mon Feb 18 18:03:14 2008
@@ -65,13 +65,10 @@
this.factory = factory;
}
- /*
+ /**
* Creates dummy file and sets it in the artifact to simulate resolution
- * (non-Javadoc)
*
- * @see org.apache.maven.artifact.resolver.ArtifactResolver#resolve(org.apache.maven.artifact.Artifact,
- * java.util.List,
- * org.apache.maven.artifact.repository.ArtifactRepository)
+ * @see org.apache.maven.artifact.resolver.ArtifactResolver#resolve(org.apache.maven.artifact.Artifact, java.util.List, org.apache.maven.artifact.repository.ArtifactRepository)
*/
public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository )
throws ArtifactResolutionException, ArtifactNotFoundException
Modified: maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ArtifactStubFactoryTest.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ArtifactStubFactoryTest.java?rev=628964&r1=628963&r2=628964&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ArtifactStubFactoryTest.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ArtifactStubFactoryTest.java Mon Feb 18 18:03:14 2008
@@ -1,5 +1,24 @@
package org.apache.maven.plugin.testing;
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
import java.io.IOException;
import junit.framework.TestCase;
@@ -14,9 +33,8 @@
assertFalse(factory.getReleaseArtifact().isSnapshot());
assertTrue(factory.getSnapshotArtifact().isSnapshot());
assertFalse(factory.getSnapshotArtifact().isRelease());
-
}
-
+
public void testCreateFiles() throws IOException
{
ArtifactStubFactory factory = new ArtifactStubFactory();
Modified: maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorMojo.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorMojo.java?rev=628964&r1=628963&r2=628964&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorMojo.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorMojo.java Mon Feb 18 18:03:14 2008
@@ -38,6 +38,7 @@
private String workdir;
+ /** {@inheritDoc} */
public void execute()
throws MojoExecutionException, MojoFailureException
{
Modified: maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorTest.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorTest.java?rev=628964&r1=628963&r2=628964&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorTest.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorTest.java Mon Feb 18 18:03:14 2008
@@ -37,6 +37,7 @@
private PlexusConfiguration pluginConfiguration;
+ /** {@inheritDoc} */
protected void setUp()
throws Exception
{
@@ -64,6 +65,9 @@
pluginConfiguration = extractPluginConfiguration( "maven-test-mojo", pomDom );
}
+ /**
+ * @throws Exception if any
+ */
public void testInjection()
throws Exception
{
Modified: maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/MojoTestCaseTest.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/MojoTestCaseTest.java?rev=628964&r1=628963&r2=628964&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/MojoTestCaseTest.java (original)
+++ maven/plugin-tools/trunk/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/MojoTestCaseTest.java Mon Feb 18 18:03:14 2008
@@ -39,6 +39,7 @@
private PlexusConfiguration pluginConfiguration;
+ /** {@inheritDoc} */
protected void setUp()
throws Exception
{
@@ -64,6 +65,9 @@
pluginConfiguration = extractPluginConfiguration( "maven-simple-plugin", pomDom );
}
+ /**
+ * @throws Exception if any
+ */
public void testPluginConfigurationExtraction()
throws Exception
{
@@ -72,6 +76,9 @@
assertEquals( "valueTwo", pluginConfiguration.getChild( "keyTwo" ).getValue() );
}
+ /**
+ * @throws Exception if any
+ */
public void testMojoConfiguration()
throws Exception
{
@@ -84,6 +91,9 @@
assertEquals( "valueTwo", mojo.getKeyTwo() );
}
+ /**
+ * @throws Exception if any
+ */
public void testVariableAccessWithoutGetter()
throws Exception
{
@@ -96,7 +106,9 @@
assertEquals( "valueTwo", (String)getVariableValueFromObject( mojo, "keyTwo" ) );
}
-
+ /**
+ * @throws Exception if any
+ */
public void testVariableAccessWithoutGetter2()
throws Exception
{
@@ -111,7 +123,9 @@
assertEquals( "valueTwo", (String)map.get( "keyTwo" ) );
}
-
+ /**
+ * @throws Exception if any
+ */
public void testSettingMojoVariables()
throws Exception
{