maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1367099 - /maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/cli/AbstractNexusIndexerCliTest.java
Date Mon, 30 Jul 2012 14:11:32 GMT
Author: olamy
Date: Mon Jul 30 14:11:32 2012
New Revision: 1367099

URL: http://svn.apache.org/viewvc?rev=1367099&view=rev
Log:
add some log to understand why fail on jenkins

Modified:
    maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/cli/AbstractNexusIndexerCliTest.java

Modified: maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/cli/AbstractNexusIndexerCliTest.java
URL: http://svn.apache.org/viewvc/maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/cli/AbstractNexusIndexerCliTest.java?rev=1367099&r1=1367098&r2=1367099&view=diff
==============================================================================
--- maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/cli/AbstractNexusIndexerCliTest.java
(original)
+++ maven/indexer/trunk/indexer-core/src/test/java/org/apache/maven/index/cli/AbstractNexusIndexerCliTest.java
Mon Jul 30 14:11:32 2012
@@ -19,12 +19,6 @@ package org.apache.maven.index.cli;
  * under the License.
  */
 
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.List;
-import java.util.Random;
-
 import org.apache.lucene.search.Query;
 import org.apache.maven.index.FlatSearchRequest;
 import org.apache.maven.index.FlatSearchResponse;
@@ -36,6 +30,12 @@ import org.apache.maven.index.context.In
 import org.codehaus.plexus.PlexusTestCase;
 import org.codehaus.plexus.util.FileUtils;
 
+import java.io.File;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.List;
+import java.util.Random;
+
 public abstract class AbstractNexusIndexerCliTest
     extends PlexusTestCase
 {
@@ -157,7 +157,7 @@ public abstract class AbstractNexusIndex
         code = execute( "--repository", "--index", "-d" );
         output = out.toString();
         assertEquals( output, 1, code );
-        assertTrue( "Should print bad usage", output.contains( usage ) );
+        assertTrue( "Should print bad usage but '" + output + "'", output.contains( usage
) );
 
         assertFalse( "Index file was generated", new File( INDEX_DIR ).exists() );
     }
@@ -209,7 +209,7 @@ public abstract class AbstractNexusIndex
     {
         int code =
             execute( "-r", new File( "target/undexinting/repo/to/try/what/will/happen/here"
).getCanonicalPath(), "-i",
-                INDEX_DIR, "-d", DEST_DIR );
+                     INDEX_DIR, "-d", DEST_DIR );
         String output = out.toString();
         assertEquals( output, 1, code );
     }
@@ -231,7 +231,7 @@ public abstract class AbstractNexusIndex
 
             context =
                 indexer.addIndexingContext( "index", "index", new File( TEST_REPO ), new
File( indexDir ), null, null,
-                    indexCreators );
+                                            indexCreators );
 
             assertFalse( "No index file was generated", new File( indexDir ).list().length
== 0 );
 



Mime
View raw message