Class TestEnvironment


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

      • testCase

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

      • TestEnvironment

        public TestEnvironment​(@NonNull
                               HudsonTestCase testCase)
      • TestEnvironment

        public TestEnvironment​(@NonNull
                               org.junit.runner.Description description)
    • Method Detail

      • 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()