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


Java InputGeneratorProvider类代码示例

本文整理汇总了Java中org.fosstrak.ale.server.impl.type.InputGeneratorProvider的典型用法代码示例。如果您正苦于以下问题:Java InputGeneratorProvider类的具体用法?Java InputGeneratorProvider怎么用?Java InputGeneratorProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


InputGeneratorProvider类属于org.fosstrak.ale.server.impl.type包,在下文中一共展示了InputGeneratorProvider类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testInitialize

import org.fosstrak.ale.server.impl.type.InputGeneratorProvider; //导入依赖的package包/类
/**
 * tests the initialize function
 * @throws Exception test failure (or see what is expected by the test).
 */
@Test
public void testInitialize() throws Exception {		
	ReportsGeneratorsProvider rgenProvider = EasyMock.createMock(ReportsGeneratorsProvider.class);
	rgenProvider.clear();
	EasyMock.expectLastCall();
	EasyMock.replay(rgenProvider);
	((ALEImpl) ale).setReportGeneratorsProvider(rgenProvider);
	
	InputGeneratorProvider iProvider = EasyMock.createMock(InputGeneratorProvider.class);
	iProvider.clear();
	EasyMock.expectLastCall();
	EasyMock.replay(iProvider);
	((ALEImpl) ale).setInputGenerators(iProvider);
	
	((ALEImpl)ale).initialize();
	Assert.assertTrue(ale.isReady());
	
	// now try to invoke once more (must not initialize once more). easymock will throw an exception if mocks are hit twice.
	((ALEImpl)ale).initialize();
	Assert.assertTrue(ale.isReady());

	EasyMock.verify(rgenProvider);
	EasyMock.verify(iProvider);
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:29,代码来源:ALETest.java

示例2: setInputGenerators

import org.fosstrak.ale.server.impl.type.InputGeneratorProvider; //导入依赖的package包/类
/**
 * set of input generators which deliver the tag event inputs.
 */
public void setInputGenerators(InputGeneratorProvider inputGenerators) {
	this.inputGenerators = inputGenerators;
}
 
开发者ID:gs1oliot,项目名称:oliot-fc,代码行数:7,代码来源:ALEImpl.java

示例3: setInputGenerators

import org.fosstrak.ale.server.impl.type.InputGeneratorProvider; //导入依赖的package包/类
/**
 * allow to inject a new input generator provider.
 * @param inputGenerators the new input generator provider.
 */
public void setInputGenerators(InputGeneratorProvider inputGenerators) {
	this.inputGenerators = inputGenerators;
}
 
开发者ID:Auto-ID-Lab-Japan,项目名称:fosstrak-fc,代码行数:8,代码来源:ALEImpl.java


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