Class 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 Detail

      • TestLifecycle

        public TestLifecycle()
    • Method Detail

      • 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