Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将 Guava 测试用于迭代器?我尝试过扩展IteratorTester,但com.google.common.collect.testing.AbstractIteratorTester不是公开的,因此无法添加构造函数。也许我必须使用另一个课程,或者它不是为公众制作的?提前致谢。
IteratorTester
com.google.common.collect.testing.AbstractIteratorTester
此示例提供CollectionIteratorTester了如何构建IteratorTester.
CollectionIteratorTester