Package org.jvnet.hudson.test
Class TestEnvironment
java.lang.Object
org.jvnet.hudson.test.TestEnvironment
- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal HudsonTestCaseCurrent test case being run (null for a JUnit 4 test). -
Constructor Summary
ConstructorsConstructorDescriptionTestEnvironment(org.junit.runner.Description description) TestEnvironment(HudsonTestCase testCase) -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runner.DescriptionCurrent test case being run (works for JUnit 3 or 4).voiddispose()static TestEnvironmentget()voidpin()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:
IOExceptionInterruptedException
-
toString
-
get
-