提交 dc827868 编写于 作者: K kohsuke

doc improvement.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15160 71c3de6d-444a-0410-be80-ed276b4c234a
上级 ba0896cb
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册