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
 TemporaryDirectoryAllocator temporaryDirectoryAllocator
           
 HudsonTestCase testCase
          Current test case being run.
 
Constructor Summary
TestEnvironment(HudsonTestCase testCase)
           
 
Method Summary
 void dispose()
           
static TestEnvironment get()
           
 void pin()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testCase

public final HudsonTestCase testCase
Current test case being run.


temporaryDirectoryAllocator

public final TemporaryDirectoryAllocator temporaryDirectoryAllocator
Constructor Detail

TestEnvironment

public TestEnvironment(HudsonTestCase testCase)
Method Detail

pin

public void pin()

dispose

public void dispose()

get

public static TestEnvironment get()


Copyright © 2010. All Rights Reserved.