Class TestEnvironment

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

public class TestEnvironment extends Object
Author:
Kohsuke Kawaguchi
  • Field Details

    • testCase

      @CheckForNull public final HudsonTestCase testCase
      Current test case being run (null for a JUnit 4 test).
    • temporaryDirectoryAllocator

      public final TemporaryDirectoryAllocator temporaryDirectoryAllocator
  • Constructor Details

    • TestEnvironment

      public TestEnvironment(@NonNull HudsonTestCase testCase)
    • 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). Use Description.getClassName() instead.
    • pin

      public void pin()
    • dispose

      public void dispose() throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • get

      public static TestEnvironment get()