From commits-return-69261-archive-asf-public=cust-asf.ponee.io@maven.apache.org Thu Jan 4 16:46:54 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 468ED180657 for ; Thu, 4 Jan 2018 16:46:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 362A6160C2B; Thu, 4 Jan 2018 15:46:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7C330160C28 for ; Thu, 4 Jan 2018 16:46:53 +0100 (CET) Received: (qmail 83566 invoked by uid 500); 4 Jan 2018 15:46:52 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 83555 invoked by uid 99); 4 Jan 2018 15:46:52 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2018 15:46:52 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id F13EA85650; Thu, 4 Jan 2018 15:46:50 +0000 (UTC) Date: Thu, 04 Jan 2018 15:46:50 +0000 To: "commits@maven.apache.org" Subject: [maven-artifact-transfer] branch master updated: Fix Javadoc reported error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <151508081094.944.6461307514632901420@gitbox.apache.org> From: rfscholte@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: maven-artifact-transfer X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 7ec165bd77398076fa7a9a074f395bcabc411108 X-Git-Newrev: 64401d442c0a19236d07ad15d84fb1b97b97c182 X-Git-Rev: 64401d442c0a19236d07ad15d84fb1b97b97c182 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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.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.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" '].