You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2020/06/04 01:44:33 UTC

[maven-integration-testing] branch MNG-5868-no_duplicate_artifacts_in_attached_artifacts updated: no need of this boolean

This is an automated email from the ASF dual-hosted git repository.

olamy pushed a commit to branch MNG-5868-no_duplicate_artifacts_in_attached_artifacts
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git


The following commit(s) were added to refs/heads/MNG-5868-no_duplicate_artifacts_in_attached_artifacts by this push:
     new 1276f6e  no need of this boolean
1276f6e is described below

commit 1276f6e96419460a1bbe4492421a5a86d3830a36
Author: olivier lamy <ol...@apache.org>
AuthorDate: Thu Jun 4 11:44:15 2020 +1000

    no need of this boolean
    
    Signed-off-by: olivier lamy <ol...@apache.org>
---
 .../apache/maven/it/MavenITmng5868NoDuplicateAttachedArtifacts.java   | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5868NoDuplicateAttachedArtifacts.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5868NoDuplicateAttachedArtifacts.java
index 9e828cf..2c8549f 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5868NoDuplicateAttachedArtifacts.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5868NoDuplicateAttachedArtifacts.java
@@ -49,8 +49,6 @@ public class MavenITmng5868NoDuplicateAttachedArtifacts
 
     private int port;
 
-    private boolean deployed;
-
     private int deployedJarArtifactNumber = 0;
 
     public MavenITmng5868NoDuplicateAttachedArtifacts()
@@ -74,7 +72,6 @@ public class MavenITmng5868NoDuplicateAttachedArtifacts
 
                 if ( "PUT".equalsIgnoreCase( request.getMethod() ) )
                 {
-                    deployed = true;
                     String uri = request.getRequestURI();
                     if (uri.startsWith( "/repo/org/apache/maven/its/mng5868/mng5868/1.0-SNAPSHOT/mng5868-1.0" ) && uri.endsWith( "-run.jar" ))
                     {
@@ -132,7 +129,6 @@ public class MavenITmng5868NoDuplicateAttachedArtifacts
         verifier.executeGoals( Arrays.asList("org.apache.maven.its.plugins:maven-it-plugin-artifact:2.1-SNAPSHOT:attach", "deploy" ) );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
-        assertTrue( deployed );
         assertEquals("deployedJarArtifactNumber: " + deployedJarArtifactNumber, 1, deployedJarArtifactNumber );
     }