use of org.eclipse.collections.api.iterator.MutableBooleanIterator in project eclipse-collections by eclipse.
the class UnmodifiableBooleanSetTest method booleanIterator_with_remove.
@Override
@Test
public void booleanIterator_with_remove() {
MutableBooleanIterator booleanIterator = this.classUnderTest().booleanIterator();
Assert.assertTrue(booleanIterator.hasNext());
booleanIterator.next();
Verify.assertThrows(UnsupportedOperationException.class, booleanIterator::remove);
}
use of org.eclipse.collections.api.iterator.MutableBooleanIterator in project eclipse-collections by eclipse.
the class UnmodifiableBooleanSetTest method iterator_throws_on_invocation_of_remove_before_next.
@Override
@Test
public void iterator_throws_on_invocation_of_remove_before_next() {
MutableBooleanIterator booleanIterator = this.classUnderTest().booleanIterator();
Assert.assertTrue(booleanIterator.hasNext());
Verify.assertThrows(UnsupportedOperationException.class, booleanIterator::remove);
}
use of org.eclipse.collections.api.iterator.MutableBooleanIterator in project eclipse-collections by eclipse.
the class UnmodifiableBooleanStackTest method iterator_throws_on_invocation_of_remove_before_next.
@Test
public void iterator_throws_on_invocation_of_remove_before_next() {
MutableBooleanIterator booleanIterator = (MutableBooleanIterator) this.classUnderTest().booleanIterator();
Assert.assertTrue(booleanIterator.hasNext());
Verify.assertThrows(UnsupportedOperationException.class, booleanIterator::remove);
}
use of org.eclipse.collections.api.iterator.MutableBooleanIterator in project eclipse-collections by eclipse.
the class UnmodifiableBooleanListTest method iterator_throws_on_invocation_of_remove_before_next.
@Override
@Test
public void iterator_throws_on_invocation_of_remove_before_next() {
MutableBooleanIterator booleanIterator = this.classUnderTest().booleanIterator();
Assert.assertTrue(booleanIterator.hasNext());
Verify.assertThrows(UnsupportedOperationException.class, booleanIterator::remove);
}
use of org.eclipse.collections.api.iterator.MutableBooleanIterator in project eclipse-collections by eclipse.
the class AbstractMutableObjectBooleanMapTestCase method iterator_throws_on_invocation_of_remove_before_next.
@Test
public void iterator_throws_on_invocation_of_remove_before_next() {
MutableObjectBooleanMap<String> map = this.classUnderTest();
MutableBooleanIterator booleanIterator = map.booleanIterator();
Assert.assertTrue(booleanIterator.hasNext());
Verify.assertThrows(IllegalStateException.class, booleanIterator::remove);
}
Aggregations