use of org.eclipse.collections.api.iterator.MutableLongIterator in project mapdb by jankotek.
the class AbstractMutableLongCollectionTestCase method longIterator_throws_for_consecutive_remove.
@Test
public void longIterator_throws_for_consecutive_remove() {
MutableLongCollection longIterable = this.classUnderTest();
final MutableLongIterator iterator = longIterable.longIterator();
Assert.assertTrue(iterator.hasNext());
iterator.next();
iterator.remove();
Verify.assertThrows(IllegalStateException.class, new Runnable() {
@Override
public void run() {
iterator.remove();
}
});
}
Aggregations