当前位置: 首页>>代码示例>>Java>>正文


Java InjectableStepsFactory类代码示例

本文整理汇总了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);
	 */

}
 
开发者ID:saikrishna321,项目名称:JBehave-Selendroid-Android-Automation,代码行数:17,代码来源:MyStories.java

示例2: stepsFactory

import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
    return new InstanceStepsFactory(
            configuration(),
            Arrays.asList(new CLISteps())
    );
}
 
开发者ID:BiBiServ,项目名称:jobproxy,代码行数:8,代码来源:CLIStories.java

示例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));
		}
	};
}
 
开发者ID:wmaop,项目名称:wm-jbehave,代码行数:16,代码来源:JBehaveRunner.java

示例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);       
}
 
开发者ID:davidholiday,项目名称:java-compression-experiment,代码行数:8,代码来源:JBehaveRunner_Test.java

示例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));
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:8,代码来源:VisitorTest.java

示例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));
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:9,代码来源:ManipulationTest.java

示例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));
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:9,代码来源:ParsingTest.java

示例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));
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:9,代码来源:ComparingTest.java

示例9: stepsFactory

import org.jbehave.core.steps.InjectableStepsFactory; //导入依赖的package包/类
@Override
public InjectableStepsFactory stepsFactory() {
    return new InstanceStepsFactory(configuration(),
            new CommonSteps(),
            new PeopleSteps()
    );
}
 
开发者ID:apache,项目名称:rave,代码行数:8,代码来源:Stories.java

示例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);
}
 
开发者ID:davidholiday,项目名称:ALTk,代码行数:8,代码来源:JBehaveRunner_Test.java

示例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();
		}
	}
}
 
开发者ID:andreiserea,项目名称:arquillian-jbehave,代码行数:15,代码来源:ArquillianJbehaveRunner.java

示例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)
    );
}
 
开发者ID:sporcina,项目名称:dynamodb-connector,代码行数:11,代码来源:JBehaveStories.java

示例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;
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:9,代码来源:SpringAnnotationBuilder.java

示例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());
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:9,代码来源:TraderStory.java

示例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;
}
 
开发者ID:vactowb,项目名称:jbehave-core,代码行数:9,代码来源:GuiceAnnotationBuilder.java


注:本文中的org.jbehave.core.steps.InjectableStepsFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。