summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav
diff options
context:
space:
mode:
authorJames William Dumay <jdumay@apache.org>2008-06-02 10:06:44 +0000
committerJames William Dumay <jdumay@apache.org>2008-06-02 10:06:44 +0000
commitf643efedcbac28af81a35be2fed0993381039a2c (patch)
tree7ea48013600d00180f60d6e35363f0983dd53170 /archiva-modules/archiva-web/archiva-webdav
parenteb6967d2e6e06e7be06096e9a25076adbfeefdab (diff)
downloadarchiva-f643efedcbac28af81a35be2fed0993381039a2c.tar.gz
archiva-f643efedcbac28af81a35be2fed0993381039a2c.zip
Fixing DavResourceTest from writing tests to /
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662382 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/pom.xml13
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java6
2 files changed, 2 insertions, 17 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/pom.xml b/archiva-modules/archiva-web/archiva-webdav/pom.xml
index 5585e04b9..a91582b48 100644
--- a/archiva-modules/archiva-web/archiva-webdav/pom.xml
+++ b/archiva-modules/archiva-web/archiva-webdav/pom.xml
@@ -162,17 +162,4 @@
</exclusions>
</dependency>
</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>
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
index 3134530ce..b78312389 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
@@ -43,11 +43,9 @@ public class DavResourceTest extends PlexusInSpringTestCase
private ArchivaDavResourceLocator resourceLocator;
- private ArchivaDavResourceFactory factory;
-
private File baseDir;
- private final String REPOPATH = "/myresource.jar";
+ private final String REPOPATH = "myresource.jar";
private File myResource;
@@ -65,7 +63,7 @@ public class DavResourceTest extends PlexusInSpringTestCase
baseDir = getTestFile("target/DavResourceTest");
baseDir.mkdirs();
myResource = new File(baseDir, "myresource.jar");
- myResource.createNewFile();
+ assertTrue("Could not create " + myResource.getAbsolutePath(), myResource.createNewFile());
resourceLocator = (ArchivaDavResourceLocator)new ArchivaDavLocatorFactory().createResourceLocator("/", REPOPATH);
resource = getDavResource(REPOPATH, myResource);
lockManager = new SimpleLockManager();