From dc827868e75bfd84e793324099d5edff728d664c Mon Sep 17 00:00:00 2001 From: kohsuke Date: Mon, 9 Feb 2009 19:29:56 +0000 Subject: [PATCH] doc improvement. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15160 71c3de6d-444a-0410-be80-ed276b4c234a --- test/src/main/java/org/jvnet/hudson/test/TestEnvironment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/src/main/java/org/jvnet/hudson/test/TestEnvironment.java b/test/src/main/java/org/jvnet/hudson/test/TestEnvironment.java index e83797ce83..3ecdb7a036 100644 --- a/test/src/main/java/org/jvnet/hudson/test/TestEnvironment.java +++ b/test/src/main/java/org/jvnet/hudson/test/TestEnvironment.java @@ -29,6 +29,10 @@ package org.jvnet.hudson.test; public class TestEnvironment { public final TemporaryDirectoryAllocator temporaryDirectoryAllocator = new TemporaryDirectoryAllocator(); + /** + * Associates (or pin down) this {@link TestEnvironment} to the current thread, so that + * from within the test you can access this object without referring to any context. + */ public void pin() { ENVIRONMENT.set(this); }