ensure we don't have anymore proxy connectors for this unit test

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1136176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-15 20:24:50 +00:00
parent a54f72b741
commit 84ef692a11
1 changed files with 12 additions and 0 deletions

View 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