Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2015-06-01 11:44:05 -0400
committerFlorian Waibel2015-06-01 11:44:05 -0400
commiteaaebb687d0ef2d0da523e8b91cc74e9af36745f (patch)
treeb62e751f02e79440baa0d1f84fd993d0224dbe9c
parent07ba2d4fb0dba3602bb335d7088d51b72f3681f6 (diff)
downloadorg.eclipse.virgo.kernel-eaaebb687d0ef2d0da523e8b91cc74e9af36745f.tar.gz
org.eclipse.virgo.kernel-eaaebb687d0ef2d0da523e8b91cc74e9af36745f.tar.xz
org.eclipse.virgo.kernel-eaaebb687d0ef2d0da523e8b91cc74e9af36745f.zip
Replaces arbitrary hardcoded absolute pathnames in JUnit test to avoid findbugs warning FB.DMI_HARDCODED_ABSOLUTE_FILENAME
-rw-r--r--org.eclipse.virgo.management.console/src/test/java/org/eclipse/virgo/management/console/UploadServletTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.virgo.management.console/src/test/java/org/eclipse/virgo/management/console/UploadServletTests.java b/org.eclipse.virgo.management.console/src/test/java/org/eclipse/virgo/management/console/UploadServletTests.java
index 524fa092..ca6c9f56 100644
--- a/org.eclipse.virgo.management.console/src/test/java/org/eclipse/virgo/management/console/UploadServletTests.java
+++ b/org.eclipse.virgo.management.console/src/test/java/org/eclipse/virgo/management/console/UploadServletTests.java
@@ -33,7 +33,7 @@ public class UploadServletTests {
@Test(expected=RuntimeException.class)
public void testDoUploadFail() throws Exception {
UploadServlet uploadServlet = new UploadServlet();
- FileItem fileItem = new DiskFileItem("foo", "json/application", false, "src/test/resources/test.upload", 500, new File("/target"));
+ FileItem fileItem = new DiskFileItem("foo", "json/application", false, "src/test/resources/test.upload", 500, new File("build"));
File stagingDir = new File("build");
fileItem.getOutputStream();
uploadServlet.doUpload(fileItem, stagingDir);
@@ -42,7 +42,7 @@ public class UploadServletTests {
@Test
public void testDoUpload() throws Exception {
UploadServlet uploadServlet = new UploadServlet();
- FileItem fileItem = new DiskFileItem("foo", "json/application", false, "test.upload", 500, new File("/target"));
+ FileItem fileItem = new DiskFileItem("foo", "json/application", false, "test.upload", 500, new File("build"));
File stagingDir = new File("src/test/resources");
fileItem.getOutputStream();
File doUpload = uploadServlet.doUpload(fileItem, stagingDir);

Back to the top