maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject [maven-artifact-transfer] branch master updated: Fix Javadoc reported error
Date Thu, 04 Jan 2018 15:46:50 GMT
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-artifact-transfer.git


The following commit(s) were added to refs/heads/master by this push:
     new 64401d4  Fix Javadoc reported error
64401d4 is described below

commit 64401d442c0a19236d07ad15d84fb1b97b97c182
Author: rfscholte <rfscholte@apache.org>
AuthorDate: Thu Jan 4 16:46:44 2018 +0100

    Fix Javadoc reported error
---
 .../internal/DefaultArtifactDeployerTest.java      | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/test/java/org/apache/maven/shared/artifact/deploy/internal/DefaultArtifactDeployerTest.java
b/src/test/java/org/apache/maven/shared/artifact/deploy/internal/DefaultArtifactDeployerTest.java
index f8fca0e..cfd9587 100644
--- a/src/test/java/org/apache/maven/shared/artifact/deploy/internal/DefaultArtifactDeployerTest.java
+++ b/src/test/java/org/apache/maven/shared/artifact/deploy/internal/DefaultArtifactDeployerTest.java
@@ -25,8 +25,10 @@ import java.util.Collections;
 
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.project.ProjectBuildingRequest;
+import org.apache.maven.shared.artifact.deploy.ArtifactDeployer;
 import org.apache.maven.shared.artifact.deploy.ArtifactDeployerException;
 import org.apache.maven.shared.artifact.deploy.internal.DefaultArtifactDeployer;
+import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -40,13 +42,19 @@ public class DefaultArtifactDeployerTest
 {
     @Rule
     public ExpectedException thrown = ExpectedException.none();
+    
+    private ArtifactDeployer dap;
+    
+    @Before
+    public void setUp()
+    {
+        dap = new DefaultArtifactDeployer();
+    }
 
     @Test
     public void deployShouldReturnIllegalArgumentExceptionForFirstParameterWithNull()
         throws ArtifactDeployerException
     {
-        DefaultArtifactDeployer dap = new DefaultArtifactDeployer();
-
         thrown.expect( IllegalArgumentException.class );
         thrown.expectMessage( "The parameter request is not allowed to be null." );
         dap.deploy( null, Collections.<Artifact>emptyList() );
@@ -56,8 +64,6 @@ public class DefaultArtifactDeployerTest
     public void deployShouldReturnIllegalArgumentExceptionForSecondParameterWithNull()
         throws ArtifactDeployerException
     {
-        DefaultArtifactDeployer dap = new DefaultArtifactDeployer();
-
         thrown.expect( IllegalArgumentException.class );
         thrown.expectMessage( "The parameter mavenArtifacts is not allowed to be null." );
         ProjectBuildingRequest pbr = mock( ProjectBuildingRequest.class );
@@ -68,8 +74,6 @@ public class DefaultArtifactDeployerTest
     public void deployShouldReturnIllegalArgumentExceptionForSecondParameterWithEmpty()
         throws ArtifactDeployerException
     {
-        DefaultArtifactDeployer dap = new DefaultArtifactDeployer();
-
         thrown.expect( IllegalArgumentException.class );
         thrown.expectMessage( "The collection mavenArtifacts is not allowed to be empty."
);
         ProjectBuildingRequest pbr = mock( ProjectBuildingRequest.class );
@@ -81,8 +85,6 @@ public class DefaultArtifactDeployerTest
     public void deploy3ParametersShouldReturnIllegalArgumentExceptionForFirstParameterWithNull()
         throws ArtifactDeployerException
     {
-        DefaultArtifactDeployer dap = new DefaultArtifactDeployer();
-
         thrown.expect( IllegalArgumentException.class );
         thrown.expectMessage( "The parameter request is not allowed to be null." );
         dap.deploy( null, null, Collections.<Artifact>emptyList() );
@@ -92,8 +94,6 @@ public class DefaultArtifactDeployerTest
     public void deploy3ParametersShouldReturnIllegalArgumentExceptionForSecondParameterWithNull()
         throws ArtifactDeployerException
     {
-        DefaultArtifactDeployer dap = new DefaultArtifactDeployer();
-
         thrown.expect( IllegalArgumentException.class );
         thrown.expectMessage( "The parameter mavenArtifacts is not allowed to be null." );
         ProjectBuildingRequest pbr = mock( ProjectBuildingRequest.class );
@@ -104,8 +104,6 @@ public class DefaultArtifactDeployerTest
     public void deploy3ParametersShouldReturnIllegalArgumentExceptionForSecondParameterWithEmpty()
         throws ArtifactDeployerException
     {
-        DefaultArtifactDeployer dap = new DefaultArtifactDeployer();
-
         thrown.expect( IllegalArgumentException.class );
         thrown.expectMessage( "The collection mavenArtifacts is not allowed to be empty."
);
         ProjectBuildingRequest pbr = mock( ProjectBuildingRequest.class );

-- 
To stop receiving notification emails like this one, please contact
['"commits@maven.apache.org" <commits@maven.apache.org>'].

Mime
View raw message