本文整理了Java中org.easymock.Capture.reset()
方法的一些代码示例,展示了Capture.reset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Capture.reset()
方法的具体详情如下:
包路径:org.easymock.Capture
类名称:Capture
方法名:reset
[英]Will reset capture to a "nothing captured yet" state
[中]将捕获重置为“尚未捕获任何内容”状态
代码示例来源:origin: org.easymock/easymock
/**
* Used internally by the EasyMock framework to add a new captured value
*
* @param value
* Value captured
*/
public void setValue(T value) {
switch (type) {
case NONE:
break;
case ALL:
values.add(value);
break;
case FIRST:
if (!hasCaptured()) {
values.add(value);
}
break;
case LAST:
if (hasCaptured()) {
reset();
}
values.add(value);
break;
// ///CLOVER:OFF
default:
throw new IllegalArgumentException("Unknown capture type: " + type);
// ///CLOVER:ON
}
}
代码示例来源:origin: apache/incubator-druid
Assert.assertEquals(testChatHandler, chatHandlerProvider.get(TEST_SERVICE_NAME).get());
captured.reset();
resetAll();
EasyMock.expect(node.getHost()).andReturn(TEST_HOST);
代码示例来源:origin: apache/incubator-druid
cacheKeyCapture.reset();
EasyMock.expect(cache.getBulk(EasyMock.capture(cacheKeyCapture)))
.andReturn(ImmutableMap.of())
代码示例来源:origin: geoserver/geoserver
capturedHints.reset();
GridCoverageReader returnedReader2 =
pool.getGridCoverageReader(
代码示例来源:origin: org.easymock/com.springsource.org.easymock
/**
* Used internally by the EasyMock framework to add a new captured value
*
* @param value
* Value captured
*/
public void setValue(T value) {
switch (type) {
case NONE:
break;
case ALL:
values.add(value);
break;
case FIRST:
if (!hasCaptured()) {
values.add(value);
}
break;
case LAST:
if (hasCaptured()) {
reset();
}
values.add(value);
break;
// ///CLOVER:OFF
default:
throw new IllegalArgumentException("Unknown capture type: " + type);
// ///CLOVER:ON
}
}
内容来源于网络,如有侵权,请联系作者删除!