Hi Cédric,
TestNG may not use Guice internally but the dependency is still there.
At least for version 5.14.9. A look at the TestNG pom or the Maven
dependency tree reveals this. Maybe this has changed for version
5.14.10, but I could not test it because it is not yet available on
Maven Central.
Here's an excerpt from the manifest the Surefire plugin creates for
launching the forked process. You can see that TestNG and its
dependencies are first in the classpath:
Class-Path: file:/C:/Dokumente%20und%20Einstellungen/rnaegele/.m2/repo
sitory/org/apache/maven/surefire/surefire-booter/2.7.2/surefire-boote
r-2.7.2.jar file:/C:/Dokumente%20und%20Einstellungen/rnaegele/.m2/rep
ository/org/apache/maven/surefire/surefire-api/2.7.2/surefire-api-2.7
.2.jar file:/C:/Dokumente%20und%20Einstellungen/rnaegele/.m2/reposito
ry/org/testng/testng/5.14.9/testng-5.14.9.jar file:/C:/Dokumente%20un
d%20Einstellungen/rnaegele/.m2/repository/junit/junit/3.8.1/junit-3.8
.1.jar file:/C:/Dokumente%20und%20Einstellungen/rnaegele/.m2/reposito
ry/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar file:/C:/Dokumente%20und%20E
instellungen/rnaegele/.m2/repository/com/google/inject/guice/2.0/guic
e-2.0.jar file:/C:/Dokumente%20und%20Einstellungen/rnaegele/.m2/repos
itory/aopalliance/aopalliance/1.0/aopalliance-1.0.jar file:/C:/Dokume
nte%20und%20Einstellungen/rnaegele/.m2/repository/com/beust/jcommande
r/1.12/jcommander-1.12.jar file:/C:/Dokumente%20und%20Einstellungen/r
naegele/.m2/repository/org/yaml/snakeyaml/1.6/snakeyaml-1.6.jar file:
Reinhard