我just learned关于@Guice注释。这可能是我构建的自定义 GuiceTestRunner 的一个很好的交换。
哪里可以找到它?它不在我的类路径中...
谢谢
编辑:也许我不够精确:我使用ivy,并且我的依赖项(以及我的类路径)中有guice、guice-servlet、guice-assistanceinject、guice- throwingproviders。 “Guice”是我用来创建Injectors 的类。 我没有看到引用问题中提到的 @Guice(modules=....) 注释。所以我想知道:Annotation 从哪里来?
最佳答案
完整的类名称是org.testng.annotations.Guice,它在testng 6.3中可用
maven 依赖是 =>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
<version>6.3</version>
</dependency>
关于guice - 在哪里可以找到 @Guice 注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9680818/