Class IterableTests.FakeIterable
- java.lang.Object
-
- org.eclipse.epsilon.eol.engine.test.acceptance.IterableTests.FakeIterable
-
- Enclosing class:
- IterableTests
public static class IterableTests.FakeIterable extends Object implements Iterable<Integer>
Implements the Iterable interface without being a Collection, using composition. Also provides a method that populates the list with a particular number of elements, and another one that creates new instances. The create method is required in order to test that Iterable values are not wrapped by the PointExecutor.
-
-
Constructor Summary
Constructors Constructor Description FakeIterable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IterableTests.FakeIterable
create(int nElements)
Iterator<Integer>
iterator()
void
populate(int nElements)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-