From: James William Dumay Date: Mon, 2 Jun 2008 10:06:44 +0000 (+0000) Subject: Fixing DavResourceTest from writing tests to / X-Git-Tag: archiva-r676265~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f643efedcbac28af81a35be2fed0993381039a2c;p=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 --- 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 @@ - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/DavResourceTest.java - - - - - 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();