328789 Clean up tmp files from test harnesses

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2567 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-12-01 17:32:13 +00:00
parent 1c70bb6e45
commit e22e9eec6f
1 changed files with 5 additions and 9 deletions

View File

@ -13,20 +13,15 @@
package org.eclipse.jetty.util.resource; package org.eclipse.jetty.util.resource;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import junit.framework.TestCase; import org.eclipse.jetty.util.IO;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Test; import org.junit.Test;
import org.junit.BeforeClass;
import org.junit.AfterClass;
public class ResourceCollectionTest public class ResourceCollectionTest
{ {
@ -97,6 +92,7 @@ public class ResourceCollectionTest
assertEquals("2 - two", getContent(r, "2.txt")); assertEquals("2 - two", getContent(r, "2.txt"));
assertEquals("3 - three", getContent(r, "3.txt")); assertEquals("3 - three", getContent(r, "3.txt"));
IO.delete(dest);
} }
static String getContent(Resource r, String path) throws Exception static String getContent(Resource r, String path) throws Exception