Class TestLifecycle

java.lang.Object
org.jenkinsci.test.acceptance.guice.TestLifecycle
All Implemented Interfaces:
com.google.inject.Scope

public class TestLifecycle extends Object implements com.google.inject.Scope
Keeps track of TestScope objects.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • TestLifecycle

      public TestLifecycle()
  • Method Details

    • startTestScope

      public void startTestScope()
      Call this method when a new test starts, to reset the TestScope.
    • endTestScope

      public void endTestScope()
    • export

      public Map export()
    • import_

      public void import_(Map o)
    • scope

      public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> base)
      Specified by:
      scope in interface com.google.inject.Scope