Skip to content

Commit

Permalink
add some log to understand why fail on jenkins
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/maven/indexer/trunk@1367099 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Jul 30, 2012
1 parent 998c3df commit 74f9ea3
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -19,12 +19,6 @@
* 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;
Expand All @@ -36,6 +30,12 @@
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
{
Expand Down Expand Up @@ -157,7 +157,7 @@ public void testMissingArgs()
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() );
}
Expand Down Expand Up @@ -209,7 +209,7 @@ public void testInvalidRepo()
{
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 );
}
Expand All @@ -231,7 +231,7 @@ private void assertIndexFiles( final String indexDir )

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 );

Expand Down

0 comments on commit 74f9ea3

Please sign in to comment.