You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/09 15:27:54 UTC

[maven-jlink-plugin] 28/38: Commented out test which actually does not work.

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

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

commit 57e3cef26b9a8e83356e185abec3fb21e4afc8ee
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Fri Sep 8 19:46:30 2017 +0000

    Commented out test which actually does not work.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1807812 13f79535-47bb-0310-9956-ffa450edef68
---
 .../maven/plugins/jlink/AbsractJLinkMojoTest.java  | 48 ++++++++++------------
 1 file changed, 21 insertions(+), 27 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java b/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java
index 630abd8..754bdfe 100644
--- a/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java
@@ -23,17 +23,11 @@ import static org.assertj.core.api.Assertions.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-import java.io.ByteArrayOutputStream;
 import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
 import java.util.Arrays;
 import java.util.Collections;
 
-import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.logging.Log;
-import org.codehaus.plexus.util.cli.CommandLineException;
-import org.codehaus.plexus.util.cli.Commandline;
 import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Mockito;
@@ -115,25 +109,25 @@ public class AbsractJLinkMojoTest
         assertThat( result ).isEqualTo( "A,B" );
     }
 
-    @Test
-    public void xxx()
-        throws MojoExecutionException, IOException, CommandLineException
-    {
-        Process p = mock( Process.class );
-
-        String b = "Error occured";
-        byte[] bytes = b.getBytes();
-        ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        baos.write( bytes );
-        
-        when (p.getOutputStream()).thenReturn( baos );
-        
-        Commandline cmd = mock( Commandline.class );
-        when (cmd.execute()).thenReturn( p );
-        
-        File outputDirectory = mock( File.class );
-
-        mojoMock.executeCommand( cmd, outputDirectory );
-
-    }
+//    @Test
+//    public void xxx()
+//        throws MojoExecutionException, IOException, CommandLineException
+//    {
+//        Process p = mock( Process.class );
+//
+//        String b = "Error occured";
+//        byte[] bytes = b.getBytes();
+//        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+//        baos.write( bytes );
+//        
+//        when (p.getOutputStream()).thenReturn( baos );
+//        
+//        Commandline cmd = mock( Commandline.class );
+//        when (cmd.execute()).thenReturn( p );
+//        
+//        File outputDirectory = mock( File.class );
+//
+//        mojoMock.executeCommand( cmd, outputDirectory );
+//
+//    }
 }

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