【文件属性】:
文件名称:governator-junit-runner:Junit Runner 支持基于 Governator 的模块
文件大小:20KB
文件格式:ZIP
更新时间:2021-06-26 12:46:13
Java
州长-junit-runner
概述
该项目旨在简化在 JUnit 测试中集成 。
这是使用此模块的 Governator Junit 测试的外观:
@RunWith ( GovernatorJunit4Runner . class)
@LifecycleInjectorParams ( modules = SampleModule . class, scannedPackages = " governator.junit.demo " )
public class SampleGovernatorRunnerTest {
@Inject
private BlogService blogService;
@Test
public void testExampleBeanInjection () throws Exception {
【文件预览】:
governator-junit-runner-master
----.gitignore(71B)
----src()
--------main()
--------test()
----README.adoc(2KB)
----.travis.yml(15B)
----LICENSE(1KB)
----pom.xml(4KB)