本文整理汇总了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);
}
示例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;
}
示例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;
}