mirror of https://github.com/apache/archiva.git
Fixing DavResourceTest from writing tests to /
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eb6967d2e6
commit
f643efedcb
|
@ -162,17 +162,4 @@
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/DavResourceTest.java</exclude>
|
|
||||||
</excludes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -43,11 +43,9 @@ public class DavResourceTest extends PlexusInSpringTestCase
|
||||||
|
|
||||||
private ArchivaDavResourceLocator resourceLocator;
|
private ArchivaDavResourceLocator resourceLocator;
|
||||||
|
|
||||||
private ArchivaDavResourceFactory factory;
|
|
||||||
|
|
||||||
private File baseDir;
|
private File baseDir;
|
||||||
|
|
||||||
private final String REPOPATH = "/myresource.jar";
|
private final String REPOPATH = "myresource.jar";
|
||||||
|
|
||||||
private File myResource;
|
private File myResource;
|
||||||
|
|
||||||
|
@ -65,7 +63,7 @@ public class DavResourceTest extends PlexusInSpringTestCase
|
||||||
baseDir = getTestFile("target/DavResourceTest");
|
baseDir = getTestFile("target/DavResourceTest");
|
||||||
baseDir.mkdirs();
|
baseDir.mkdirs();
|
||||||
myResource = new File(baseDir, "myresource.jar");
|
myResource = new File(baseDir, "myresource.jar");
|
||||||
myResource.createNewFile();
|
assertTrue("Could not create " + myResource.getAbsolutePath(), myResource.createNewFile());
|
||||||
resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
|
resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
|
||||||
resource = getDavResource(REPOPATH, myResource);
|
resource = getDavResource(REPOPATH, myResource);
|
||||||
lockManager = new SimpleLockManager();
|
lockManager = new SimpleLockManager();
|
||||||
|
|
Loading…
Reference in New Issue