[testng] 238/355: Use Stage.DEVELOPMENT when creating injector

Eugene Zhukov eugene-guest at moszumanska.debian.org
Tue Aug 18 10:20:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

eugene-guest pushed a commit to annotated tag OpenBSD
in repository testng.

commit 87485d3848462cf1ac8f07c429f1e2237ff70425
Author: cguillaume <cguillaume at hotpads.com>
Date:   Tue Apr 28 13:06:36 2015 -0700

    Use Stage.DEVELOPMENT when creating injector
---
 src/main/java/org/testng/internal/ClassImpl.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/testng/internal/ClassImpl.java b/src/main/java/org/testng/internal/ClassImpl.java
index 460da62..255a7c1 100755
--- a/src/main/java/org/testng/internal/ClassImpl.java
+++ b/src/main/java/org/testng/internal/ClassImpl.java
@@ -4,6 +4,7 @@ import static org.testng.internal.Utils.isStringNotEmpty;
 
 import com.google.inject.Injector;
 import com.google.inject.Module;
+import com.google.inject.Stage;
 
 import org.testng.IClass;
 import org.testng.IModuleFactory;
@@ -144,9 +145,9 @@ public class ClassImpl implements IClass {
           throw new TestNGException("Cannot load parent Guice module class: " + parentModule);
         }
         Module module = newModule(parentModule);
-        injector = com.google.inject.Guice.createInjector(module);
+        injector = com.google.inject.Guice.createInjector(Stage.DEVELOPMENT, module);
       } else {
-        injector = com.google.inject.Guice.createInjector();
+        injector = com.google.inject.Guice.createInjector(Stage.DEVELOPMENT);
       }
       suite.setParentInjector(injector);
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git



More information about the pkg-java-commits mailing list