org.easymock.EasyMock.cmp()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.easymock.EasyMock.cmp()方法的一些代码示例,展示了EasyMock.cmp()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EasyMock.cmp()方法的具体详情如下:
包路径:org.easymock.EasyMock
类名称:EasyMock
方法名:cmp

EasyMock.cmp介绍

[英]Expects an argument that will be compared using the provided comparator. The following comparison will take place:

comparator.compare(actual, expected) operator 0

For details, see the EasyMock documentation.
[中]需要一个参数,该参数将使用提供的比较器进行比较。将进行以下比较:
comparator.compare(actual, expected) operator 0
有关详细信息,请参阅EasyMock文档。

代码示例

代码示例来源:origin: apache/incubator-druid

callback.segmentAdded(
  EasyMock.anyObject(),
  EasyMock.cmp(makeSegment(INITIAL_SEGMENTS + 2), dataSegmentComparator, LogicalOperator.EQUAL)
callback.segmentRemoved(
  EasyMock.anyObject(),
  EasyMock.cmp(makeSegment(INITIAL_SEGMENTS + 2), dataSegmentComparator, LogicalOperator.EQUAL)

代码示例来源:origin: iipc/openwayback

exclusionFactory.getExclusionFilter(EasyMock.cmp(expectedContext,
  collectionContextComp, LogicalOperator.EQUAL))).andReturn(
new ExclusionFilter() {

相关文章