|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.hudson.test.TestEnvironment
public class TestEnvironment
TODO: deprecate this, and just consolidate this to HudsonTestCase.
We can then pin down the current HudsonTestCase to the thread for easier access.
| Field Summary | |
|---|---|
static java.lang.ThreadLocal<TestEnvironment> |
ENVIRONMENT
|
TemporaryDirectoryAllocator |
temporaryDirectoryAllocator
|
| Constructor Summary | |
|---|---|
TestEnvironment()
|
|
| Method Summary | |
|---|---|
void |
dispose()
|
static TestEnvironment |
get()
|
void |
pin()
Associates (or pin down) this TestEnvironment to the current thread, so that
from within the test you can access this object without referring to any context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final TemporaryDirectoryAllocator temporaryDirectoryAllocator
public static final java.lang.ThreadLocal<TestEnvironment> ENVIRONMENT
| Constructor Detail |
|---|
public TestEnvironment()
| Method Detail |
|---|
public void pin()
TestEnvironment to the current thread, so that
from within the test you can access this object without referring to any context.
public void dispose()
public static TestEnvironment get()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||