org.jvnet.hudson.test
Class TestEnvironment

java.lang.Object
  extended by org.jvnet.hudson.test.TestEnvironment

public class TestEnvironment
extends java.lang.Object

TODO: deprecate this, and just consolidate this to HudsonTestCase. We can then pin down the current HudsonTestCase to the thread for easier access.

Author:
Kohsuke Kawaguchi

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

temporaryDirectoryAllocator

public final TemporaryDirectoryAllocator temporaryDirectoryAllocator

ENVIRONMENT

public static final java.lang.ThreadLocal<TestEnvironment> ENVIRONMENT
Constructor Detail

TestEnvironment

public TestEnvironment()
Method Detail

pin

public 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.


dispose

public void dispose()

get

public static TestEnvironment get()


Copyright © 2009. All Rights Reserved.