182 |
|
*/ |
183 |
|
@Test(dataProvider = "NavigableSet<?>", dataProviderClass = EmptyNavigableSet.class) |
184 |
|
public void testFirst(String description, NavigableSet<?> navigableSet) { |
185 |
< |
assertThrowsNSEE(() -> { |
186 |
< |
navigableSet.first(); |
187 |
< |
}, description); |
185 |
> |
assertThrowsNSEE(navigableSet::first, description); |
186 |
|
} |
187 |
|
|
188 |
|
/** |
208 |
|
*/ |
209 |
|
@Test(dataProvider = "NavigableSet<?>", dataProviderClass = EmptyNavigableSet.class) |
210 |
|
public void testLast(String description, NavigableSet<?> navigableSet) { |
211 |
< |
assertThrowsNSEE(() -> { |
214 |
< |
navigableSet.last(); |
215 |
< |
}, description); |
211 |
> |
assertThrowsNSEE(navigableSet::last, description); |
212 |
|
} |
213 |
|
|
214 |
|
/** |