mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15160 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
ba0896cb0a
commit
dc827868e7
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user