google / google/truth

IteratorSubject

Open
#193 4 comments 0 reactions 0 assignees View on GitHub
P4 type=addition
Dominant language
Java
Stars
2.8k
Forks
275
Avg merge
7m
Merged PRs (30d)
4

Description

I recently found myself writing some tests for code using the popular Bouncy Castle crypto library, which makes extensive use of non-generic Iterator objects in their public API. For example:
http://www.bouncycastle.org/docs/pgdocs1.5on/index.html

It felt a little boilerplatey to have to wrap each iterator with Lists.newArrayList/ImmutableList.of; it would have been nicer to have an IteratorSubject exposing much the same methods as IterableSubject.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.