@CollectionSize.Require(SEVERAL)
@CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
@MultisetFeature.Require(ENTRIES_ARE_VIEWS)
public void testEntryReflectsEntrySetIteratorRemove() {
initThreeCopies();
assertEquals(3, getMultiset().count(e0()));
Iterator<Multiset.Entry<E>> entryItr = getMultiset().entrySet().iterator();
Multiset.Entry<E> entry = entryItr.next();
entryItr.remove();
assertEquals(0, entry.getCount());
}
MultisetEntrySetTester.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:googles-monorepo-demo
作者:
评论列表
文章目录