我just learned关于@Guice注释。对于我构建的自定义GuiceTestRunner来说,它可能是一个很好的交换。
我在哪里可以找到它?它不在我的课程中......
由于
编辑:也许我不够精确:我使用常春藤,我有依赖(和我的类路径)中的guice,guice-servlet,guice-assistedinject,guice-throwingproviders。 “Guice”是我用来创建注入器的类。 我没有看到引用的问题中提到的@Guice(modules = ....)Annotation。所以我想知道:Annotation来自哪里?答案 0 :(得分:2)
完整的类名是org.testng.annotations.Guice,它在testng 6.3中可用
maven依赖是=>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
<version>6.3</version>
</dependency>
答案 1 :(得分:0)
如果你没有使用Maven或Ivy或其他一个自动依赖管理工具(如果你是,你不会问这个问题)你应该尝试相关项目的download page。