标签: java guava
是否可以将Guava测试用于迭代器?我试图扩展IteratorTester,但com.google.common.collect.testing.AbstractIteratorTester不公开,因此无法添加构造函数。也许我必须使用另一个班级,或者它不是为公众制作的?提前谢谢。
IteratorTester
com.google.common.collect.testing.AbstractIteratorTester
答案 0 :(得分:1)
CollectionIteratorTester
This example提供了如何构建IteratorTester的示例。