本文整理了Java中org.easymock.EasyMock.cmp()
方法的一些代码示例,展示了EasyMock.cmp()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EasyMock.cmp()
方法的具体详情如下:
包路径:org.easymock.EasyMock
类名称: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() {
内容来源于网络,如有侵权,请联系作者删除!