本文整理汇总了Java中org.jbehave.core.steps.InjectableStepsFactory类的典型用法代码示例。如果您正苦于以下问题:Java InjectableStepsFactory类的具体用法?Java InjectableStepsFactory怎么用?Java InjectableStepsFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InjectableStepsFactory类属于org.jbehave.core.steps包,在下文中一共展示了InjectableStepsFactory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
String path = "com.photon.jbehave".replaceAll("\\.", "/");
ApplicationContext context = new SpringApplicationContextFactory(path
+ "/my_steps.xml").createApplicationContext();
return new SpringStepsFactory(configuration(), context);
/*
* return new InstanceStepsFactory(configuration, new MySteps(),
* lifecycleSteps, new WebDriverScreenshotOnFailure( driverProvider,
* configuration.storyReporterBuilder()), context);
*/
}
示例2: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
return new InstanceStepsFactory(
configuration(),
Arrays.asList(new CLISteps())
);
}
示例3: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
return new AbstractStepsFactory(configuration()) {
@Override
public Object createInstanceOfType(Class<?> type) {
return new WmJBehaveSteps();
}
@Override
protected List<Class<?>> stepsTypes() {
return new ArrayList<>(Arrays.asList(WmJBehaveSteps.class));
}
};
}
示例4: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
ArrayList<Steps> stepFileList = new ArrayList<Steps>();
stepFileList.add(new LoadByteSteps());
return new InstanceStepsFactory(configuration(), stepFileList);
}
示例5: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
Map<String, Object> state = new HashMap<>();
return new InstanceStepsFactory(configuration(),
new SharedSteps(state),
new VisitorSteps(state));
}
示例6: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
Map<String, Object> state = new HashMap<>();
return new InstanceStepsFactory(configuration(),
new SharedSteps(state),
new ManipulationSteps(state));
}
示例7: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
Map<String, Object> state = new HashMap<>();
return new InstanceStepsFactory(configuration(),
new SharedSteps(state),
new ParsingSteps(state));
}
示例8: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
Map<String, Object> state = new HashMap<>();
return new InstanceStepsFactory(configuration(),
new SharedSteps(state),
new ComparingSteps(state));
}
示例9: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
return new InstanceStepsFactory(configuration(),
new CommonSteps(),
new PeopleSteps()
);
}
示例10: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
ArrayList<Steps> stepFileList = new ArrayList<Steps>();
stepFileList.add(new JBehaveTest());
return new InstanceStepsFactory(configuration(), stepFileList);
}
示例11: getCandidateSteps
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
private void getCandidateSteps() {
// candidateSteps = configurableEmbedder.configuredEmbedder()
// .stepsFactory().createCandidateSteps();
InjectableStepsFactory stepsFactory = configurableEmbedder.stepsFactory();
if (stepsFactory != null) {
candidateSteps = stepsFactory.createCandidateSteps();
} else {
Embedder embedder = configurableEmbedder.configuredEmbedder();
candidateSteps = embedder.candidateSteps();
if (candidateSteps == null || candidateSteps.isEmpty()) {
candidateSteps = embedder.stepsFactory().createCandidateSteps();
}
}
}
示例12: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
FakeCustomer fakeCustomer = new FakeCustomer();
return new InstanceStepsFactory(
configuration(),
new TableSteps(),
new DocumentSteps(fakeCustomer),
new BeforeAndAfterScenarios(fakeCustomer)
);
}
示例13: buildStepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory buildStepsFactory(Configuration configuration) {
InjectableStepsFactory factoryUsingSteps = super.buildStepsFactory(configuration);
if (context != null) {
return new CompositeStepsFactory(new SpringStepsFactory(configuration, context), factoryUsingSteps);
}
return factoryUsingSteps;
}
示例14: stepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
return new InstanceStepsFactory(configuration(), new TraderSteps(new TradingService()), new AndSteps(),
new MetaParametrisationSteps(), new CalendarSteps(), new PriorityMatchingSteps(), new PendingSteps(),
new ParametrisedSteps(), new SandpitSteps(), new SearchSteps(), new BeforeAfterSteps(),
new CompositeSteps(), new CompositeNestedSteps(), new NamedParametersSteps(),
new ParameterDelimitersSteps());
}
示例15: buildStepsFactory
import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory buildStepsFactory(Configuration configuration) {
InjectableStepsFactory factoryUsingSteps = super.buildStepsFactory(configuration);
if (injector != null) {
return new CompositeStepsFactory(new GuiceStepsFactory(configuration, injector), factoryUsingSteps);
}
return factoryUsingSteps;
}