private final String REPOPATH = "/myresource.jar";
- private final File myResource = new File(baseDir, REPOPATH);
+ private File myResource;
private DavResource resource;
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);