Class IterableTests.FakeIterable
- java.lang.Object
-
- org.eclipse.epsilon.eol.engine.test.acceptance.IterableTests.FakeIterable
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Integer>
- Enclosing class:
- IterableTests
public static class IterableTests.FakeIterable extends java.lang.Object implements java.lang.Iterable<java.lang.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)
java.util.Iterator<java.lang.Integer>
iterator()
void
populate(int nElements)
-
-
-
Method Detail
-
create
public IterableTests.FakeIterable create(int nElements)
-
populate
public void populate(int nElements)
-
iterator
public java.util.Iterator<java.lang.Integer> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.Integer>
-
-