]> source.dussan.org Git - archiva.git/commitdiff
Fixing DavResourceTest from writing tests to /
authorJames William Dumay <jdumay@apache.org>
Mon, 2 Jun 2008 10:06:44 +0000 (10:06 +0000)
committerJames William Dumay <jdumay@apache.org>
Mon, 2 Jun 2008 10:06:44 +0000 (10:06 +0000)
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
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java

index 5585e04b9f8e5e86c22b2e8341c81b4d89a84790..a91582b48bd3afc9c9d9154777b66c8239a9bc6e 100644 (file)
       </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>
index 3134530ce9437c1bdb0a39f6b858b7d005ca1863..b783123895fb32a9dd1ffe9a77a048e519ec091d 100644 (file)
@@ -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();