mirror of https://github.com/apache/archiva.git
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:
parent
2c3b232488
commit
9e6f108d86
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue