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

elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 19fa2a8  remove debugging code (#41)
19fa2a8 is described below

commit 19fa2a8566a8e8a47d72579c481bb1f23d8f106c
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Mon Mar 30 12:24:12 2020 -0400

    remove debugging code (#41)
---
 .../fromConfiguration/TestUnpackMojo.java           | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git 
a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
 
b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
index eb3ae75..91b0640 100644
--- 
a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
+++ 
b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
@@ -19,7 +19,6 @@ package org.apache.maven.plugins.dependency.fromConfiguration;
  * under the License.    
  */
 
-import org.apache.commons.lang.time.DateFormatUtils;
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.versioning.VersionRange;
 import org.apache.maven.execution.MavenSession;
@@ -566,35 +565,15 @@ public class TestUnpackMojo
         File marker = new File( mojo.getMarkersDirectory(), 
artifact.getId().replace( ':', '-' ) + ".marker" );
         assertTrue( marker.setLastModified( time ) );
 
-        displayFile( "unpackedFile", unpackedFile );
-        displayFile( "artifact    ", artifact.getFile() );
-        displayFile( "marker      ", marker );
-        System.out.println( "mojo.execute()" );
         mojo.execute();
-        displayFile( "unpackedFile", unpackedFile );
-        displayFile( "artifact    ", artifact.getFile() );
-        displayFile( "marker      ", marker );
 
         long markerLastModifiedMillis = Files.getLastModifiedTime( 
marker.toPath() ).toMillis();
         long unpackedFileLastModifiedMillis = Files.getLastModifiedTime( 
unpackedFile.toPath() ).toMillis();
 
-        System.out.println( "marker.lastModified() = " + marker.lastModified() 
);
-        System.out.println( "unpackedFile.lastModified() = " + 
unpackedFile.lastModified() );
-        System.out.println( "markerLastModifiedMillis = " + 
markerLastModifiedMillis );
-        System.out.println( "unpackedFileLastModifiedMillis = " + 
unpackedFileLastModifiedMillis );
-
         assertTrue( "unpackedFile '" + unpackedFile + "' lastModified() == " + 
markerLastModifiedMillis
                 + ": should be different", markerLastModifiedMillis != 
unpackedFileLastModifiedMillis );
     }
 
-    private void displayFile( String description, File file ) throws 
IOException
-    {
-        long toMillis = Files.getLastModifiedTime( file.toPath() ).toMillis();
-        System.out.println( description + ' ' + 
DateFormatUtils.ISO_DATETIME_FORMAT.format(
-                file.lastModified() ) + ' ' + toMillis + ' ' + 
file.getPath().substring(
-                getBasedir().length() ) );
-    }
-
     public void assertUnpacked( ArtifactItem item, boolean overWrite )
         throws Exception
     {

Reply via email to