mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-17 23:44:48 +00:00
Update test.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1573753 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
76d073f5a8
commit
c7599fd2a8
@ -50,12 +50,12 @@ public class BoundedIteratorTest<E> extends AbstractIteratorTest<E> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Iterator<E> makeEmptyIterator() {
|
public Iterator<E> makeEmptyIterator() {
|
||||||
return BoundedIterator.boundedIterator(Collections.<E>emptyList().iterator(), 10);
|
return new BoundedIterator<E>(Collections.<E>emptyList().iterator(), 0, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Iterator<E> makeObject() {
|
public Iterator<E> makeObject() {
|
||||||
return BoundedIterator.boundedIterator(new ArrayList<E>(testList).iterator(), 1, testList.size() - 1);
|
return new BoundedIterator<E>(new ArrayList<E>(testList).iterator(), 1, testList.size() - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------- Tests ---------------------
|
// ---------------- Tests ---------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user