Author: olamy
Date: Tue Oct 11 09:55:29 2011
New Revision: 1181677

URL: http://svn.apache.org/viewvc?rev=1181677&view=rev
Log:
increase timeout

Added:
    maven/sandbox/trunk/central-indexer-test/src/test/resources/
    maven/sandbox/trunk/central-indexer-test/src/test/resources/log4j.xml   
(with props)
Modified:
    
maven/sandbox/trunk/central-indexer-test/src/test/java/org/apache/maven/indexer/test/OsgiTest.java

Modified: 
maven/sandbox/trunk/central-indexer-test/src/test/java/org/apache/maven/indexer/test/OsgiTest.java
URL: 
http://svn.apache.org/viewvc/maven/sandbox/trunk/central-indexer-test/src/test/java/org/apache/maven/indexer/test/OsgiTest.java?rev=1181677&r1=1181676&r2=1181677&view=diff
==============================================================================
--- 
maven/sandbox/trunk/central-indexer-test/src/test/java/org/apache/maven/indexer/test/OsgiTest.java
 (original)
+++ 
maven/sandbox/trunk/central-indexer-test/src/test/java/org/apache/maven/indexer/test/OsgiTest.java
 Tue Oct 11 09:55:29 2011
@@ -1,6 +1,7 @@
 package org.apache.maven.indexer.test;
 
 import org.apache.commons.io.FileUtils;
+import org.apache.http.HttpHeaders;
 import org.apache.lucene.search.BooleanClause;
 import org.apache.lucene.search.BooleanQuery;
 import org.apache.maven.index.FlatSearchRequest;
@@ -18,6 +19,7 @@ import org.apache.maven.wagon.ResourceDo
 import org.apache.maven.wagon.TransferFailedException;
 import org.apache.maven.wagon.Wagon;
 import org.apache.maven.wagon.authorization.AuthorizationException;
+import org.apache.maven.wagon.providers.http.HttpWagon;
 import org.apache.maven.wagon.repository.Repository;
 import org.codehaus.plexus.PlexusTestCase;
 
@@ -29,6 +31,7 @@ import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.Properties;
 
 /**
  * Unit test for simple App.
@@ -62,7 +65,9 @@ public class OsgiTest
             nexusIndexer.addIndexingContext( "id", "id", repo, indexDirectory, 
repo.toURI( ).toURL( ).toExternalForm( ),
                                              indexDirectory.toURI( ).toURL( 
).toString( ), indexCreators );
 
-        final Wagon httpWagon = lookup( Wagon.class, "http" );
+        final HttpWagon httpWagon = (HttpWagon) lookup( Wagon.class, "http" );
+
+        httpWagon.setTimeout( 10000 );
 
         httpWagon.connect( new Repository( "central", 
"http://repo1.maven.org/maven2/.index"; ) );
 

Added: maven/sandbox/trunk/central-indexer-test/src/test/resources/log4j.xml
URL: 
http://svn.apache.org/viewvc/maven/sandbox/trunk/central-indexer-test/src/test/resources/log4j.xml?rev=1181677&view=auto
==============================================================================
--- maven/sandbox/trunk/central-indexer-test/src/test/resources/log4j.xml 
(added)
+++ maven/sandbox/trunk/central-indexer-test/src/test/resources/log4j.xml Tue 
Oct 11 09:55:29 2011
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~  http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";>
+
+  <appender name="console" class="org.apache.log4j.ConsoleAppender">
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%d [%t] %-5p %c %x - %m%n"/>
+    </layout>
+  </appender>
+
+  <logger name="org.apache.http.wire">
+    <level value="debug"/>
+  </logger>
+  <logger name="org.apache.http.headers">
+    <level value="debug"/>
+  </logger>
+
+
+  <root>
+    <priority value ="info" />
+    <appender-ref ref="console" />
+  </root>
+
+</log4j:configuration>

Propchange: 
maven/sandbox/trunk/central-indexer-test/src/test/resources/log4j.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/sandbox/trunk/central-indexer-test/src/test/resources/log4j.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision


Reply via email to