Johannes
Johannes

Reputation: 2121

Guava / testing an iterator implementation

Is it possible to use the Guava testing for iterators? I've tried to extend IteratorTester, but com.google.common.collect.testing.AbstractIteratorTester isn't public such that it isn't possible to add a constructor. Maybe I have to use another class or it's just not made for the public? Thanks in advance.

Upvotes: 1

Views: 159

Answers (1)

Louis Wasserman
Louis Wasserman

Reputation: 198093

This example from CollectionIteratorTester provides an example of how to build an IteratorTester.

Upvotes: 1

Related Questions