本文整理汇总了Java中cucumber.api.guice.CucumberModules类的典型用法代码示例。如果您正苦于以下问题:Java CucumberModules类的具体用法?Java CucumberModules怎么用?Java CucumberModules使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CucumberModules类属于cucumber.api.guice包,在下文中一共展示了CucumberModules类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public Injector getInjector() {
Injector injector = Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, new SpeedRegulatorModule(), new TimeModule(), new NoraUiModule());
try {
NoraUiInjector.createInjector(injector);
} catch (TechnicalException e) {
logger.error("error NoraUiInjectorSource.getInjector()", e);
}
return injector;
}
开发者ID:NoraUi,项目名称:NoraUi,代码行数:14,代码来源:NoraUiInjectorSource.java
示例2: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
return Guice.createInjector(
Stage.PRODUCTION,
CucumberModules.SCENARIO,
Modules.override(new GitServerModule(new Config())).with(new CucumberModule())
);
}
开发者ID:devhub-tud,项目名称:git-server,代码行数:9,代码来源:MyInjectorSource.java
示例3: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, new AWSKMSModule());
}
开发者ID:IBM,项目名称:ibm-cos-sdk-java,代码行数:5,代码来源:AWSKMSModuleInjector.java
示例4: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
return Guice.createInjector(CucumberModules.SCENARIO, new GuiceModule());
}
开发者ID:Cognifide,项目名称:aet,代码行数:5,代码来源:CucumberInjectorSource.java
示例5: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
Sql2oModule sql2oModule = new Sql2oModule(JDBC_URL, USERNAME, PASSWORD);
return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, sql2oModule);
}
开发者ID:CyborTronik,项目名称:fluent-registry,代码行数:6,代码来源:GuiceInjector.java
示例6: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
Sql2oModule sql2oModule = new Sql2oModule(JDBC_URL, USERNAME, PASSWORD);
return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, sql2oModule, new RegistryModule(), new FeaturesModule());
}
开发者ID:CyborTronik,项目名称:fluent-registry,代码行数:6,代码来源:GuiceInjector.java
示例7: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
return Guice.createInjector(CucumberModules.SCENARIO, new CinnamonModule(), new AcmeModule());
}
开发者ID:MagenTys,项目名称:cinnamon,代码行数:5,代码来源:GuiceInjectorSource.java
示例8: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
return Guice.createInjector(CucumberModules.SCENARIO, new CinnamonModule(), new ProjectModule());
}
开发者ID:MagenTys,项目名称:cinnamon,代码行数:5,代码来源:GuiceInjectorSource.java
示例9: getInjector
import cucumber.api.guice.CucumberModules; //导入依赖的package包/类
@Override
public Injector getInjector() {
return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, new CucumberJuiceModule());
}
开发者ID:iovation,项目名称:launchkey-java,代码行数:5,代码来源:CucumberGuiceInjectorSource.java
注:本文中的cucumber.api.guice.CucumberModules类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论