Guava /测试迭代器实现

时间:2012-12-08 22:02:32

标签: java guava

是否可以将Guava测试用于迭代器?我试图扩展IteratorTester,但com.google.common.collect.testing.AbstractIteratorTester不公开,因此无法添加构造函数。也许我必须使用另一个班级,或者它不是为公众制作的?提前谢谢。

1 个答案:

答案 0 :(得分:1)

来自CollectionIteratorTester

This example提供了如何构建IteratorTester的示例。