Skip to content

Support Iterable, Iterator, and ListIterator with @EmptySource #5368

@sdavids

Description

@sdavids
@ParameterizedTest
@EmptySource
void foo(Iterable<String> ids) {
  // ... test some API expecting Iterable
}
@ParameterizedTest
@NullAndEmptySource
void foo(Iterable<String> ids) {
  // ... test some API expecting Iterable
}

Deliverables

  • @EmptySource supports java.lang.Iterable
  • @EmptySource supports java.util.Iterator
  • @EmptySource supports java.util.ListIterator

Motive

https://github.com/google/guava/wiki/CollectionUtilitiesExplained#iterables

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions