]> source.dussan.org Git - archiva.git/commitdiff
ensure we don't have anymore proxy connectors for this unit test
authorOlivier Lamy <olamy@apache.org>
Wed, 15 Jun 2011 20:24:50 +0000 (20:24 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 15 Jun 2011 20:24:50 +0000 (20:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1136176 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletNoProxyTest.java

index 1954a570faaa960532bed37b7db54c83d93819ef..143e8a8891b797047c7cc695edd0310220061336 100644 (file)
@@ -23,9 +23,12 @@ import com.meterware.httpunit.GetMethodWebRequest;
 import com.meterware.httpunit.WebRequest;
 import com.meterware.httpunit.WebResponse;
 import org.apache.commons.io.FileUtils;
+import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
+import org.junit.Before;
 import org.junit.Test;
 
 import java.io.File;
+import java.util.ArrayList;
 
 /**
  * RepositoryServletTest
@@ -35,6 +38,15 @@ import java.io.File;
 public class RepositoryServletNoProxyTest
     extends AbstractRepositoryServletTestCase
 {
+
+    @Before
+    public void setUp()
+        throws Exception
+    {
+        super.setUp();
+        archivaConfiguration.getConfiguration().setProxyConnectors( new ArrayList<ProxyConnectorConfiguration>() );
+    }
+
     @Test
     public void testLastModifiedHeaderExists()
         throws Exception