From f643efedcbac28af81a35be2fed0993381039a2c Mon Sep 17 00:00:00 2001 From: James William Dumay Date: Mon, 2 Jun 2008 10:06:44 +0000 Subject: [PATCH] Fixing DavResourceTest from writing tests to / git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@662382 13f79535-47bb-0310-9956-ffa450edef68 --- archiva-modules/archiva-web/archiva-webdav/pom.xml | 13 ------------- .../maven/archiva/webdav/DavResourceTest.java | 6 ++---- 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 @@ - - - - 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(); -- 2.39.5