From 7c20f84737fd342326ea7d29b52497213e1f1bff Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Mon, 18 Mar 2013 12:03:40 -0400 Subject: [PATCH] =?UTF-8?q?createTmpDir=20=E2=86=92=20TemporaryFolder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java b/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java index a346be0dee..b164136732 100644 --- a/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java +++ b/test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java @@ -212,6 +212,7 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.notNullValue; import static org.junit.Assert.*; import static org.junit.matchers.JUnitMatchers.containsString; +import org.junit.rules.TemporaryFolder; /** * JUnit 4.10+ style rule to allow test cases to fire up a Jenkins instance @@ -764,7 +765,9 @@ public class JenkinsRule implements TestRule, MethodRule, RootAction { /** * Allocates a new temporary directory for the duration of this test. + * @deprecated Use {@link TemporaryFolder} instead. */ + @Deprecated public File createTmpDir() throws IOException { return env.temporaryDirectoryAllocator.allocate(); } -- GitLab