You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2017/09/08 19:46:30 UTC

svn commit: r1807812 - /maven/plugins/trunk/maven-jlink-plugin/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java

Author: khmarbaise
Date: Fri Sep  8 19:46:30 2017
New Revision: 1807812

URL: http://svn.apache.org/viewvc?rev=1807812&view=rev
Log:
Commented out test which actually does not work.

Modified:
    maven/plugins/trunk/maven-jlink-plugin/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java

Modified: maven/plugins/trunk/maven-jlink-plugin/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jlink-plugin/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java?rev=1807812&r1=1807811&r2=1807812&view=diff
==============================================================================
--- maven/plugins/trunk/maven-jlink-plugin/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java (original)
+++ maven/plugins/trunk/maven-jlink-plugin/src/test/java/org/apache/maven/plugins/jlink/AbsractJLinkMojoTest.java Fri Sep  8 19:46:30 2017
@@ -23,17 +23,11 @@ import static org.assertj.core.api.Asser
 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 );
+//
+//    }
 }