From 7c63b5215fda598213fc36d581075eb7ebb60c80 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 28 Sep 2009 22:16:27 +0000 Subject: [PATCH] redundant reference to the Assert class. renamed a file so that we can see which one is refusing to be deleted. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22272 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/test/java/hudson/FilePathTest.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/src/test/java/hudson/FilePathTest.java b/core/src/test/java/hudson/FilePathTest.java index d7210181ee..33377969f5 100644 --- a/core/src/test/java/hudson/FilePathTest.java +++ b/core/src/test/java/hudson/FilePathTest.java @@ -35,7 +35,6 @@ import java.util.concurrent.Executors; import java.util.concurrent.Callable; import java.util.concurrent.Future; -import org.junit.Assert; import org.apache.commons.io.output.NullOutputStream; /** @@ -82,8 +81,8 @@ public class FilePathTest extends TestCase { File tmp = File.createTempFile("testCopyTo",""); FilePath f = new FilePath(french,tmp.getPath()); f.copyTo(new NullStream()); - Assert.assertTrue("target does not exist", tmp.exists()); - Assert.assertTrue("could not delete target " + tmp.getPath(), tmp.delete()); + assertTrue("target does not exist", tmp.exists()); + assertTrue("could not delete target " + tmp.getPath(), tmp.delete()); } /** @@ -92,15 +91,15 @@ public class FilePathTest extends TestCase { */ public void testCopyTo2() throws Exception { for (int j=0; j<2500; j++) { - File tmp = File.createTempFile("testCopyTo",""); + File tmp = File.createTempFile("testCopyFrom",""); FilePath f = new FilePath(tmp); File tmp2 = File.createTempFile("testCopyTo",""); FilePath f2 = new FilePath(british,tmp.getPath()); f.copyTo(f2); - Assert.assertTrue("could not delete target " + tmp.getPath(), tmp.delete()); - Assert.assertTrue("could not delete target " + tmp2.getPath(), tmp2.delete()); + assertTrue("could not delete target " + tmp.getPath(), tmp.delete()); + assertTrue("could not delete target " + tmp2.getPath(), tmp2.delete()); } }