# | Line 163 | Line 163 | public class EmptyNavigableSet { | |
---|---|---|
163 | */ | |
164 | @Test(dataProvider = "NavigableSet<?>", dataProviderClass = EmptyNavigableSet.class) | |
165 | public void testEmptyIterator(String description, NavigableSet<?> navigableSet) { | |
166 | < | Iterator emptyIterator = navigableSet.iterator(); |
167 | < | |
168 | < | assertFalse((emptyIterator != null) && (emptyIterator.hasNext()), |
169 | < | "The iterator is not empty."); |
166 | > | assertFalse(navigableSet.iterator().hasNext(), "The iterator is not empty."); |
167 | } | |
168 | ||
169 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |