stop file being created in / - tests still fail though

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2008-06-01 02:19:07 +00:00
parent 2c3b232488
commit 9e6f108d86
1 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public class DavResourceTest extends PlexusInSpringTestCase
private final String REPOPATH = "/myresource.jar";
private final File myResource = new File(baseDir, REPOPATH);
private File myResource;
private DavResource resource;
@ -62,8 +62,9 @@ public class DavResourceTest extends PlexusInSpringTestCase
super.setUp();
session = new ArchivaDavSession();
mimeTypes = (MimeTypes)getApplicationContext().getBean(PlexusToSpringUtils.buildSpringId(MimeTypes.class));
baseDir = new File("target/DavResourceTest");
baseDir = getTestFile("target/DavResourceTest");
baseDir.mkdirs();
myResource = new File(baseDir, "myresource.jar");
myResource.createNewFile();
resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
resource = getDavResource(REPOPATH, myResource);