Details
-
Test
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.4
-
None
Description
The first part of FluentIterableTest.size is not testing function
FluentIterable.size (see code copied below). Actually,
FluentIterable.size will not be invoked at all, because
FluentIterable.of(null) will throw an NPE before that. This part
should be extracted as a separate unit test like
FluentIterableTest.ofNull.
try { FluentIterable.of((Iterable<?>) null).size(); fail("expecting NullPointerException"); } catch (final NullPointerException npe) { // expected }
I'll create a pull request for this issue.
Attachments
Issue Links
- links to