Package org.jvnet.hudson.test
Class TestEnvironment
java.lang.Object
org.jvnet.hudson.test.TestEnvironment
- Author:
- Kohsuke Kawaguchi
-
Field Summary
Modifier and TypeFieldDescriptionfinal HudsonTestCase
Current test case being run (null for a JUnit 4 test). -
Constructor Summary
ConstructorDescriptionTestEnvironment
(org.junit.runner.Description description) TestEnvironment
(HudsonTestCase testCase) -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runner.Description
Current test case being run (works for JUnit 3 or 4).void
dispose()
static TestEnvironment
get()
void
pin()
toString()
-
Field Details
-
testCase
Current test case being run (null for a JUnit 4 test). -
temporaryDirectoryAllocator
-
-
Constructor Details
-
TestEnvironment
-
TestEnvironment
public TestEnvironment(@NonNull org.junit.runner.Description description)
-
-
Method Details
-
description
@NonNull public org.junit.runner.Description description()Current test case being run (works for JUnit 3 or 4). Warning:Description.getTestClass()
is currently broken in some environments (claimed fixed in JUnit 4.11). UseDescription.getClassName()
instead. -
pin
public void pin() -
dispose
- Throws:
IOException
InterruptedException
-
toString
-
get
-