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); }